Occasionally I build models that are illuminated, LEDs in the cockpit or whatever. The other day, as I was showing my latest rocketship off, switching the lights on and off for my friends to admire, it occurred to me that what I really wanted was a circuit controlled by a momentary switch. Tap the switch, the lights go on for 15 seconds or so, then go off on their own.
Where can I find a circuit (or a circuit diagram) to do that? What is a circuit like that called?
The lights are 5 LEDs, 20 mA each. I’m familiar with a soldering iron, and can attach wires to an IC, and that’s about the limit of my capability. I’d prefer something solid-state, for reliability.
What you want is a “time delay de-energize” although it can be called other things. The classic way of making one of these is to use a 555 timer. If you search for 555 timer circuits you’ll probably find quite a few.
You can also make this circuit with a N-FET, a capacitor and a resistor.
Something like this: http://cl.ly/0E3b0c0S2e2H1O3i1W1L
You will need to play with the values of C1 and R1 to get the timing the way you want it.
The FET is pretty non-critical, but a “logic” FET will give longer possible on-times.
The 555 was the first thing that popped into my mind. But another thread sometime back pointed out that there are inexpensive micro-controllers available which would simplify this for a whole control panel.
I concur with the 555 timer or the RC circuit but if you want to get really fancy and control a bunch of LEDs in all sorts of ways, then you can’t beat the Arduino route. You could do all kinds of cool things such as controlling an RGB LED such that they change color!