Is there anyway to turn a momentary on push switch into a SPST?.. so that if you push it once it keeps the circuit on.. then if you push the same button again the circuit turns off. Any help would be appreciated.
Clock a D-flop (QN connected to D) with the debounced signal.
Use Q or QN to operate a logic level MOSFET to do the actual power switching.
Probably can also do it with a multi-pole relay.
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
no it's not homework, it's just curiosity.. i'm basically wanting an LED light to turn on and off by touching the button.. just a small part of a larger system that i'm working on. The test circuit will receive 3VDC
If that's from a battery, then CMOS would be a good choice. Well, you'll need low voltage CMOS, but I think 3V is available. You could use a stock type D f/f chip as mentioned, then add a transistor to drive the LED and anything else. Hmm..what color is the LED? 3V isn't much headroom for even a green LED.
Tim
--
Deep Fryer: a very philosophical monk.
Website: http://webpages.charter.net/dawill/tmoranwms
I would put in an 8-pin PIC or AVR (ATtiny13 would be ideal). The button goes to one of the I/O pins and the other five can be used to control the LED and other stuff as well. Cost's pennies and you'll learn a bit about software along the way.
Some idiot up in avd is "laughing" because he thinks that the fact that Toshiba's new HD DVD player has a PC like motherboard in it, a flash drive, A LAN connection, and runs Linux, makes it a PC.
I guess those Windows CE refrigerators are PCs too then...
That is NOT a SPST action. An ordinary pushswitch IS ALREADY a SPST device.
You are instead requesting an ALTERNATE ACTION pushbutton.
Use two inverters, two resistors, and a capacitor.
See the ALTERNATE PUSHBUTTON cameo in my CMOS Cookbook.
--
Many thanks,
Don Lancaster voice phone: (928)428-4073
Synergetics 3860 West First Street Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml email: don@tinaja.com
Please visit my GURU\'s LAIR web site at http://www.tinaja.com
Call the input of the first CMOS inverter A, its output B Call the input of the second CMOS inverter C, its output D
Connect B to C directly. Connect D to A via a 4.7 k resistor, forming a set-reset latch.
Add a series 470K resistor and 0.1 uFd capacitor to ground at point BC with the capacitor end being grounded. Call the resistor capacitor junction E.
Wire the pushbutton directly between A and E.
This is one of the simplest possible relalizations of a master slave type T flip flow.
It is, of course, self-debouncing.
More in
formatting link
--
Many thanks,
Don Lancaster voice phone: (928)428-4073
Synergetics 3860 West First Street Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml email: don@tinaja.com
Please visit my GURU\'s LAIR web site at http://www.tinaja.com
Even worse are the students who assume everything has *always* had a CPU. What kind of CPU is in a 1950s radio? :)
(And those who use the word "fifties" to denote approximately 1925-75. The "fifties" do not comprise the Nixon or Hoover presidencies, nor WWII, nor the Beatles...)
'53-'61 would be about right for Nixon as Eisenhower's VP, but he was President from 1969-1974. See...
formatting link
...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |
I love to cook with wine. Sometimes I even put it in the food.
A CPU controlled LED flashlight is ridiculously more efficient than a conventional one.
Also MUCH cheaper in the long run.
--
Many thanks,
Don Lancaster voice phone: (928)428-4073
Synergetics 3860 West First Street Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml email: don@tinaja.com
Please visit my GURU\'s LAIR web site at http://www.tinaja.com
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.