LED Question
NWCCTV
Posts: 3,629
Is there any way, other than using different resistors to make an LED dim and then bright, such as with taillights/brake lights?
Comments
Rich H
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Simple Servo Tester, a kit from Gadget Gangster.
The ">|" is the LED with the anode connected to +5V. You use either a LOW 0 or a LOW 1 to turn on the LED on dim. You use a LOW 0 and a LOW 1 to turn on the LED on bright. The opposite of on is INPUT 0 and/or INPUT 1 which is the default. Don't use HIGH with the I/O pin. It won't hurt anything, but won't work.
If you want the LEDs on dimly all the time while power is on, you can save an I/O pin by connecting one 680 Ohm resistor to ground (Vss) instead of an I/O pin. The other I/O pin will make the LED brighter when LOW.
Post Edited (Mike Green) : 3/6/2010 6:42:47 PM GMT
You can get by with only two I/O pins by using switching transistors or (as I described before) by keeping the LEDs on dimly all the time and using the I/O pins to make them bright. If you use switching transistors and keep the LEDs on dimly, you can get by with only one I/O pin.
Use STOP at the end of the program to keep it active, or a simple DO:LOOP
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com