Problem Solving: Obstacle Avoidance
Channel: Joshua Booth
Date: 07/02/2021

Let's figure out how to not let our robot run into walls or get trapped. Like a Roomba, we want to make sure our robot never stops moving because of an obstacle.

I'm going to start by programming a robot car to not hit a wall. Then, I'm going to program it to drive away from any wall or corner it encounters.

Code location: https://github.com/boothinator/arduino-videos
Find the code in the obstacle-avoidance and stop-at-wall folders.


Servo reference: https://www.arduino.cc/reference/en/libraries/servo/


Ultrasonic sensor reference: https://www.tutorialspoint.com/arduino/arduino_ultrasonic_sensor.htm