being24 / YDLIDAR-SDM15_python

A python library for the YDLidar SDM15
MIT License
0 stars 1 forks source link

code for YDLIDAR-SDM15 in arduino ? #1

Closed josh-001 closed 7 months ago

josh-001 commented 7 months ago

I am working on YDLIDAR smd15 model ,could you please provide me code for to get distance from ydlidar using arduino?

being24 commented 7 months ago

It is in this repository (the library is incomplete, so was kept private because I was too busy with research to complete it. It works well, at least on my robot).

Only ObtainVersionInfo, SelfCheckTest, StartScan, StopScan, GetScanData, and SetOutputFrequency are supported. It does not support all cmd's like the python version, such as changing the baud rate.

I plan to add the rest of the features to be implemented in the future.

For now, please use the python version for settings that cannot be done with the arduino version.

josh-001 commented 7 months ago

Thank you for the code. what are the libraries need to be installed for this particular ydlidar-sdm15 module?

josh-001 commented 7 months ago

yeah, i got it i download the zip file and uploaded in the library manager.

being24 commented 7 months ago

That's good.

When I finish the library, I will register it in arduinoIDE's library manager.

josh-001 commented 7 months ago

That would be great :) Thank you, the code is working in my system