Skip to content
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

Support for RPLidar C1 #4

Open
sepastian opened this issue Oct 2, 2024 · 3 comments
Open

Support for RPLidar C1 #4

sepastian opened this issue Oct 2, 2024 · 3 comments

Comments

@sepastian
Copy link

Hello, thanks for this great library!

I own an RPLidar C1. The documentation states on page 7 that:

The RPLIDAR C1 adopts traditional sampling protocols and the high-speed sampling
protocol for outputting the 5000 times per second laser range scan data. The
RPLIDAR C1 is compatible with all communication protocols used by previous
RPLIDAR S Series products and the traditional sampling protocol (standard) of the A
Series products, users can directly in place of previous RPLIDAR models and use it in
the original system.

So, theoretically, LDS should be supporting the C1 already - correct?

I noticed that the C1 is using a baud rate of 460800, though. I changed that in https://github.com/kaiaai/LDS/blob/main/examples/lds_basic_esp32/lds_basic_esp32.ino, but cannot get the Lidar to return any data. The ESP32 doesn't seem to be able to connect to it.

Am I missing something (obvious)?

Which steps would be involved in adding the RPLidare C1 to LDS?

Thanks!

@sepastian
Copy link
Author

Another question, since the hardware part is not my strength:

Do the Lidar and the ESP32 require a common ground connection?

I'm connecting the ESP32 to my PC via USB, to get serial output for debugging.

The Lidar is connected to a power supply.

Can that work?

@kaiaai
Copy link
Owner

kaiaai commented Oct 3, 2024

Hi sepastian,
the LiDAR and the ESP32 grounds have to be connected together. Also

  • LiDAR TX connects to ESP32 RX
  • LiDAR RX connects to ESP32 TX
    With these connections in place, I'd try again setting the baud rate and checking if you are receiving anything from the LiDAR. If you are not receiving, I'd double-check which ESP32 TX, RX pins you are using.
    I wish I could give you a better advice, but I don't have a C1 to play with.

@sepastian
Copy link
Author

Thank you, I will give it a try as soon as I have time and let you know about the outcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants