Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] I need help designing a simple circuit

Status
Not open for further replies.

GeoffL

Newbie level 4
Joined
Aug 14, 2013
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
51
I'm a software engineer by day and I don't have any experience designing circuitry but I have a simple project which I was hoping you guys (or gals) could help me with.


I currently have a momentary switch that triggers the circuit to close and prompt the action to occur I would like to introduce another source which can close that circuit as well. The other source will trigger the action when its power is removed or added.

One caveat is that I need a counter so that if the momentary switch is pressed and then the power is removed from the other source, the action will not fire again. However, if the momentary switch is pressed an even number of times, the other source will fire the action as necessary.

I realize that I need a relay to monitor for the removal of power from the other source and a binary counter in order to keep track of how many times the momentary switch has been pressed.

This is going in a vehicle so the power requirements are low.

Any help with components and wiring that you all can provide would be much appreciated.

Thanks!
 

GeoffL

Newbie level 4
Joined
Aug 14, 2013
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
51
I've created this truth table as well.

Code:
A  B  C  D  |  A  |  (  C  &  ~  D  )  |  (  B  &  D  )
-------------------------------------------------------
 
0  0  0  0  |  0  0     0  0  1  0     0     0  0  0     
0  0  0  1  |  0  0     0  0  0  1     0     0  0  1     
0  0  1  0  |  0  1     1  1  1  0     1     0  0  0     
0  0  1  1  |  0  0     1  0  0  1     0     0  0  1     
0  1  0  0  |  0  0     0  0  1  0     0     1  0  0     
0  1  0  1  |  0  0     0  0  0  1     1     1  1  1     
0  1  1  0  |  0  1     1  1  1  0     1     1  0  0     
0  1  1  1  |  0  0     1  0  0  1     1     1  1  1     
1  0  0  0  |  1  1     0  0  1  0     1     0  0  0     
1  0  0  1  |  1  1     0  0  0  1     1     0  0  1     
1  0  1  0  |  1  1     1  1  1  0     1     0  0  0     
1  0  1  1  |  1  1     1  0  0  1     1     0  0  1     
1  1  0  0  |  1  1     0  0  1  0     1     1  0  0     
1  1  0  1  |  1  1     0  0  0  1     1     1  1  1     
1  1  1  0  |  1  1     1  1  1  0     1     1  0  0     
1  1  1  1  |  1  1     1  0  0  1     1     1  1  1   
 
 
A: momentary button
B: power turned off from other source
C: power turned on from other source
D: binary counter in 0 state
 

E-design

Advanced Member level 5
Joined
Jun 1, 2002
Messages
2,014
Helped
507
Reputation
1,016
Reaction score
407
Trophy points
1,363
Activity points
14,193
Can you draw a block diagram as well as to avoid any confusion to the required operation?

triggers the circuit to close and prompt the action to occur
please explain
 

GeoffL

Newbie level 4
Joined
Aug 14, 2013
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
51
Currently a momentary switch makes the desired output occur. I'm wanting that same action to occur when the vehicle is powered off or on (if the momentary switch wasn't used while the vehicle was on or off).
 

E-design

Advanced Member level 5
Joined
Jun 1, 2002
Messages
2,014
Helped
507
Reputation
1,016
Reaction score
407
Trophy points
1,363
Activity points
14,193
So if you activate the switch, the output will stay on only as long as the switch is pressed, or should it be latching?
 

GeoffL

Newbie level 4
Joined
Aug 14, 2013
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
51
I haven't tested to see how long the output stays on but the momentary switch will cause the action to continue until it's limit switch has been reached. I do believe this is what you mean by latching.

I'm learning so thanks for bearing with me.
 

E-design

Advanced Member level 5
Joined
Jun 1, 2002
Messages
2,014
Helped
507
Reputation
1,016
Reaction score
407
Trophy points
1,363
Activity points
14,193
Is this what you had in mind?
 

Attachments

  • switch_logic.gif
    switch_logic.gif
    10.8 KB · Views: 24

GeoffL

Newbie level 4
Joined
Aug 14, 2013
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
51
Yeah, that looks about right.
 

E-design

Advanced Member level 5
Joined
Jun 1, 2002
Messages
2,014
Helped
507
Reputation
1,016
Reaction score
407
Trophy points
1,363
Activity points
14,193
Should the OUT signal switch a relay?
 

gaffarnazari@yahoo.com

Member level 1
Joined
Dec 26, 2012
Messages
34
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,538
Do you want generate out signal with three conditions and do you want design with cmos(mosfet)?is this question related to vlsi?
 

GeoffL

Newbie level 4
Joined
Aug 14, 2013
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
51
Should the OUT signal switch a relay?

The out signal will provide the same signal as the momentary switch.

Do you want generate out signal with three conditions and do you want design with cmos(mosfet)?is this question related to vlsi?

Yes, there are three conditions which can trigger the output signal. I'm not sure what vlsi means.
 

E-design

Advanced Member level 5
Joined
Jun 1, 2002
Messages
2,014
Helped
507
Reputation
1,016
Reaction score
407
Trophy points
1,363
Activity points
14,193
Here is the circuit I used to get the results. U1 is a 4013 chip. It will work on 12V as well.
 

Attachments

  • switch_logic1.gif
    switch_logic1.gif
    10.2 KB · Views: 22
Last edited:

GeoffL

Newbie level 4
Joined
Aug 14, 2013
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
51
Thanks! Looks good! I'm going to try to build it this weekend!
 

gaffarnazari@yahoo.com

Member level 1
Joined
Dec 26, 2012
Messages
34
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,538
YOUR circuit function to generate out signal is (A'B'C'+ACB)+C
A=BIN
CNTL=B
SW=C
IF YOU want implementation with logic cell it is very easy. please tell me please which you want implemetation with logic cell or mosfet transistor?!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top