Wiring the sensor in

The next diagram shows how the connections (not wiring details) will look. Connections in red are new connections:

Diagram with line sensors added

First, we will need to place a breadboard onto the robot. A breadboard lets us poke wires and component leads into slots that are connected electrically to make connections without needing soldering that are easy to modify.

Do not make connections to and from a breadboard on any circuit that is powered up! This may cause damage to the components, sensors, or controller boards. This is a very easy way to destroy a Raspberry Pi.

The following photo shows how to attach the breadboard: ...

Get Learn Robotics Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.