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!
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!
Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi
EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey