Wiring the encoders to Pi

The following diagram shows a simplified breadboard circuit for these sensors. Please note that some of these sensors work with 3.3V, in which case the level shifter can be skipped.

If you are not sure, leave the level shifter in:

Simplified speed sensor connections

We will make this circuit in the context of a busy robot with other connections. If the cables from the sensors to the robot are not long enough, use a further set of male-to-female cables, as shown in the following photos:

Joining the cables to extend ...

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.