Step the AC down using a small (as in low power rating) transformer, this will 1) isolate your circuit from the AC supply and 2) greatly reduce the voltage(s) you are dealing with.Looking for a way to have a general purpose red led to run on 120vac, and another to drive 24vac for a blue led
The diode could be a 1N4148 since the reverse voltage is just the LED forward drop.a series 390nf cap rated 200 volts or more and a 1N4007 diode wired in reverse polarity across the LED should suffice.
Agree.The diode could be a 1N4148 since the reverse voltage is just the LED
I had problems with my furnace. It runs on 120Vac and 24Vac. I added many lights just like those. From the front panel I can see if the 120 and 24 are OK. If the gas is on, of the fan is on, if the pump is on. I can see if the igniter is on. I no longer need to get the meter out and measure all the test points.
Or simply connect another LED across the first, but reversed.The diode could be a 1N4148 since the reverse voltage is just the LED forward drop.
Alternately you could use four 1N4148s in a bridge circuit, or other small bridge module, to allow the LED to conduct on both half-cycles, reducing the chance of noticeable flicker.


Yes, true. The user should decide what current they want to run it at and calculate for the correct resistance.When a LED is rated for 20mA you don't have to run it at 20mA or anywhere near 20mA.
Post 11 picture 3 there should be 1/2 as much power loss in the resistor.
At 490mW that's very close to the max for a 1/2 watt resistor. No head room. Since they don't make 3/4W resistors, at least not that I've ever heard of, going with a 1W seems prudent.Assuming 3.0Vf for the blue LED:
(24VAC-3Vf-0.6Vf)÷1000Ω=20.4mA
24V x 20.4mA = 490mW (very close to max for 1/2W resistor. Go with 1W)
Yet another reason why I never became an engineer. Yes, you're right. I hadn't thought of that. I may know what AC is but I don't always account for its behavior. Thank you for pointing that out.I was trying to point out that current only flows 50% of the time in this example.