In this document, I show the building of a PCB prototype using the following components:
- 20-pin female header with 90 degrees bent header pins. Note that the header I used
- 2 male & 2 female connectors
- a 1N4001 diode
- an 8 RGB-LED strip
- a PCB board (single copper islands with a 1/10 inch pitch) used for experiments cut to the right width. The board is not cut to the correct length.
These following pictures shows the different components.
PCB board solder side:
PCB board component side:
The assist the soldering of the male connectors to the LED strip, we use a custom "caliber PCB" as shown here
We start by putting the male connectors in the female connectors in the caliber
Next, we clamp the LED strip to the contacts on the male connectors using alligator clamps and solder the outer contact of each connector to the LED strip:
Now, we solder the two remaining outer contacts to the LED strip:
The LED strip with connectors can now be removed gently using a flat screwdriver:
We now finish this part by soldering the remaining two contacts on each connector to the LED strip (viewed from 3 different angles):
We're now going to solder the female header to the PCB board. As the 3 contacts we're using on the GPIO connector are all on the outer edge of the connector, we can trim the "long" pins leaving only a single row of pins (that are bent 90 degrees on this connector):
Now solder the connector on the PCB board and solder the 1N4001 diode on the same side of the PCB board:
Next, we plug the male connectors on the LED strip into two female connectors. Note the orientation of the pins on the female connector. We clamp the assembly to the PCB board and solder two contacts to the PCB board:
We remove the clamps and solder two outer contacts on the other side:
Again, we take the LED strip from the PCB board using a flat-blade screw driver and solder the remaining contact to the board:
We can now finish the assembly by wiring things up. Of course, with a custom PCB this step would not be needed and we could just proceed with testing the PCB.
Here we connect anode of the 1N4001 diode to the first pin on the header, the cathode to the 3rd pin of the female connector and the data signal pin (6th pin counting from the pin closest to the female connector) to the 2nd pin of the female connector.
We now complete the connections by connecting the ground (GND) pin:
When we plug the LED strip back in, we can plug the complete assembly on the Pi's GPIO connector (3 views shown):
And test it:
Success !!!
This assembly
- is "low" enough to be plugged into a stacked Raspberry Pi.
- Stands relatively far away from the GPIO connector. Still, it stays within the outer boundary of the Pi stack plates. Potentially, this distance may be reduced by using another connector type... if one can find one...
- Male connectors
- Manufacturer: Preci-Dip
- Part-number: 800-80-004-20-001101
- Female connectors
- Manufacturer: Preci-Dip
- Part-number: 801-87-004-20-002101
- LED Strip:
- 8-channel-WS2812-5050-RGB-LED
- Ali-express parts link
- 20-pin Female header:
As reported by @raboof, there's this 6-pin, single row, female header that fits the bill perfectly for this assembly.