View on GitHub

ccr_robotics_fall_2020

Course materials for 2020-21 robotics class at Cornerstone Classical Academy Roanoke (VA).

Wheel Assembly

Module Goal: learn how the wheels connect to the Pi.

Before doing the full assembly, you’ll need to make sure your wheels work. This module will show you how to test it all – using the Pi.

You will need these on your project mat:

mat view

NOTE: The picture shows the castor wheels also. Oops! You don’t need them for this step.

Drive Wheel Assembly Steps

Power 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 4 AA batteries to the L298N and use those 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!


Connect the 4 AA batteries 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.


Module Complete