Close

Semi-finished

A project log for Traffic Light

Tiny traffic light on a breadboard controllable with a button.

steven-rochSteven Roch 12/31/2015 at 00:470 Comments

Finished version with a minor drawback


I had to move the buttons control pin from Pin 2 to Pin 8 because the pins 2 & 3 have a built-in pull resistance which I didn't know by the time I was making the projects layout.

The Python code as it is in its current state, checks the status of the button every 0.5s.

This is just an emergency solution because in the initial state of the code, the button was checked several hundred times a second (no sleep-function) which led to an issue where you press the button and the status variable changes its state to fast and therefore you ended up with weird signals.

Discussions