# Sequential circuit design help please!

#### crb123

Joined May 16, 2017
8
Currently studying 1st yr electronic engineering....and have a question ...any help will be much appreciated...thank you.
ok...so have to use two switch. and whichever flipflops .....
switch1 has two state on/off.
switch2 is a momentary push switch.
light on sequence is
IF
(switch1=ON), then press n release switch2, then (switch1=Off), then press n release switch2.... light ON

ELSE light off

#### Kermit2

Joined Feb 5, 2010
4,162

One switch will be an input, another switch will serve as a clock to move the input to the latch side of the flip flop.

#### crb123

Joined May 16, 2017
8
how can you input a sequence of 4 steps in one SR FF.........please note the 4 step sequence is (move switch1 to ON), ; then press n release switch2, ; then (move switch1 to Off), ; then press n release switch2 again.

#### WBahn

Joined Mar 31, 2012
26,398
You really need to at least take a shot at solving your own homework first. Then members can provide feedback and help guide you along. Just use your best understanding of how you might try to approach this -- it doesn't have to be right, but we need a starting point.

#### crb123

Joined May 16, 2017
8

#### crb123

Joined May 16, 2017
8
I would approach it as above state diagram ifff both the inputs were normal on/off switch...say switch A and B....and required sequence was A.b.!A.b
...but don't know how to tackle momentary switch...

#### EM Fields

Joined Jun 8, 2016
583
I would approach it as above state diagram ifff both the inputs were normal on/off switch...say switch A and B....and required sequence was A.b.!A.b
...but don't know how to tackle momentary switch...
A SPST Normally Open (Form A) momentary push switch connects its switch contacts when its actuator is pushed and disconnects them automatically when the actuator is released.

#### crb123

Joined May 16, 2017
8
this is what i got so far.......

#### WBahn

Joined Mar 31, 2012
26,398
So now walk through it and make up a timing diagram that covers all the possible scenarios and see if it behaves like you want it to. If it doesn't, focus on understanding what is preventing it from doing so.