Before we can use the encoder sensors, we need to prepare and fit them:
- As the encoders will be going under the Raspberry Pi, we should attach the male to female jump wires to the sensors now. I also suggest covering the electrical contacts that will be sticking up under the Pi with a little insulation tape:
The sensors with cable connections
- Importantly, the cables should be plugged into the ground (GND), voltage (5V or VCC), and digital output (D0/OUT). If it is present, the analog output (A0) pin should not be connected. If it is possible, the ground pin should have the darkest color, or the voltage should be the ...