1 input 4 output circuit for light control

Thread Starter

Ahhus21

Joined Nov 5, 2017
2
Hello guys, sorry for my bad English.
I'm an electrician but I'm slow with logic. Here I want to ask how to make a 1 input and 4 output circuit with this sequence:
1. I=1; O1=1; other output=0
2. I=0; all output=0
3. I=1; O2=1; other output=0
4. I=0; all output=0
5. I=1; O3=1; other output=0
6. I=0; all output=0
7. I=1; O4=1; other output=0
8. I=0; all output=0
9. I=1; all output=1
10. I=0; all output=0
11. Back to start

I try to simulate it but I'm going nowhere with my bad logic understanding. I want to make it only with 1 on-off switch and some relays. Is it possible?

Thank you for your answers
 

ScottWang

Joined Aug 23, 2012
7,400
True. It needs a bit more.
If the TS needs more current of relay then R3~R6 should be reduce some more and the CD4017 changes to 74HC4017 and it can be provides more current for the transistors, this circuit also needs a 5V ac to dc adapter.

Another considering is that if the TS want to use the 12V relay then ic only can be use CD4017, because the Vmax of 74HC4017 is 6V.

Switch_NE555_CD4017_Bjt_Relay_AlbertHall.gif
 

ebeowulf17

Joined Aug 12, 2014
3,307
If the TS needs more current of relay then R3~R6 should be reduce some more and the CD4017 changes to 74HC4017 and it can be provides more current for the transistors, this circuit also needs a 5V ac to dc adapter.

Another considering is that if the TS want to use the 12V relay then ic only can be use CD4017, because the Vmax of 74HC4017 is 6V.

View attachment 138751
That schematic looks close to me, but doesn't handle state #9 with all outputs on. I imagine you could use diodes to run output Q8 to all 4 resistors R3-R8, then connect Q9 to reset pin.
 

crutschow

Joined Mar 14, 2008
34,432
That schematic looks close to me, but doesn't handle state #9 with all outputs on. I imagine you could use diodes to run output Q8 to all 4 resistors R3-R8, then connect Q9 to reset pin.
For the circuit in post #8, you could also use a CD4071 quad 2-input OR gate.
  • Each OR gate output goes to its respective transistor input.
  • One of the OR gate inputs goes to the respective CD4017 output.
  • The other OR gate inputs are all connected to the Q8 output.
  • Output Q9 goes to the reset pin.
This will turn on all the lights as the last step in the sequence.
 

AlbertHall

Joined Jun 4, 2014
12,346
That schematic looks close to me, but doesn't handle state #9 with all outputs on. I imagine you could use diodes to run output Q8 to all 4 resistors R3-R8, then connect Q9 to reset pin.
Yes it does, that's what the NOR gates are doing.
All it is missing is that all outputs should be off when the button is released.
 

AlbertHall

Joined Jun 4, 2014
12,346
And here it is including the missing bit!
Each press of the button advances the count of the '4017 so selecting the next relay in the sequence until the fifth press where Q4 will be high. This is fed by the NOR gates to all four lights. The next press resets the '4017 by the link between Q5 and reset. While the button is pressed the 2N7000s are enabled but when the button is released they are turned off, disabling any selected channel.
upload_2017-11-6_10-28-39.png
 

absf

Joined Dec 29, 2010
1,968
And here it is including the missing bit!
Each press of the button advances the count of the '4017 so selecting the next relay in the sequence until the fifth press where Q4 will be high. This is fed by the NOR gates to all four lights. The next press resets the '4017 by the link between Q5 and reset. While the button is pressed the 2N7000s are enabled but when the button is released they are turned off, disabling any selected channel.
View attachment 138761
Adding the four 2n7000 mosfet finally fulfill what the TS was asking. Can the 4x 2n7000 be replaced with a CD4066?

Allen
 

eetech00

Joined Jun 8, 2013
3,951
And here it is including the missing bit!
Each press of the button advances the count of the '4017 so selecting the next relay in the sequence until the fifth press where Q4 will be high. This is fed by the NOR gates to all four lights. The next press resets the '4017 by the link between Q5 and reset. While the button is pressed the 2N7000s are enabled but when the button is released they are turned off, disabling any selected channel.
View attachment 138761
Can you really use Q0?
Isn't that high when chip is reset?
 

AlbertHall

Joined Jun 4, 2014
12,346
MK3 version. It now has a power on reset. After power is applied, C3 will reset the '4017 so Q0 will be high - no lights on as the button is not pressed. The first press of the button will set Q1 high and light the first light. The sequence proceeds as before. Note that it is now Q0 which turns on all four lights.
upload_2017-11-6_15-11-12.png
 
Top