Close
0%
0%

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.

Similar projects worth following
This project is an attempt to remind those drivers who are looking at their phones while being first on the traffic light, and those who are poking around at passenger seat looking for something in their bag or in glove compartment.

Countdown timers are simply not enough in these situations since drivers are obviously not paying any attention to traffic lights. We need something to get their attention when light turns green. This can be done by detecting stopped vehicles which are first on the junction and reminding them to start moving right after the light turns green. This just might prevent those behind them from honking prematurely.

Detecting vehicles is a project by itself, so here we will focus on what we already have and that is an Inductive Loop Vehicle Detector (ILVD or ILD). Simply detecting vehicles is not enough because we somehow need an information whether vehicle is parked/stopped and not moving, because once the vehicle starts moving we need to stop reminding the driver about the green light as he/she obviously got that information.

Portable Network Graphics (PNG) - 588.21 kB - 09/04/2017 at 10:10

Preview
Download

schematics.png

Schematics

Portable Network Graphics (PNG) - 147.06 kB - 09/04/2017 at 10:10

Preview
Download

20170219_103445.jpg

assembly of the vehicle detector

JPEG Image - 306.13 kB - 09/04/2017 at 09:32

Preview
Download

20170818_193852.jpg

testing vehicle detector

JPEG Image - 303.22 kB - 09/04/2017 at 09:32

Preview
Download

  • Waiting for PCBs from the factory...

    trax09/04/2017 at 10:21 0 comments

    Nothing to do while we wait for the PCBs to arrive...

  • Connecting the board to traffic light

    trax09/04/2017 at 10:19 0 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!

  • Making a simple green light blinker for traffic light

    trax09/04/2017 at 09:30 0 comments

    Anything installed to traffic lights must undergo strict QA & QC, and must satisfy various standards required by the law. Unfortunately I can not do anything about those at the moment, because this is just an idea prototype (with actual implementation) without any funding at all.

    Blinking green light can be implemented as an additional small traffic light, just like those used for bicycles but only with a green lantern that would be installed lower, somewhere at the same height as driver's eyes. Another idea is to use a higher power green LED with directional lens so that when it blinks it shines directly into the stopped vehicle that is keeping still in front of the traffic light.

    Both of these should be enough to catch an attention of oblivious driver even when they are not looking at it directly. Unfortunately we can't do anything about sleeping drivers :-)

    Two inputs are required to decide if we should start blinking:

    1. Enable (when traffic light is currently green)

    2. Not-moving (if car is not moving)

    When both conditions are satisfied the microcontroller should start blinking LEDs. We might also allow 0.5 or even 1 second delay before starting to blink, but this should be experimented in the field.

  • Detecting stopped vehicles working

    trax09/04/2017 at 09:19 0 comments

    Finally got the Detect Stop functionality working perfectly for my ILD project, it can be seen in the video at 7:50:

  • Detecting stopped vehicles?

    trax09/04/2017 at 09:16 0 comments

    Detecting vehicles is a project by itself, so here we will focus on what we already have and that is an Inductive Loop Vehicle Detector (ILVD or ILD). Simply detecting vehicles is not enough because we somehow need an information whether vehicle is parked/stopped and not moving, because once the vehicle starts moving we need to stop reminding the driver about the green light as he/she obviously got that information.

    We can do this with an additional functionality of some better ILDs on the market that detect stopped/parked vehicles or we could build one our self (https://www.elektronika.ba/868/dual-channel-inductive-loop-vehicle-detector/). So lets start experimenting...

View all 5 project logs

  • 1
    PIC Firmware

    PICBasic firmware for PIC12F675

    Define OSCCAL_1K 1  ' Calibrate internal oscillator
    LED Con 0
    ENAB Con 5
    STOPPED Con 4
    ANSEL = 0     ' Set all digital
    CMCON = 7     ' Analog comparators off
    OPTION_REG.7 = 0 ' Enable WPUs
    Low LED
    mainloop:
        ' loop while not enabled
        IF ENAB = 1 THEN
            GOTO mainloop
        ENDIF
        ' loop if car not stopped
        IF STOPPED = 1 THEN
            GOTO mainloop
        ENDIF
        Pause 500     ' Delay for .5 seconds
    blinking:
        High LED
        Pause 300
        Low LED
        Pause 500
        ' car started moving, or green light disappeared?
        IF STOPPED = 1 OR ENAB = 1 THEN
            GOTO mainloop
        ENDIF
        GOTO blinking
    End
    

View all instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates