cca_robotics_2021

Course materials for CCA high-school robotics class, academic year 2021-22.


Project maintained by buffetboy2001 Hosted on GitHub Pages — Theme by mattgraham

Drive System Wiring

Module Goal: wiring the robots drive system to the Raspberry Pi.

Drive Wheel Assembly Steps

Battery Assembly

The Raspberry Pi computer can only provide so much electrical energy to other things connected to it. In the case of the L298N motor controller and the wheels, they need more electricity than the Pi can give. :(

No worries! You’ll fix this problem by also connecting a 12 volt rechargeable battery to the L298N and use that to power the wheels.

Connect the Raspberry Pi to your Components

Time to get your components connected to the robot brain – the Raspberry Pi!

NOTE: Always keep your Pi turned OFF when connecting wires!

Get 5 female-to-female wires. If that are connected together along their length, gently pull them apart.

As a team, get your Raspberry Pi and observe the following picture. Make sure it makes sense when you look at the Pi. Talk through the ports labeled GPIO and Ground.

Now, make the following connections.

L298N Connection Pin Raspberry Pi Connection Pin
IN1 GPIO 7
IN2 GPIO 8
IN3 GPIO 9
IN4 GPIO 10
GND Ground (there are several; chose any you like)

Now your Raspberry Pi and your L298N Motor Controller board are connected!


The L298N Motor Controller Board should be looking like this:

If you’re not sure, ask Mr. Bowman for a double-check!


Turn the 12 volt battery on so that the L298N Motor Controller board has electrical power. It should have a bright red light if you’ve got the batteries connected correctly.

Not working? Double-check your wire connections from above.


~Module Complete~