# Connect LED to 220 V

**URL:** <https://forum.arduino.cc/t/connect-led-to-220-v/1337982>\
**Category:** General Electronics\
**Created:** [January 1, 2025, 9:26pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982 "2025-01-01T21:26:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![fer314](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/fer314/32/712471_2.png) [@fer314](https://forum.arduino.cc/u/fer314)\
**Post date:** [January 1, 2025, 9:26pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/1 "2025-01-01T21:26:43Z")

</div>

Good evening everyone, I would need to install a LED connected to a switch that I have at home to be able to see in the dark if the circuit is closed.

I know that there are already switches prepared but I wanted to try with a classic LED from the Arduino kit, if I leave out any diodes and capacitors and simply put a 20k resistor can it work or will I end up with a fire 😅?

Thanks for the help

---

<div class="post-metadata">

**Author:** ![van\_der\_decken](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/van_der_decken/32/1006976_2.png) [@van\_der\_decken](https://forum.arduino.cc/u/van_der_decken)\
**Post date:** [January 1, 2025, 9:28pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/2 "2025-01-01T21:28:26Z")

</div>

A small but energetic explosion. Shrapnel. A very bad smell. Possibly a fire.

---

<div class="post-metadata">

**Author:** ![LarryD](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/larryd/32/215550_2.png) [@LarryD](https://forum.arduino.cc/u/LarryD)\
**Post date:** [January 1, 2025, 9:36pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/3 "2025-01-01T21:36:04Z")

</div>

- And don’t forget about the flying bits of plastic going into your eye.

---

<div class="post-metadata">

**Author:** ![JohnLincoln](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@JohnLincoln](https://forum.arduino.cc/u/JohnLincoln)\
**Post date:** [January 1, 2025, 9:59pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/4 "2025-01-01T21:59:55Z")

</div>

It's the reverse voltage that will destroy the LED. Connect an inverse parallel diode across the LED and it may survive  
However you need to be aware that the resistor will dissipate nearly 2.5W.

---

<div class="post-metadata">

**Author:** ![dccontrarian](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/dccontrarian/32/1013044_2.png) [@dccontrarian](https://forum.arduino.cc/u/dccontrarian)\
**Post date:** [January 1, 2025, 10:03pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/5 "2025-01-01T22:03:19Z")

</div>

You can buy 220V led indicator lights on Amazon, ten for $9.49 with free shipping. Hardly worth bothering.

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [January 2, 2025, 12:06am UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/6 "2025-01-02T00:06:22Z")

</div>

> [@fer314](#):
>
> Thanks for the help

You should not work with voltage above 12vdc. Do not follow linemen in your area who connect live, 220vac wires, with bare hands, broken sandals, on aluminum ladders.

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [January 2, 2025, 12:29am UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/7 "2025-01-02T00:29:02Z")

</div>

> [@fer314](#):
>
> will I end up with a fire

Without proper experience, attempting this could lead to serious danger. Please proceed with caution, as working with high voltage can be life-threatening.

I recommend using your preferred search engine to look up **"220V AC indicator"** to find safer, ready-made solutions for your needs.

---

<div class="post-metadata">

**Author:** ![herbschwarz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/herbschwarz/32/239314_2.png) [@herbschwarz](https://forum.arduino.cc/u/herbschwarz)\
**Post date:** [January 2, 2025, 1:20am UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/8 "2025-01-02T01:20:19Z")

</div>

I have seen this suggestion before: adding a reverse polarity diode across the LED to eliminate the reverse voltage breakdown problem. I think it is better to add the diode in series (with proper polarity) to eliminate the reverse voltage. It cuts the resistor dissipation in half!

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [January 2, 2025, 1:34pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/9 "2025-01-02T13:34:17Z")

</div>

> [@fer314](#):
>
> if the circuit is closed.

Even if you did it right, the LED would be OFF when the circuit is closed

---

<div class="post-metadata">

**Author:** ![build\_1971](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/build_1971/32/689930_2.png) [@build\_1971](https://forum.arduino.cc/u/build_1971)\
**Post date:** [January 2, 2025, 2:34pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/10 "2025-01-02T14:34:27Z")

</div>

Maybe I should not mention this, but the resistor can be replaced by 100nF capacitor... no dissipation at all...

---

<div class="post-metadata">

**Author:** ![build\_1971](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/build_1971/32/689930_2.png) [@build\_1971](https://forum.arduino.cc/u/build_1971)\
**Post date:** [January 2, 2025, 2:35pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/11 "2025-01-02T14:35:59Z")

</div>

A small neon light could be used...

---

<div class="post-metadata">

**Author:** ![herbschwarz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/herbschwarz/32/239314_2.png) [@herbschwarz](https://forum.arduino.cc/u/herbschwarz)\
**Post date:** [January 2, 2025, 3:34pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/12 "2025-01-02T15:34:10Z")

</div>

Re: replacing the resistor with a capacitor, no power dissipation. If there is no power dissipation that means there is no current limiting either. The reactance of the cap is measured in Ohms like a resistor, but they cause a phase shift rather than resisting the flow of current. That is a bad idea because there will be no real resistance in the circuit.

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [January 2, 2025, 3:45pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/13 "2025-01-02T15:45:03Z")

</div>

> [@herbschwarz](#):
>
> That is a bad idea because there will be no real resistance in the circuit.

That is the whole point of using a cap rather than a resistor.  
Cap drop circuits are commonly used in cheap LED nightlights.

---

<div class="post-metadata">

**Author:** ![herbschwarz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/herbschwarz/32/239314_2.png) [@herbschwarz](https://forum.arduino.cc/u/herbschwarz)\
**Post date:** [January 2, 2025, 4:04pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/14 "2025-01-02T16:04:16Z")

</div>

I see that there is some rebuttal to my assertion. So then Let's calculate the current through the LED: i = e/R where R = 0. So we have too much current!

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [January 2, 2025, 4:30pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/15 "2025-01-02T16:30:12Z")

</div>

You might want to explore the concept of impedance.  
A 220nF cap will have an impedance of about 12K ohms at 60Hz line frequency.

---

<div class="post-metadata">

**Author:** ![cedarlakeinstruments](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/cedarlakeinstruments/32/1128931_2.png) [@cedarlakeinstruments](https://forum.arduino.cc/u/cedarlakeinstruments)\
**Post date:** [January 2, 2025, 4:48pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/16 "2025-01-02T16:48:44Z")

</div>

> [@LarryD](#):
>
> And don’t forget about the flying bits of plastic going into your eye

True story!

At my first job, one day I heard a scream from the basement and then our shipping clerk/test person (It was a very small company!) came running up the stairs.

She had been testing some hardware that we got back from our assembler and when she plugged in the power supply, an LED exploded off the board and barely missed her face.

I went downstairs to investigate and found the remnants of a T 1-3/4 size red LED embedded in the drop ceiling! Our usually very conscientious assembler had soldered it in backwards and the LED did not appreciate having -12V applied.

She was terrified that it might happen again and from that point on did all of them at arm's length.

---

<div class="post-metadata">

**Author:** ![herbschwarz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/herbschwarz/32/239314_2.png) [@herbschwarz](https://forum.arduino.cc/u/herbschwarz)\
**Post date:** [January 2, 2025, 4:50pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/17 "2025-01-02T16:50:10Z")

</div>

And you calculated that by 1/(2pi_f_c). That is the formula for capacitive reactance not impedance. Remember ELI the ICE man. In a capacitive circuit, the current leads the voltage. In the pure capacitor the phase shift is 90 degrees. The reactance does not dissipate power, we all agree on that. If we use a 12K resistor in a circuit it will dissipate power because it limits the flow of current where a cap of Xc=12K will not dissipate power because it does not limit current.

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [January 2, 2025, 4:57pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/18 "2025-01-02T16:57:18Z")

</div>

> [@herbschwarz](#):
>
> That is the formula for capacitive reactance not impedance.

OK so my capacitor has an ESR of 10m ohms. Add that to the reactance and now you still have impedance of about 12K

---

<div class="post-metadata">

**Author:** ![herbschwarz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/herbschwarz/32/239314_2.png) [@herbschwarz](https://forum.arduino.cc/u/herbschwarz)\
**Post date:** [January 2, 2025, 5:21pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/19 "2025-01-02T17:21:56Z")

</div>

Oh. Good point. I forgot about the ESR. Then we can add the resistance of the wires and perhaps the intrinsic resistance if the LED, too. Now we are off the 90 degree phase shift for sure and the impedance formula will have an R term! I have to agree that Z = 12K. Then the power dissipation is distributed among all the resistive elements.

---

<div class="post-metadata">

**Author:** ![fer314](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/fer314/32/712471_2.png) [@fer314](https://forum.arduino.cc/u/fer314)\
**Post date:** [January 2, 2025, 5:22pm UTC](https://forum.arduino.cc/t/connect-led-to-220-v/1337982/20 "2025-01-02T17:22:53Z")

</div>

Thanks to everyone for the help.

Unfortunately I didn't have any capacitors that could hold 220 V at home so I bought the LED light that can be powered by the home network directly.

 ![20250102_182117](https://europe1.discourse-cdn.com/arduino/original/4X/1/b/9/1b9771cd1de863da4c279609a26f6ca544fb776b.jpeg)

[Next page](https://forum.arduino.cc/t/connect-led-to-220-v/1337982.md?page=2)
