More hardware and software for the Jira traffic light

I have been making progress on the hardware and software for the Jira traffic light. Hardware-wise I am almost complete. I have fitted LEDs into place with reflective backing made from the lids of Chinese takeaway tubs to make the most of the light in the space. I have fitted diffusers over the front of the lights, using the frosted plastic of a milk bottle. I cut female to female jumper cables and soldered them to a small board where I also soldered on 470R resistors, wired the jumper cables to the LEDs and also attached ground wires.

Testing the traffic light wiring
The Pi will be turning the lights on and off dependent on thresholds baked into the code. The code itself is almost complete, with the GPIO section and the Jira connection the last two pieces to write. The code so far can be found on my Github repository.

From an efficiency standpoint I know that I could achieve the same effect I am going to get with a single combined ground, a relay on the power line and less code, but with the available out lines from the Raspberry Pi it was simpler with the parts I had to hand to do slightly more coding and simpler wiring.

Comments