These are instructions to assemble the wiring connector that comes with the DIY sensors. You can also follow these instructions to wire any 5V sensor that that output an analog output signal.

The following components are included for each sensor to be assembled:

  1. Red wire (for power)
  2. White wire (for signal)
  3. Black wire (for ground)
  4. Connector plug
  5. Sensor module

First, gather up all the required parts for a sensor. Following shows the potentiometer sensor:

img_2085

Next, connect the female ends of the wires to the male headers on the sensor. The red and black wires can be switched – you would just get the reverse signals as you turn the knob in the same direction. However, make sure the white wire is in the middle!

img_2086

On the connector side, make sure the black wire is at the bottom part of the connector, white in the middle, and red on top:

img_2093

This is what you should end up with:

img_2092

Now do the same for the rest of your sensor modules, and you’re good to go. For example, following shows the assembly of the IR distance sensor:

img_2088

img_2089

Note here that the signal order on the sensor is different, and the OUT (signal) wire is at the end. Make sure your wires line up accordingly!

img_2090

Now you’re ready to use them with the PiShield! Following shows the two sensors connected to a PiShield on a Raspberry Pi Zero:

img_2095