This doc should go over the basics of how to assemble the 8pack keypad.
- Basic soldering knowledge and experience (through-hole components, orientation)
- Basic electronics knowledge
- PCB/Board - A printed circuit board. It contains copper tracks in which multiple electronic components are connected together after soldering.
- Through-hole - part of an exposed copper track where electronic components are attached and soldered.
- Leads - long metal wires attached to electronic components. Usually found on simple components like resistors, keyswitches and LEDs
- Headers - A type of connector used to connect components together. Male headers have exposed leads, and female headers have sockets
- Pins - Connections to a microcontroller's ports, usually attached to other electronic components in order to interact with them.
- Joint - the place where a component's lead intersects with a through-hole.
- Keyswitch/button - What the microcontroller checks to send keypresses
- Keycap - What your fingers press to interact with your keypad
- Plate - Where the keyswitches are mounted; also protects the electronic components from direct contact.
- Resistor - Component used to protect the LEDs from burning out
- LED - The lighting on the keypad
- Header - A connector used for attaching electrical components together
- PCB - The board responsible for electrically connecting the keypad together
- Microcontroller - The module responsible for reading the switches and flashing the LEDs.
- Standoffs - A really long nut with threads on the inside, used to fix/mount boards in place. Usually used with the appropriately-sized screw.
This section delves into the assembly of the 8pack keypad, in chronological order. Order of assembly is important, as backtracking the steps requires knowledge of desoldering (a difficult process even for experienced hobbyists). There are also sub-steps in the main steps outlined above, which also need to be followed in that order.
DISCLAIMER: The photos used for this guide both show pictures from Ver 1.2 and Ver 1.4. However, the assembly guide focuses on Ver 1.4 and above
Make sure all parts listed above are present.
-
Main keypad components
- 8 x keyswitches
- 2 x headers
- 1 x Pro Micro microcontroller board
- 1 x right-angle pushbutton
- 1 x top plate
- 1 x bottom plate
- 1 x keypad PCB
- 4 x M3 10mm standoffs
- 8 x M3 6mm machine screws
-
Backlighting components
- 8 x 1.8mm LEDs
- 8 x 180 ohm resistors
-
Underglow components
- 2 x LED WS2812B strips
- 3 x wires (one colour of each wire)
Peel the cover from the LED strip backside to reveal the adhesive layer
Align the LED strip pads with the solder pads on the top plate. Make sure that the strip is pointing at the same direction as the top plate, and leave pad space on both ends.
Hint: GND should be aligned along the bold box, and the black line on the strip should align with the midsection of the board.
Bridge the solder pad between the LED strip and the top plate as shown below:
Repeat for the other side of the strip:
Now repeat the above steps for the other LED strip:
Now take the three wires, strip one end for each color, and solder to the pads shown below. The red wire must be soldered to +5V, the yellow to Din, and the black wire to GND.
You may also twist the wire to your heart's content.
Attach the switch by pushing it through the square cutouts. Make sure that the switch pins face up and away from you, and that all the switches face in the same direction. An example is shown below:
Bend each resistor to the required shape below:
Thread each resistor through the markings indicated as R1
to R8
. Orientation does not matter here, any direction you plug them into will work.
It might be useful to bend the leads outward to prevent the resistors from falling out later
Solder and trim the resistor leads
This step is rather for me to explain, so I recommend Sparkfun's guide on how to install headers to get a feel for how this step will work.
Short side goes through the hole and soldered:
Long side faces away from it:
Depending on your style of switch, the order of assembly will differ.
A BOX switch is characterized by a cross pattern inside a box, as shown here:
In this case, the LEDs sit underneath the keyswitch. Therefore one must attach the LEDs now.
Thread the LEDs through their mounting holes. The orientation matters this time, so make sure the longer lead threads through the circular hole, while the shorter lead threads through the square hole. Sparkfun has guide about LED orientation which you can read here:
Solder the LEDs and trim their leads:
A Cherry-style switch is characterized by a cross pattern only.
In this case the switch sits on top of the keyswitch. Steps 3.3.1 to 3.3.2 must wait after the top plate has been joined with the PCB.
Attach the pushbutton as shown down below:
Solder the pushbutton to the PCB
Strip the other end of the wires.
Attach the wires to their designated locations
- Red to VCC
- Black to GND
- Yellow to RX
Solder and trim the wires in place:
Align the switch pins to the PCB holes, press and hold the PCB down and solder the switches in place:
Depending on the revision of the PCB used, the orientation differs. As such, Ver. 1.2 and lower use this orientation (USB port faces away form PCB and south relative to the 8pack logo):
While Ver. 1.3 and above use this orientation (USB port faces towards the PCB and north relative to the 8pack logo):
Slot the Pro Micro through the headers
Trim the headers
Solder the headers as shown below
Head over to the Programming section for this section of the guide.
With the included M3 standoffs and bolts, attach the bottom plate to the top plate
Voila, you now have a working keypad, ready for a set of keycaps.