Timer circuit in traffic light

An area for asking questions, making suggestion, share ideas and place circuit examples.
Post Reply
Daniel977
Posts: 4
Joined: Mon Jun 22, 2020 2:03 am

Timer circuit in traffic light

Post by Daniel977 »

Hello everyone
Is there any samples for timer circuits? Im currently trying to build this traffic light system with a timer for each light and finding it a bit hard to do this. Would kindly appreciate the help
Daniel977
Posts: 4
Joined: Mon Jun 22, 2020 2:03 am

Re: Timer circuit in traffic light

Post by Daniel977 »

So Im trying to make a 4 bit down counter based on the one from sample by changing q and ~q output pin destinations (see image) but there still seems to be some kind of problem. Output on the display shows numbers 22-20, 27-20, 0F, 2E,1E,0E,7E,6E and stops(see image). And ive deleted hour, minute outputs and reset button as well, since i only need a 60 sec countdown. Any suggestions to fix this?
Attachments
image (2).jpg
image (2).jpg (59.23 KiB) Viewed 23002 times
image (1).jpg
image (1).jpg (13.36 KiB) Viewed 23002 times
User avatar
admin
Site Admin
Posts: 417
Joined: Sun Jun 14, 2009 10:53 pm
Contact:

Re: Timer circuit in traffic light

Post by admin »

Why do you need down counter? For traffic light you will need a shift register for 3 bits. During the initialization you will set one bit to 1 and other two to 0. Then each clock input shift and cycle the last bit to the first. To send a clock signal to the shift you need to divide frequency with a counter. For simplicity you can count to 64 instead of 60 seconds.
Daniel977
Posts: 4
Joined: Mon Jun 22, 2020 2:03 am

Re: Timer circuit in traffic light

Post by Daniel977 »

well my task is to design a traffic light with a 7 segment display countdown timer, where green remains ON 59s to 0s, then yellow 5 to 0 and red 30 to 0. You think shift register is a better option for this?
User avatar
admin
Site Admin
Posts: 417
Joined: Sun Jun 14, 2009 10:53 pm
Contact:

Re: Timer circuit in traffic light

Post by admin »

You did not mention the countdown display before. The shift register is for controlling the traffic light itself. The countdown is different story. For more specific discussion please attach your project and provide better description of what you are trying to build.
Daniel977
Posts: 4
Joined: Mon Jun 22, 2020 2:03 am

Re: Timer circuit in traffic light

Post by Daniel977 »

I've replied in pm.
Post Reply