Robot movement

We use the motorhat library to setup the motorhat with the correct address passed in. We then create the motor objects. Since we have 4 motors this means we use create for 4 distinct motor variables. We also import the atexit library so that motors stop once the code exits.

Read more »

Line Following

At the front of the robot, we attached a circuit board with 5 evenly spaced sensors facing the ground as shown. These sensors would return a boolean (True or False) if they detect the black tape. 

Read more »

Ultrasound

Using 2 ultrasound sensors, we could manoeuvre the robot to avoid large obsticles such as walls. 

Read more »