S
[email protected]
- Jan 1, 1970
- 0
Trying to do a "simple" fade in and fade out of LED as I switch it on
and off.
So far I have the LED working with a 9V supply, a 1000uF Cap, LED and
small resistor(adjusts fade time) across cap and a resistor before the
lot on the + to time the illumination. I am using variable resistors at
the moment to fine tune the timing. Simple enough(?)
I have since discovered that if the power is not switched off cleanly
the cap discharges and the LED just goes off. Clever me thought
"simple, I'll debounce it" but now the circuit gets more complex as I
need the full 9 volts for the LED circuit so I can't use the IC(used to
debounce) output to power the LED.
So here are my questions.
Can the 74ls00 run directly off the 9v supply?
I obviously need a transistor setup on the output to switch on the 9v
to LED circuit but what sort? Should the be a resistor pulling the base
high or low when not getting a + output?
and lastly
How do I wire up the debouncer with an on/off switch? I tried a simple
setup with 2 NAND gates with outputs looped back to each other but no
end of probing with inputs helped me turn it on and off. A simple
circuit diagram would be great, everything I seem to find is a
tutorial.
Any help appreciated
Regards
Macros
and off.
So far I have the LED working with a 9V supply, a 1000uF Cap, LED and
small resistor(adjusts fade time) across cap and a resistor before the
lot on the + to time the illumination. I am using variable resistors at
the moment to fine tune the timing. Simple enough(?)
I have since discovered that if the power is not switched off cleanly
the cap discharges and the LED just goes off. Clever me thought
"simple, I'll debounce it" but now the circuit gets more complex as I
need the full 9 volts for the LED circuit so I can't use the IC(used to
debounce) output to power the LED.
So here are my questions.
Can the 74ls00 run directly off the 9v supply?
I obviously need a transistor setup on the output to switch on the 9v
to LED circuit but what sort? Should the be a resistor pulling the base
high or low when not getting a + output?
and lastly
How do I wire up the debouncer with an on/off switch? I tried a simple
setup with 2 NAND gates with outputs looped back to each other but no
end of probing with inputs helped me turn it on and off. A simple
circuit diagram would be great, everything I seem to find is a
tutorial.
Any help appreciated
Regards
Macros