Line up the analog joystick with the breakout board so the terminals fit in the "through-holes". Solder the joystick to the PCB. Place the rubber thumb piece on top of the joystick nub part and firmly press it down to secure it into place.
Measure and cut four pieces of 30AWG wire to about 8cm long. Secure the joystick PCB to a panavise and solder four pieces of wire to the Yout, Xout, VCC and GND.
Secure the cupcade PCB to a panavise Jr. and solder the four wires to Yout, Xout, VCC and GND with the wires going into the pins with cupcade logo facing up.
Position the cupcade PCB over the bottom enclosure part with the wires facing down. Line up mounting holes on the PCB with stand-offs on the part. Mount in place with two #4-40 3/8 flat Phillips machine screws.
Use five female jumper cables to connect the cupcade PCB to the Pi GPIO header. Start by removing the plastic covers with a sharp tool to expose the female connector. Use a pair of flat pliers to bend the female connector so it's right angled - This allows us to make it a 'thin' as possible.
Add a piece of heat shrink tubing to insulate the exposed female connector. Cut off the other end of the cable and strip the ends with wire cutters. Tin the stranded wire to make connecting to the pin on the PCB easier.
The Cupcade PCB was designed to fit onto a PiTFT header via socket connector, but in this project we're free wiring the PCB using jumper cables - This allows us to easily rewire connections if things need to change.
Follow the wire diagram to reference which pins need to connect the cupcade PCB to the Pi GPIO. Down, Up, Left, and Right are being connected here.
Double-check wiring, cross referening the diagram and sodler the jumper cables to the appropriate pins on the Cupcade PCB.
Plug in the female jumper cables wired from the cupcade PCB to the GPIO header Raspberry Pi.
Follow the legend below to connect the cupcade to the Raspberry Pi GPIO.
USE THE PI GPIO DIAGRAM BELOW, NOT THE PHOTOS ABOVE — the photos show a prototype and the connections changed.