Radio Buttons using 7404 IC

bertus

Joined Apr 5, 2008
22,212
Hello,

I think that the circuit will not work with the 7404 TTL chip.
You could try the circuit with a 4049 CMOS chip.

Bertus
 

Alec_t

Joined Sep 17, 2013
13,766
I think you could get it to work with the 74LS04 by adding a resistor to each gate pair, like this :-
RadioSwitchMod.PNG
You may have to tweak the resistor value.
 

Thread Starter

Schiwi

Joined Jul 17, 2018
6
I think you could get it to work with the 74LS04 by adding a resistor to each gate pair, like this :-
View attachment 156338
You may have to tweak the resistor value.
I have tried doing this but only the second switch lathes on and doesn't switches off by itself but rather switches off when other switch is pushed and the two switches is always stayed HIGH on output.
 

Thread Starter

Schiwi

Joined Jul 17, 2018
6
I think it's working now by somehow changing R1 into 1K ohm but would it be possible to add a reset button in order to set all the output to zero? Thanks!
 

crutschow

Joined Mar 14, 2008
32,839
I think it's working now by somehow changing R1 into 1K ohm
That's good.
But for best reliability I would also add a 1kΩ resistor between the output of the second inverter and the input of the first inverter.
That way the output isn't fighting the input when the left diode tries to change the state of the latch.
would it be possible to add a reset button in order to set all the output to zero?
Yes.
Add a PB switch between V+ and R2 (in first schematic).

Edit: For your interest, here's an 8-button radio circuit that uses just two ICs and the push-buttons, no other parts.
 
Last edited:

crutschow

Joined Mar 14, 2008
32,839
Just for reference, here's the LTspice simulation of the modified Radio Button circuit with reset using CD4049 hex inverters (thus one CD4049 package per 3 buttons).
The high input impedance of the CMOS inverters allows the resistors to be of higher value than used for the 74LS04 circuit.

The circuit draws only IC leakage current from the supply when quiescent so could be readily backed up with a battery and a couple diodes if the button state needs to be preserved during power down.

The circuit can be expanded to as many buttons as desired, of course.

upload_2018-7-18_8-18-32.png
 

Attachments

Last edited:

MrChips

Joined Oct 2, 2009
29,184
Still looks like a lot of trouble when you can do it with one low-power MCU and no additional components besides the push-buttons.
 

crutschow

Joined Mar 14, 2008
32,839
Still looks like a lot of trouble when you can do it with one low-power MCU and no additional components besides the push-buttons.
Only for those who have the programming tools and know how to program, which is not trivial.
The circuit I referenced in post #12 requires only two standard ICs, no programming, and no additional components.
 

danadak

Joined Mar 10, 2018
4,057
This could be done inside PSOC, the switches could be capacitive
touch (just pads on a PCB), and the switches would be debounced.

Additionally I think it can be done with no code. Zero external components
except for chip rail bypass cap.



But then it would be a shame to throw away the other 95% capabilities inside the PSOC.


Regards, Dana.
 
Last edited:

AnalogKid

Joined Aug 1, 2013
10,547
Here is a similar circuit I did for another thread. I've used variations of this for many years. This one has a transistor added to each output for LED or relay drive.

There is no debouncing on the switch make (when it is pushed) because the last bounce edge will latch the closed switch input. There is debouncing on the break (when the switch is released) so the last bounce edge doesn't latch an open-switch condition. The resistor network saves some assembly effort.

ak
SelectorSwitchLatch-4-c.gif
 

danadak

Joined Mar 10, 2018
4,057
One approach using mechanical buttons attached to pins,
one side, the other to ground. Using internal pullups on
input pins. Everything is onchip. Except buttons.

upload_2018-7-18_20-21-1.png

Or use Capsense to eliminate the buttons as well.


Regards, Dana.
 
Last edited:
Top