Wiring¶
Wiring Diagram¶
Sensor¶
The sensor is fixed to the housing with hot glue.
A black female-ended jump wire is connected to the sensor’s GND pin.
A green female-ended jump wire is connected to the sensor’s SDA pin.
A yellow female-ended jump wire is connected to the sensor’s VCC pin.
An orange female-ended jump wire is connected to the sensor’s SCL pin.
The current wire for the top button is white.
The current wire for the trigger button is red.
The ground from the buttons is blue.
Joystick to Ethernet¶
The end of a cat-5e cable was removed, leaving one male end. The cable was stripped to expose the four braided wires, 8 wires total.
The ground from the sensor and the ground from the buttons were soldered together, then soldered to the brown cable in the brown twisted pair.
The white current wire from the top button was soldered to the white cable in the brown twisted pair.
The green SDA wire was soldered to the green cable in the green twisted pair.
The red trigger button current wire was soldered to the orange cable in the orange twisted pair.
The yellow VCC wire was soldered to the white wire in the orange twisted pair.
The orange SCL wire was soldered to the blue wire in the blue twisted pair.
The white wires from the green twisted pair and the blue twisted pair were not used.
The spliced wires were wrapped in electrical tape to secure them during use.
Ethernet Jack to PI¶
The cable used was a commercial cable so the secondary (right-hand) indicators of cable coloring on the jack were used, as specified in “Wiring Scheme B” of the instructions. For example, port 1 is the white wire of the orange twisted pair, not the white wire of the green twisted pair.
Ends of jump wires were stripped and terminated in the jack using the included plastic punch-down tool.
Terminal 1 corresponded to the white wire of the orange twisted pair in the cat-5 cable. This was the Trigger Button line and was wired to a GPIO pin on the Pi breadboard with a yellow wire.
Terminal 2 corresponded to the orange wire of the orange twisted pair in the cat-5 cable. This was VCC and was wired to the 3.3v VCC pin on the Pi breadboard with an orange wire.
Terminal 3 corresponded to the white wire of the green twisted pair in the cat-5 cable. This was unused.
Terminal 4 corresponded to the green wire of the green twisted pair in the cat-5 cable. This was SDA and was wired to the SDA pin on the Pi breadboard with a yellow wire.
Terminal 5 corresponded to the white wire of the brown twisted pair in the cat-5 cable. This was the Top Button line and was wired to a GPIO pin on the Pi breadboard with an orange wire.
Terminal 6 corresponded to the brown wire of the brown twisted pair in the cat-5 cable. This was Ground and was wired to a ground pin on the Pi breadboard with a dark green wire.
Terminal 7 corresponded to the white wire of the blue twisted pair in the cat-5 cable. This was unused.
Terminal 8 corresponded to the blue wire of the blue twisted pair in the cat-5 cable. This was SCL and was wired to the SCL pin on the Pi breadboard with a yellow wire.
Because wire supply limitations did not allow for color-coding all the wires, labels were affixed to each wire coming out of the jack so they could be correctly plugged in to the Pi.