To build this project, you'll start by installing the motor controller board on top of the Raspberry Pi Zero, like this:
The board provides the drive signals for the DC motors on the vehicle. You can also turn the vehicle by driving each motor separately. You can change the vehicle's direction and make very sharp turns by reversing the signals. The following steps show how to connect the motor control board:
Connect the battery power connector to the power connector on the board. Use a 6 to 7.4 volts battery; you can either use a 4 AA battery holder or a 2S LiPo RC battery. Connect the ground and power wires to the motor control board as shown:
Next, connect one of the drive signals to the motor 1 connector on the board. Connect motor 1 to the right motor and motor 2 to the left, as shown:
Then, connect the second drive connector to the motor 2 connector on the board. The entire set of connections should look like this: