Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#101825 - 27/06/2002 13:19 Fading LED light?
Squawkt22
journeyman

Registered: 09/03/2002
Posts: 62
Loc: MA
I was just wondering if it was possible to make a LED light fade on and off? TIA

Top
#101826 - 27/06/2002 13:22 Re: Fading LED light? [Re: Squawkt22]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31575
Loc: Seattle, WA
You mean like the one on the front of the car player?

It's done with pulse width modulation I think.
_________________________
Tony Fabris

Top
#101827 - 27/06/2002 13:27 Re: Fading LED light? [Re: tfabris]
Squawkt22
journeyman

Registered: 09/03/2002
Posts: 62
Loc: MA
Well not fade on and off continously, just fade on when it gets power and fade off when power is taken away.

Top
#101828 - 27/06/2002 13:37 Re: Fading LED light? [Re: Squawkt22]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Do you mean an LED or the empeg's LED. Both answers are probably yes, but the more precise answers are quite different.

Assuming you mean the prior, an LED can appear dimmer by pulsing electricity through it so that it is not lit 100% of the time. That is, the LED will always glow at the same brightness, but, using persistence of vision, our eyes can be tricked into thinking it's dimmer. So you could then increase the percentage of lit vs. unlit time and make it fade on. But this is probably not simple circuitry (not that I'm an EE).
_________________________
Bitt Faulk

Top
#101829 - 27/06/2002 13:40 Re: Fading LED light? [Re: wfaulk]
Squawkt22
journeyman

Registered: 09/03/2002
Posts: 62
Loc: MA
Yah I meant an LED. I installed one in my car so that at night it glows a dim red. I just want it to fade on when i turn my key and to fade off when power is taken away, which is by opening my door.

Top
#101830 - 27/06/2002 13:50 Re: Fading LED light? [Re: Squawkt22]
Dignan
carpal tunnel

Registered: 08/03/2000
Posts: 12318
Loc: Sterling, VA
What is the LED for? Just a random LED in your car?
_________________________
Matt

Top
#101831 - 27/06/2002 13:52 Re: Fading LED light? [Re: Dignan]
Squawkt22
journeyman

Registered: 09/03/2002
Posts: 62
Loc: MA
Kinda, its a red ambience light basically. It looks really cool in my car because all of my ineterior lights are red. Its in the newer Audis, and I wanted it in mine.

Top
#101832 - 28/06/2002 02:42 Re: Fading LED light? [Re: wfaulk]
frog51
pooh-bah

Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
Or alternatively just change the voltage. If this is for an application unconnected with empegs and the LED is to be used as an indicator, we can do simple things with just a capacitor which will smoothly dim the LED when power is removed.

Ages ago I made an earring which worked under this kind of principle - multicolour LED through the ear with circuits connected to the Red and Green leads which varied the voltage over time (2 sine wave generators at slightly different frequencies) to give some cool/odd effects.
_________________________
Rory
MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi
MkII, 240Gb in Mark Lord dock
MkII, 80Gb SSD in dock

Top
#101833 - 28/06/2002 08:28 Re: Fading LED light? [Re: frog51]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Hmmm. It was my understanding that LEDs always glowed with the same intensity, regardless of voltage (obviously, there's a threshold at which the intensity becomes nil, but I think we can assume that, anyway).

Maybe you were dealing with ``special'' LEDs? Or maybe I'm an idiot?
_________________________
Bitt Faulk

Top
#101834 - 28/06/2002 09:10 Re: Fading LED light? [Re: wfaulk]
mtempsch
pooh-bah

Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
LED glow intensity definately vary depending on voltage - but the voltage difference between dim and intense is pretty small (you might want to look up the discussion on the benefits of individual resistors compared to a single resistor to power the 4 LEDs in the buttons for the illuminted button hack). The difference in current, relatively, through the LED is much larger - the UI diagram of a LED is a typical diode "knee" curve where the current stays apprx 0 until the threshold voltage is achieved, then current increases strongly for small increases in voltage.

Intensity is related to current, since it's the individual electrons falling through the band gap that each emit a photon. Different colored LEDs typically have different forward voltages (the threshold voltage where the start to emit light) related to the energy (in eV's) of the emitted photon. The photons energy is proportionate to it wavelength (color).

/Michael
_________________________
/Michael

Top
#101835 - 28/06/2002 18:10 Re: Fading LED light? [Re: wfaulk]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Yeah, fading LEDs are usually PWM (pulse width modulation)....you might want to check you the Fan discussions in the technical forum - the same fan controller chips we're discussing there could easily be used to do LED fading. Replace the thermistor with a pot, and modify the output stage for the LEDs forward voltage...
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#101836 - 01/07/2002 00:49 Re: Fading LED light? [Re: wfaulk]
frog51
pooh-bah

Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
>Maybe you were dealing with ``special'' LEDs? Or maybe I'm an idiot? <

Neither - I just experimented with a battery and pot and found out which range gave me "almost off" to "almost blown up" and biased my sine waves off the centre of that range.

PWM could well give you more precision, but for under £2 my circuit did all I needed.
_________________________
Rory
MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi
MkII, 240Gb in Mark Lord dock
MkII, 80Gb SSD in dock

Top