1. Bluetooth Controlled Car

1.4. Self-driving Car


Description:
This code allows the car to navigate its surroundings on its own in a slightly more advanced fashion. When the car approaches an object, it will scan both sides of the object to preemptively determine which side has more space. When the car gets close enough, it will turn to the side it determined was better.
Bluetooth is used to stop and start the automatic navigation.

Note: While the logic itself is fine, in reality the car behaves irregularly because of hardware limitations. Among these limitations are e.g the servo being too slow to make all the moves in time, and the ultrasonic sensor having a too wide angle of effect.