Build Guide, Part 2
This part of the build guide uses the switch PCB design available here on GitHub. As with the main board, it is possible to replicate the circuit design using a pegboard.The Switch PCB |
Click on the picture for an enlarged view.
Molex Connectors and Ribbon Cable |
The Molex connectors are designed to be crimped, but the crimping tools are absurdly expensive,
The red marking on the ribbon cable I've used denotes the switch wire. The opposite side ins the ground and the centre two are for the LEDs
UPDATE: Thanks to Paul for this crimping tool recommendation - much, much easier (and more secure) than soldering all for less than a tenth of the price (£23) of the official Molex ones.
Molex Plug |
Insert Connectors into Molex Plug
Once soldered, crimp the connectors over the cable insulation and then push into the Molex plug casing, ensuring the barbs locate in the square holes (arrowed).Switch on PCB |
Solder the Momentary Switch to PCB
Straighten the switch legs and splay them out slightly. This will allow the switch body to sit directly onto the PCB.Solder the legs from the back, ensuring the switch doesn't 'pop-up', then cut off any excess.
LEDs on PCB |
Solder the LEDs to PCB
Mount the LEDs tight to the PCB. Note the positive tails (arrowed, slightly longer) and both to the inside.Solder from the back and then cut off the tails.
Ribbon Cable, Switch End |
Cut the Ribbon Cable
Cut the ribbon cable to the required length (this will depend where you mount the switch relative to the nearmiss-o-meter on the bike - I've cut to approximately 280mm long).
Leave the switch wire (red stripe on my build) about 10mm longer than the other three.
Solder the Ribbon Cable to Switch PCB
Tin the ends of the wires an push through the PCB from the top. Double check the routing from plug to PCB is as per the photograph, solder from the back and snip off any excess.That's it!
Next up, the Arduino code and case fitting.
No comments:
Post a Comment