When C3 has charged and O5 is low the reset input is floating. Using a resistor in the D6 position solves this problem.
I was over thinking and concerned that it needs a reset signal and also forgot the CD4017 preparing to do the automatic recycling when the d-ff shifted to Q9.I'm between computers, so here is a text circuit based on the schematics in posts 5, 8, and 11. #11 is close, but I don't understand what the flipflop is doing. There are 10 defined states and 10 outputs, so there is no need for a feedback reset connection.
To see the condition at the start:You want to start with the 4017 output sequence with Q1, not Q0, so the power-on reset begins with all lamps off.
ak
But you have Q0 turning on a relay.I'm between computers, so here is a text circuit based on the schematics in posts 5, 8, and 11. #11 is close, but I don't understand what the flipflop is doing. There are 10 defined states and 10 outputs, so there is no need for a feedback reset connection.
Debounced pushbutton
CD4017, CD4071 (quad OR gate), 4 x 2N7000
4017 outputs Q0, Q2, Q4, and Q6 go to 1 input of each OR gate
4017 output Q8 goes to the other input of all OR gates
Each OR gate drives a 2N7000; Each 2N7000 drives a relay
R-C power on reset to the 4017 Reset input
The circuit powers up in the Q0 state with all lamps off.
ak
It is not an easy thing to design - but funI am off my game today. But that does explain why I didn't think the first few schematic were correct. My bad. However, this means that the input button must be pressed continuously for any lamp to be lit. Seems strange, but whatever.
I can get most of the way there with a 4017, 4081 quad AND, and 2803 octal driver. The only messy is part turning off all outputs when the button is released while Q4 is high. The next button press turns on Q5, which is tied to the reset input and flips the 4017 around to the starting state. Almost there.
One option is to go with triple-input gates, but that seems messy.
ak
It's not at all strange if the input is a maintained switch (I'm guessing this is what was meant by "on/off",) as opposed to a momentary switch. Then it makes perfect sense to have "off" always equal off, but to have each subsequent "on" cycle through the available output options.However, this means that the input button must be pressed continuously for any lamp to be lit. Seems strange, but whatever.
I just thought that I could be wrong for the output of CD4017, because there was a product already assembled in the wall of my room and I think what the TS want is something like this and this(there is wiring diagram inside more clearly) , and the first status could be wrong, it should be I=0(off), the effects like this video below.A DPST or DPDT switch makes things much easier.
EDIT: Now that I think about it, a SPST switch will work. If you reverse the positions of S1 and R1 in post #24 so that one pole of S1 is tied directly to the rail, then the output of S1 can clock the 4017 *and* power the relay coils. This eliminates the gating needed to turn off the lamps when the switch is off. We're back to one 4017 and one 2804.
ak
by Aaron Carman
by Jake Hertz
by Jake Hertz
by Jake Hertz