Carl if you check out for live mains and then you encapsulate the led, capacitor= , etc. you won't have any danger. One of those may work for you. http://www.ebay.com/sch/i.html?_trksid=3Dp5197.m570.l1313&_nkw=3Dneon+lamp+= 220+v olt&_sacat=3D0 Rodolfo -----Mensaje original----- De: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu]En nombre de Carl Denk Enviado el: Viernes, 31 de Agosto de 2012 12:39 p.m. Para: Microcontroller discussion list - Public. Asunto: Re: [EE] LEDS on AC Agreed that's one way. Unfortunately, I don't have the space for that, maybe there's a cubic inch. But you bring up an interesting possibility. Since if the power is on there would be considerable amperage flowing, would a toroid transformer made with numerous turns of a light gauge (maybe say 20 ga.) wire, and then the LED and a reversed diode work. The nameplate says 240 volt 4500 watts. But that's wouldn't say the power is on, just that current is flowing. The LED, capacitor, reverse diode, fuse, and resistor seem easier. On 8/31/2012 2:39 PM, YES NOPE9 wrote: > Buy a cheap AC to DC adapter on eBay or similar. > I have seen 110-220V AC to 5V USB adapters for 10 cents on eBay. > They are probably crap..... but you can salvage one locally from something. > Then you have isolation. > > Best > Gus -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .