Circuit to push 5 momentary button switches in the right order to get an output.

Thread Starter

petesignals

Joined Aug 28, 2018
3
looking for a circuit that, when you push 5 momentary switches and let go in the right order so you get an output. Each switch circuit output should input the next circuit plus it's own switch output to enable that switch circuit output and so on till all 5 are pushed. would like to keep this as simple as possible.
 

dl324

Joined Mar 30, 2015
12,873
Welcome to AAC!

I don't understand what "next circuit" means. Post a block diagram or flow chart showing the functionality you want.
 

danadak

Joined Mar 10, 2018
4,057
Do they have to be momentary Push Buttons or push on push off type ?

Is there a timeout limit from push of first button to last, if not completed within
a time window whole process is reset ?

Do you want the allowed sequence programmable, ability to change it ?

Of course with a UP this is a trivial problem, is that being considered ?

Regards, Dana.
 

AnalogKid

Joined Aug 1, 2013
9,262
What happens if a switch is pushed out of sequence? Does the circuit just sit there waiting for a correct input, or does it reset back to the beginning of the sequence.

You will save a lot of back and forth questions if you tell us what the application is and post a block diagram of the operation sequence. There are several very smart people on this forum who don't like to play 20 questions.

ak
 

Thread Starter

petesignals

Joined Aug 28, 2018
3
My bad. It's for a puzzle box for my grand kids. Ten pushbuttons on top. I don't want them to stay on. Button triggers a latching circuit whose output goes to the next latching circuit along with the output of the next button and so until 5 buttons are pressed in the correct order and an led lights.
 

AnalogKid

Joined Aug 1, 2013
9,262
Only one LED?

If so, then this is a sequential lock circuit problem. There are many circuits on the innergoogle for this: relays, neon bulbs, weird 60's silicon bilateral switches, SCRs, transistors, flipflop ICs, and of course a microprocessor.

However, a lock circuit resets whenever an incorrect switch is pressed, and gives no indication of the reset to improve security against random fishing.

So, when the kid gets buttons 1 and 2 correct, but misses 3, what should the system do?

ak
 
Last edited:

Thread Starter

petesignals

Joined Aug 28, 2018
3
nothing happens until the right combination of buttons are pressed. They find clues around the house and when all are found they try to figure out what the correct numbers are to the switches. I'd like to replace the led with a magnetic lock to open a door on the box and a prize to be found.
 

dendad

Joined Feb 20, 2016
3,840
This will be a lot easier to do with an Arduino. Then it is changeable too.
An addressable RGB LED could be used to give colour coded hints and you could add sounds too. Lots of stuff to make it more interesting.
 
Last edited:

AnalogKid

Joined Aug 1, 2013
9,262
3 dual D-type flipflops
5 switches
7 resistors
1 LED
1 2N7000 transistor to drive the LED (and, maybe, solenoid)
4 capacitors

There is no need for switch debouncing. 3 caps decouple power to the chips, 1 is for a power-on reset. Does this sound like something within your skill set to assemble on perf-boad?

ak
 

Picbuster

Joined Dec 2, 2013
1,027
Pic 16f690 , mcp1705 , 5 leds + resistor, one buzzer + resistor, two caps., prog connector and some wire

10 lines of programming.

Picbuster
 

danadak

Joined Mar 10, 2018
4,057
PSOC, state machine wizard, no programming.

Here is example doing a traffic light controller. But principles common
with what you are trying to do.



Regards, Dana.
 

ScottWang

Joined Aug 23, 2012
7,027
If you use uC maybe more easier, if you want to use some flip flop ICs as CD4013 then the circuit as below or you can do some modify.

The RC circuit are used for the guessing delay time, t = R*C*(0.8) = 5.44 sec, you change the RC constant, if you don't want to use that function then you can cancel them, and the reset pin R1~R5 do some change as the U3B added a 10K and a push switch to reset the win state and the Led6 will be turn off, DIP Sw1~Sw5 are used for select different number(The order of Push Sw1~Sw5), and the DIP Sw5 was used for setup the first number(switch) of the puzzle, the Led6 was used for the win time when press all the order of number(switch) is right then Led6 will be light up.

5 momentary button switches in the right order to get an output-03_ScottWang.png
 

crutschow

Joined Mar 14, 2008
27,243
They find clues around the house and when all are found they try to figure out what the correct numbers are to the switches.
So I assume you want to be able to change the order of the correct numbers for the next game(?).
If so Dd's combination lock circuit could be changed by having the switches connected to jumper wires, allowing them to be connected to the 4022 outputs (connected to a header socket for example) in the desired sequence.
 
Last edited:
Top