Quantcast
[ 3 / biz / cgl / ck / diy / fa / g / ic / jp / lit / sci / tg / vr ] [ index / top / reports / report a bug ] [ 4plebs / archived.moe / rbt ]

2017/01/28: An issue regarding the front page of /jp/ has been fixed. Also, thanks to all who contacted us about sponsorship.

/diy/ - Do-It-Yourself

Search:


View post   

[ Toggle deleted replies ]
>> No.1610717 [View]
File: 20 KB, 633x755, traffic signals.png [View same] [iqdb] [saucenao] [google] [report]
1610717

I'm trying to come up with some circuit ideas using the 4017 counter IC. Made this simulated toy circuit for controlling a traffic signal. The idea is to use this circuit with a microcontroller to control many (or all) traffic signals of an intersection.

It works by first setting the "Enable" input high, followed by a "Reset" pulse and then clocking required number of "Data" pulses into the 4017 counter IC. The aspect is changed after setting the "Enable" input low. The outputs 1..4 of the 4017 select a different light combination.
- 1 clock pulse: red,
- 2 pulses: red+amber,
- 3 pulses: green,
- 4 pulses: amber.

There's also a fail-safe watchdog function. If the "Enable" signal hasn't changed after a certain time period, the 4017 counter is reset to "0". This starts flashing the amber light, indicating that the traffic signals are not functional.
The current version is kind of crappy as the lights can't change simultaneously. Would need to have some kind of "strobe" signal.



Navigation
View posts [+24] [+48] [+96]