Is it possible to connect a blue (or white) LED to direct 120VAC using
just a resistor?
---
No. You'll need, as a minimum, another diode.
---
or world I have to convert the AC to DC?
---
No.
---
Because I
tore apart a old power strip with a suppose-of surge protector and I
only see a red LED in series with just a resistor, and no rectifier or
diodes.
---
Then it's either dual LED's in anti-parallel in the same housing or
a neon lamp.
---
If so, what would the resistor value be? (ohm/watt) Thanks
Assuming you want to put a standard 20mA LED across the mains,
you'll need to place either another LED or a diode in anti-parallel
with it and the resistor in series with the parallel pair of diodes,
like his:
120V MAINS>---+
|
[R]
|
+---+---+
|A |K
[LED] [DIODE]
| |
+---+---+
|
120V MAINS>---+
The value of the resistor will be:
Vmains - Vled 120V - 2V
R = --------------- = ----------- = 5900 ohms
Iled 0.02A
The closest standard 5% values available are 5600 ohms and 6200
ohms, so err on the side of caution and choose the 6200 ohms.
The resistor will allow:
Vmains - Vled 120V - 2V
I = --------------- = ----------- = 0.019 amperes
R 6200R
to flow in the circuit, and it will dissipate:
P = (Vmains - Vled) * I = 118V * 0.019A = 2.24 watts.
That's quite a bit of power, but you can make an array of 6200 ohm
resistors which will be able to handle it like this:
MAINS>--+--[6K2]-+-[6K2]-+-[6K2]--+--[1N4001>]--+
| | |
+--[6K2]-+-[6K2]-+-[6K2]--+ |
| | |
+--[6K2]-+-[6K2]-+-[6K2]--+--[<LED]-----+
|
MAINS>------------------------------------------+
If you use 1/2 watt resistors the array will be capable of
dissipating 4.5 watts, so it'll get warm, but it should be OK.
120V mains can kill, so if you're not familiar with working with
120V mains, get someone who is to help you.