Close

Connecting the board to traffic light

A project log for Green Traffic Light Reminder (anti-honking)

Don't you hate when people start honking a split-second after the light turns green? Sometimes this is justified and other times simply not.

traxtrax 09/04/2017 at 10:190 Comments

Traffic lights in my city are 12V variant so for testing purposes it is enough to connect our electronics directly to the traffic light bulb power supply. Bulbs are LEDs by the way.

In our case the PIC12F629 is powered from the green light bulb itself, and also the optocoupler on GP5 is also connected to power supply in order to provide information that green light is ON. This optocoupler is redundant in this setup, but I left it for situations where PIC would not be powered from the green light power supply.

Optocoupler that is connected to GP4 is connected to Vehicle Detector. Vehicle Detector must be setup so that it provides signal at output when vehicle is detected AND parked (not moving).

When both conditions are met the LEDs should start blinking. That is it!

Discussions