![]() ![]() ![]() In the void setup you'll have to change following code: "lidar.begin(Serial) " according to the used serial port.Connect the RPLIDAR's motor ctrl pin to the Arduino board pin 3 - Use an external 5V power supply to power the motor control pin and the LIDAR. Make the necessary hardware connections from the LIDAR to the arduino: - Connect the RPLIDAR's serial port (RX/TX/GND) to your Arduino board (Pin 0 and Pin1).Now open the "simple_connect" example code that is included in the library.You can find more information on how to install a library in the arduino IDE in this article: , this library offers 2 interesting examples on how to use the LIDAR. ![]() First you'll need to install the RPLIDAR library from robopeak:.If you don't need to send data to the computer to debug you can pick any arduino.įor this instructable I'll be using a more modern and more powerful arduino based on the SAMD21 microcontroller, The Arduino M0 / Zero. Like there are: Arduino Mega, Arduino M0 / Zero (SAMD21). So if you want to be able to send send serial data to the serial console for debugging purposes you'll need an arduino with more than one Serial port. The library that'll be used in this instructable doesn't support a software serial port (at the moment of writing). For basic Arduino's with only 1 hardware serial port, you can add an extra software serial port. The LIDAR needs to be connected to the hardware serial port (UART) of the Arduino, for an basic arduino this means you can't send any UART data to the serial console. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |