Doug S
Flashlight Enthusiast
Below is a response to a question I gave in another thread. I am wandering a bit from my core areas of expertise. I am interested in hearing from others about favorite/most simple ways of converting momentary switch closures into maintained toggle action. Also the related topic of contact debouncing, etc. IMHO, these digital switching techniques offer many advantages for mods, especially where compactness and hi-reliability are prime objectives.
<font size="2" face="Verdana, Arial">Good topic! I have been thinking about starting a similar thread and still might do so if this one doesn't get sufficient attention. One approach is to use the momentary switch as an input to a digital logic IC. This may sound like a complicated solution but it has some advantages. It can be made very compact and by using the output of the IC to drive a very low resistance MOSFET it can be made to handle high currents. It allows a consistantly low resistance path for the main current unlike many flashlight grade mechanical switches. For a simple ON-OFF action a type D flip-flop wired as a "T" toggle is the way to go. For more complicated multiple output arrangements [e.g., multiple levels or light combos] a counter IC can be used. The old CMOS digital logic families such as the CD4000 or MM54C/74C draw so little current [<1uA] that they are wired to be energized all the time. They will have no appreciable drain on the battery even after years of standby. One consideration is that momentary switches have contact "bounce" which may be seen by the logic as multiple switch depressions. You can correct for this with "debounce" circuitry which effectively allows the IC to see only one contact closure in a given time period. I don't work with digital logic much and don't have any online tutorials to direct you to. Maybe one of the more digitally oriented gurus [from the era when cars had carbs] can help out. The younger guys are going to suggest a microprocessor solution but if you're like me, it will not be worth the effort to learn to program them.Originally posted by LED HED:
Here's another question for you electronics geniuses: how do I add a tiny on/off switch into an LED circuit? Appearantly, the manufactures can't make a really small click-type switch because the mechanism is too large to fit in the case. There are momentary contact switches that are tiny however. So, the real question is: where do I find a circuit for on/off using a momentary contact switch? Or maybe a circuit which can dim the LED also. Kind of a three position setup: on, dim, off.
thanks