D
Daniel Beer
Hello. I'm trying to build a circuit that slowly turns an LED on and off. I
am attaching this to a +5 V output of a Logic device. I want it to be so
that when the output pin goes to 1 or +5V, the LED starts to fade on until
it is at full brightness. When the pin goes to 0, the LED should slowly fade
off. I am using an RC network to create a gradual voltage change, but i need
this gradual voltage change to gradually change the current in the LED. The
LED I'm using has a forward voltage rating of 2.2 V and is at maximum
brightness when 20 mA of current are running through it.
So when the voltage across the capacitor is 0 (time = 0), the current
through the LED will be 0, and when the voltage across the capacitor
approaches 5 (time = later, determined by values of R,C) the current will
approach 20 mA. I've read that I need a transistor to accompish this, but I
am very vague on how to use them and which type to use. Can anyone point me
at a good explanation of transistor operation and types, or suggest a
transistor (and/or resistors) that i might put between the capacitor and the
LED to achieve this effect? Thanks
Daniel
am attaching this to a +5 V output of a Logic device. I want it to be so
that when the output pin goes to 1 or +5V, the LED starts to fade on until
it is at full brightness. When the pin goes to 0, the LED should slowly fade
off. I am using an RC network to create a gradual voltage change, but i need
this gradual voltage change to gradually change the current in the LED. The
LED I'm using has a forward voltage rating of 2.2 V and is at maximum
brightness when 20 mA of current are running through it.
So when the voltage across the capacitor is 0 (time = 0), the current
through the LED will be 0, and when the voltage across the capacitor
approaches 5 (time = later, determined by values of R,C) the current will
approach 20 mA. I've read that I need a transistor to accompish this, but I
am very vague on how to use them and which type to use. Can anyone point me
at a good explanation of transistor operation and types, or suggest a
transistor (and/or resistors) that i might put between the capacitor and the
LED to achieve this effect? Thanks
Daniel