Esp32 and YDLIDAR X3 PRO #16
Replies: 5 comments 3 replies
-
Hello,
look at the library sample sketches. The sketches print out distance and
angle data to the Serial Monitor.
- install the LDS library in your Arduino IDE
- open the YDLIDAR X4 sample sketch from LDS library, File -> Examples ->
LDS -> sketch name
- change the #include in the sketch from YDLIDAR X4 to X3 PRO. See the list
of available include files in LDS/src folder
- change the Lidar class from X4 to X3 PRO; read the X3 PRO include file to
find the class name
- note Lidar pin names and corresponding GPIO numbers in the example sketch
- note how the sketch prints out distances and angles to Serial Monitor
- compile your sketch, make sure there are no errors
- read the X3 PRO datasheet to find the pinout for your X3 PRO here
https://github.com/kaiaai/awesome-2d-lidars
- connect your X3 PRO power to 5V 1A; connect your Lidar signal pins to
ESP32 GPIOs noted in the sample sketch
- test your sketch with your Lidar; use the Serial Monitor in the Arduino
IDE to inspect the distances and angles
…On Mon, Dec 2, 2024, 7:48 AM niceHyunJun ***@***.***> wrote:
How can I get data from lidar sensor. I have Esp32, YDLIDAR X3 PRO, serial
port adapter board, usb c-type to ttl. Can I get angle with distance?
—
Reply to this email directly, view it on GitHub
<#16>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCJ6V3TQT3Y7OZ3ZQPNYIBL2DR6MTAVCNFSM6AAAAABS3XDDGSVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGU4TQOJWGM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Don't use the serial adapter. Connect your Lidar to ESP32 pins.
The serial adapter is necessary only if you want to connect your Lidar to a
PC or Raspberry Pi/etc.
…On Mon, Dec 2, 2024, 6:58 PM niceHyunJun ***@***.***> wrote:
KakaoTalk_20241203_114916539.jpg (view on web)
<https://github.com/user-attachments/assets/1bf1d2da-8f96-423c-a708-b36a612f7de8>
![KakaoTalk_20241203_114916539_01](
https://github.com/user-attachments/assets/62accbe2-3
Copyright 2023-2024 REMAKE.AI, KAI.txt
<https://github.com/user-attachments/files/17986648/Copyright.2023-2024.REMAKE.AI.KAI.txt>
33a-4fa3-9dec-4ede89019083)
KakaoTalk_20241203_114916539_02.jpg (view on web)
<https://github.com/user-attachments/assets/cc0bca85-eb88-4941-aa46-8a64b3dd12cd>
There is no data on the serial Monitor. I connected 5V, TX(ttl) to
RX(esp32 16pin), RX(ttl) to Tx(esp32 17pin). Thank you so much about your
fast response. I am still expecting your response :)
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCJ6V3UDCL43PIJ336WDDZL2DUM4ZAVCNFSM6AAAAABS3XDDGSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNBUGMZDQNA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I use ROS2 RViz for Lidar visualization, but it works with robots that have
a Lidar.
I don't have anything else. I'd suggest writing a Python script that
receives text over a COM port from the Serial Monitor and plots the
angles/distances the way you like it.
…On Mon, Dec 2, 2024, 7:41 PM niceHyunJun ***@***.***> wrote:
Thank you so much!!!!!!!!!!!!!!! 😄😄😄
Can I get a program that can see the 2D map..????
—
Reply to this email directly, view it on GitHub
<#16 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCJ6V3QAIGMH4QZ6HPMMXH32DUR7HAVCNFSM6AAAAABS3XDDGSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNBUGM2TGMQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I'd suggest googling. There are denoise algorithms out there.
…On Mon, Dec 2, 2024, 8:26 PM niceHyunJun ***@***.***> wrote:
208801 5330.00 7.44.txt
<https://github.com/user-attachments/files/17987295/208801.5330.00.7.44.txt>
Sometime distance is 0. It is very big noise on the autonomous system.
Is there any solution?
—
Reply to this email directly, view it on GitHub
<#16 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCJ6V3Q4A5PTW6C2PPBLBAT2DUXGRAVCNFSM6AAAAABS3XDDGSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNBUGM3TIMQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
How can I get data from lidar sensor. I have Esp32 dev module, YDLIDAR X3 PRO, serial port adapter board, usb c-type to ttl. Can I get angle with distance?
Beta Was this translation helpful? Give feedback.
All reactions