You are on page 1of 3

Raspberry Pi Line following Robot Car Wiring Connections

Left DC motor L298N Right DC motor

L298N Motor
Controller

Left Right
Infrared +12v Gr +5 v Infrared
1 2 3 4 Sensor
Sensor

VCC GPIO 15
GPIO 13 VCC
OUT GND
GPIO 11 OUT GND
GPIO 12
GPIO 6 GPIO 10
GPIO 14
GPIO 2

2 4 6 8 10 12 14 16 18 20 22 24

1 3 5 7 9 11 13 15 17 19 21 23
GPIO 9

GPIO 4
Raspberry Pi
GPIO 7
Pi’s Micro USB Power Connection
USB Portable
mobile phone
charger

A. Davis issue 1.0 19.02.2015


Raspberry Pi Line following Robot Car Wiring Connections
Chassis View
Left Front Right
Infrared
Infrared
Sensor
OUT GND Raspberry Pi Sensor
OUT GND

23 21 19 17 15 13 11 9 7 5 3 1

24 22 20 18 16 14 12 10 8 6 4 2

Left DC motor and Right DC motor and


wheel L298N wheel
L298N
Motor
Controller
+12v Gr +5 v 1 2 3 4

A. Davis issue 1.0 19.02.2015


Raspberry Pi Line following Robot Car Scratch Coding

Scratch GPIO7

A. Davis issue 1.0 19.02.2015

You might also like