I have an RPLIDAR A1M8 and I want to read data on an Adafruit Feather Huzzah using the Arduino IDE. I want to use the LIDAR to locate objects (in 2D) in a small enclosed space for a multimedia project. I’m fairly new to Arduino programming and adapting the provided C code to Arduino is over my head. I’m interested to learn whether anyone has written a sketch (either for the Huzzah or a regular Arduino) that reads data from the LIDAR.
Hey,
A quick search online reveals the following:
http://www.robopeak.net/data/doc/rplidar/appnote/RPLDAPPN01-rplidar_appnote_arduinolib-enUS.pdf
https://github.com/robopeak/rplidar_arduino
You will notice in the Arduino app note that one of the first things the manufacturer says is that there are grave performance issues in using an Arduino with this device (page 3, bottom half). As far as I know, they have largely dropped support for Arduino with their product line and focused on use on computers (desktop/laptops), SBC and ROS-based systems.
That should help you get started in receiving data from the RPLidar A1M8. That being said, please note that managing that data for object detection may be quite difficult with the limited amount of RAM available in an Arduino and will most likely require crafty/clever programming.
Good luck!
Sincerely,