-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LD19 + ESP32 #18
Comments
You can use any pin to receive lidar serial data except strapping pins, 0 5 12 14 15. LD19 4 pin headers, txd pwm gnd 5v. keep pwm unconnected. connect txd from LD19 to your LIDAR_RXD. In my esp32_wifi_config.h, I use 14. Change it, if you use the other pin. #define USE_LIDAR_UDP |
On waveshare general driver for robots board. A wire is needed to connect lidar serial data. lidar 4, add a jumper wire from LIDAR to IO4 on middle header |
For resistors, do you mean the 10R resistors in series on esp32 i/o pins? They are used to improve signal integrity. It can be 10R, 33R , 110R or others depend on systems. They are often used in productions. It is not required for hobbyist. |
I was looking at the schematic for the General Driver for Robots board and the LD19 data pin CP_RX is connected to a UART via a 1K resistor. It is not directly connected to the onboard esp32. |
The 1K resistor is used for protection to the serial USB bridge. The Waveshare General Driver for Robots board is a production quality board. I did follow the same design rules in my past carrier. However, it is not required for hobbyist. The bridge is almost the same function as the small USB adapter comes with the LD19 package. It is used to connect the Pi or robot PC. The CP_RX is not connected to esp32. So we need to add a jumper wire to io4 for the UDP lidar forwarder. |
yes |
I assembled a new, smaller robot to test your forks of the Linorobot2 hardware and software project. I'm now using the Waveshare General Driver board, with an LD19 lidar, and everything is powered by a Waveshare UPS. The two encoder motors are 12v JGA25-371 running at 40 rpm. Lessons learned from this simplified setup will be applied to my larger robot. The map generated with my new setup is by far the most accurate since I started testing Linorobot2 many months ago. No multiple spiral images in Slam when the robot turns. Also room measurements in meters are bang on. Navigation is a bit hit and miss right now, but I'm sure that will be figured out. I do have a few questions I hope you can help me with.
Thank you so much for your help. It's greatly appreciated. |
I am very happy to see your progress.
You might change line 148 of test_motors/src/firmware.cpp, to higher value to help the test. You may find tachometers on Amazon. This is the one I used.
|
https://github.com/hippo5329/linorobot2_hardware/wiki#enable-magnetometer The ekf parameters needs update to enable linear acceleration x y of IMU and yaw of magnetometer. However, it won't help the snagged case. |
@tbalatka Hi, I like this design. What kind of a caster do you use? |
Looks Kawaii. Thanks. |
I ordered a Waveshare general driver board to simplify my setup. It contains compass and IMU circuitry. I also ordered an LD19 lidar module as this can easily be plugged into the board and the whole setup can run as a node without an onboard computer.
Question: If I want to use a regular ESP32 with the LD19 directly (no serial board), what pins on the ESP32 should I use for the data information? And do I need to use resistors?
Thanks!
The text was updated successfully, but these errors were encountered: