Month 2 Box - Hardware 101 w/Soldering, PCB Design & more

Lesson 6 – Soldering the Game Shield

Soldering the Game Shield

You proved the game shield works on a breadboard; now you make it permanent. This lesson solders the OLED, the six buttons, and the header pins onto a perfboard so the whole thing becomes a durable shield that pops onto your board. It is a hands-on soldering lesson, so the focus is technique, planning your wire routing, and verifying every joint with your multimeter.

Why solder it at all

Breadboard prototyping is perfect for testing and iterating, but it is fragile. Wires work loose, and a bump or a snagged cable can pull the whole circuit apart. Soldering the design onto a perfboard makes it sturdy, compact, and permanent, one step short of a manufactured PCB. The result is a shield you can handle, drop in a bag, and reuse without it falling apart. You are taking a proven prototype and turning it into a real device.

Single-sided versus double-sided perfboard

A single-sided perfboard has solder pads on only one face, which makes mounting header pins awkward because you must solder underneath. A double-sided board has pads on both faces and holds parts far more easily, so it is the recommended choice. If you only have a single-sided board, you can still succeed with tape to hold parts in place and a bit of patience; it is just harder.

Mounting the header pins

The shield connects to the board through male header pins that plug into the board's sockets. You break off the headers you need, insert them so they align with the board's pins, and solder them to the perfboard. A useful detail: you only need to solder the pins this project actually uses, the two I2C pins A4 and A5 for the display and digital pins 2 through 7 for the buttons, plus power and ground. A soldering trick is to fix the two end pins first so the strip is anchored, then the middle pins go in easily.

Planning the ground rail and routing

Because the buttons use INPUT_PULLUP, one leg of every button connects to ground. Rather than run a separate ground wire to each, you build a single ground rail, a bare copper wire that snakes past all the buttons, and connect each button's grounded leg to it. The other leg of each button then routes to its digital pin with a color-coded wire, which keeps the tangle readable. Plan placement so component legs underneath do not touch the board's USB shell or barrel jack, which could short.

Soldering technique that prevents problems

Two habits prevent most failures. First, use as little solder as necessary, because excess solder bridges to neighboring pads and creates short circuits. Second, keep the tip clean by wiping it on the damp sponge or brass wool between joints, so heat transfers well and joints come out shiny. Snip excess wire from finished joints so stray legs cannot touch. Soldering is muscle memory: it genuinely improves with repetition, so early joints being imperfect is expected.

Working through it

Solder the header pins. Insert the male headers into the board's pins, place the perfboard on top so the headers poke through, and solder them from underneath. Do the two end pins first to anchor the strip, then the rest. Solder only the pins the project uses.

Place the buttons, mindful of clearances. Position the direction buttons and the A and B buttons, keeping their legs clear of the board's USB port and barrel jack underneath. Tack two legs of each button to hold them while you plan wiring.

Build the ground rail. Run a bare copper wire past all the buttons and solder it to a GND pin. Connect one leg of every button (keep it consistent, such as all left legs) to this rail so they share a common ground.

Wire buttons to their pins. Route color-coded wires from each button's other leg to its digital pin: up to 2, down to 3, left to 4, right to 5, A to 6, B to 7. Keep runs from overlapping the ground rail.

Test the buttons with continuity. In continuity mode, confirm each button's pin leg beeps to its correct pin and to nothing else, and that every grounded leg beeps to GND. Fix any missing or unwanted connections now.

Solder and verify the OLED. Wire VCC to 5V, GND to the ground rail, SCL to A5, and SDA to A4. Continuity-test all four, then mount the shield, upload the sketch, and confirm the buttons and screen work.

Common mistakes and troubleshooting

Solder bridges between close joints. Use less solder and, if a bridge forms, reheat and wick or drag it away. Keep the tip clean for control.

A button leg shorts against the board's USB or barrel jack underneath. Reposition the button and trim leg length so nothing metal touches the board's connectors.

A continuity test beeps on the wrong pin.