The goal was to program a microcontroller from scratch to make a autonomous rc car.
The rc car can drive through any course that looks like the following:
I created a simulation in Unity 2D that shows how the driving algorithm works, the raycast lines simulate the ultrasound sensors.