I built a basic obstacle avoiding robot with Raspberry Pi 2 and Arduino Uno.
Raspberry Pi controls the motors and an ultrasonic sensor. LIDAR (Lidar Lite v2 Blue Label) is hooked up to Arduino.
Raspberry Pi reads LIDAR data via a serial connection and “makes a decision” on where to go next. LIDAR takes a reading every 4 degrees of servo rotation.
The ultrasonic sensor along with LIDAR is used for obstacle avoidance as well as deciding on the direction.
I wrote the code in Python on the Pi and a C++ variant on the Arduino.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!