LIDAR
2023
Arduino
Goals
Have the motor scan back and forth from 0 to 160 deg
– One step at a time (i.e. 1.8 degree)For each step
Make an analog read
Send to the serial port <angle>,<range>.
<angle> is the current angle in 1/10 of degree (integer value)
<range> is in mm (integer value)
For example if you are at 45 deg and you read 80 cm send 450,800.
Don’t forget the period (.) as the delimiter
Wait for a character before sending the data and moving to the next
step
Observe the result on the SONAR Processing program