**Important**: Attempt only if proficient in working with AC Mains

A simple yet effective circuit for a single LED on AC Mains....

A simple yet effective circuit for a single LED on AC Mains....

**Parts**:

1. An LED - 5mm or 10 mm of any colour

2. A diode, preferably 1N 4007

3. A resistor of __2 watts or higher rating__, of value anywhere from 22 kilo ohms upto 100 kilo ohms.

4. A two pin male plug (hollow)

Lower resistor values will give more brightness and higher values will prolong LED life. So choose the tradeoff, depending on requirement.

Lower wattage of resistor like 1/2 watt or lower** will not do and may burn **since they are meant for 6v DC circuits, not for 220v AC Mains.**Assembly:**

1. Connect black anode of diode to negative of the led.

2. connect the resistor to the positive of the LED.

3. Connect the free ends of the diode and resistor to the male pins.

Done. See the attached pic for clarity.

Another circuit with the diode connected "across" the LED is also attached. A bulb base adaptor is used instead of a male pin.

It should work on 110v AC as well as 220v AC Mains systems.**DC Feature:**

It will also work on any battery!!

Once again, read "**Important**" first line, in case you missed it....

<p>That's the smallest 2w resistor I've ever seen! Looks more like 1/2w</p>

<p>Thats a 1 watt (green) resistor of 22 kilo ohm. Since it gets hot, 2watts or higher rating is recommended, which is, as you rightly mentioned, slightly fatter.</p>

I needed a simple way to connect LED indicators to an AC project. This was the simplest way I found on the net. Works like a charm! Thanks

<p> Yes, i too was surprised to find that its the first hit in 16 million search results on Google for "LED on Mains" or "LED on AC Mains". </p><p>God Bless!</p>

<p>how this circuit will perform if space is no bar. Details of diagram is given below: </p><p>1)R1= 220 Ω</p><p>2)R2= 1MΩ</p><p>3)C1= 470nF,400V, Polyester capacitor</p><p>4)C2= 10uF, 16V-50V, Electrolytic capacitor</p><p>5)D1= LED (any colour)</p><p>6)BR1= Bridge rectifier made using the diode <strong>IN4007</strong></p><p>Comparing between this & your circuit, which will give better performance?</p>

<p>How would you configure this circuit for 120v ? I would also like to add a photo resister into this circuit to light up LED in the dark. Any suggestions?</p>

<p>stonesouls, This is the Automatic LED Night Light circuit for you.</p><p>The 5k resistor provides negative feed-back to 2N3906 giving a snap-on effect for the LED. Without it, the LED will glow under slightly dark light. See the effect by connecting and disconnecting this resistor.</p><p>You can increase the value of C1 to provide as much current as is needed by the LED connected. For example, using 2.2uF will give 100mA current which will light up a 1W LED brightly.</p><p>Remember during daytime, the zener diode will take up all the available current, you have to adjust the rating using W=VI based on what you connected. For instance, with 100mA current, use 1W 6.2V zener for 2 LED, use 0.5W 3.3V zener for 1 LED. Otherwise, 1/4W rating is good.</p>

<p>Hi John L8 the capacitor near zener polorized? Thanks</p>

<p>stonesouls, you can used the circuit on 120V without any change, and the circuit will supply 20mA current.</p><p>Remember the circuit will also supply 20mA current once plugged into mains. Adding a photo resistor together with a switching transistor or SCR can automatically turn on the LED at night, but may consume more power in daytime than when it is at night. Of course, it also involves a totally different design of the circuit.</p>

<p>I think putting C2 there is risky. Without it the circuit will work fine (LED will flicker at 100Hz on a 50Hz mains and 120Hz on a 60Hz mains with a very short time off in each cycle). If the LED fails, C2 will explode catastrophically.</p>

<p>If space is not a constraint, better circuits are always available. See "Dipankar" circuits on I'bles. </p><p>I have made two - one is without diode bridge (LED Bulb - Part 1) and other is with diode bridge (LED Bulb - Part 2). </p><p>In India, we have 220 V AC Mains and have therefore used 220 nF, 400 V rating cap. </p><p>No polyester cap was used in AC mains for smoothing....for obvious reasons!</p><p>reg</p><p>k</p>

<p>Sir good day where can i place my capacitor? i'm planning to add it this circuit</p>

<p>Depends on what type of capacitor! if its ceramic, rated for 230 vAC, it should be towards the AC Mains. If its a polarized, 3 volt DC cap, it should be across the led, with correct polarity....</p><p>there is no need for one, though, in my circuit... and there is no space too, as you can see, in my pics...</p>

<p>Can you help me to modify this scheme to supply 50-70pcs smd LEDs 5730? They are 0.5W 150mA 3.2-3.4V.</p>

<p>Let's say: 50Led*3.2V=160V voltage drop into all Leds</p><p>Current need to through series circuit is 150mA. So Resistor will be: (230-160)/0.15=466.67Ohm</p><p>Power into Resistor is: P=I^2*R=0.15^2*466.67=10.5W</p><p>Please choose 470Ohm 10W</p>

<p>50 LEDs should not be connected in series. if one of them fails, all will get turned off. see my other i'bles for multiple led lights. ( This instructable is for a single led only). A 10 watt resistor and series setup seem impractical....</p><p>reg</p><p>ketan</p>

<p>Single capacitor is enough only for about 28 LEDs...</p><p>So have three series of 20, in parallel - with a capacitor for each 20. </p><p>also add a 1 kilo ohm, (minimum) one watt rated resistor, in the other ( blank "~" part of the diode bridge in your diagram). </p><p>see projects of "Dipankar" for more details...</p><p>reg</p><p>k</p>

<p>I have just calculation related to this matter, please visit my blog</p><p>http://engineer2you.blogspot.com/2016/01/connect-led-lights-to-230vac.html</p>

<p>I made it! The only problem is, 1 watt resistor will heat up pretty quick at low resistance range like 47k and I burned 3 LEDs and a few 1 watt resistors within 15 minutes. So after a few trial and errors, I used three 2 watt resistors each of 12k ohms in series to manage the heat. (6 watts in theory. I'm thinking about putting one more 12k in series.) And the nice thing is, I've a few of those LED housing lying around and the resistors were salvaged from an old tv board. :) The reflector gives it an extra brightness.</p>

Congrats for making one!<br><br>Firstly, this circuit was meant for a single led only. Since you added more leds, you should have used other circuits available in the market. I have also made some, you could refer those other instructables....<br><br>Secondly, 2 watts or higher rated resistors wont fail. i have suggested using 2watt, 22 kilo ohm resistor, for a single led circuit and they seem to work fine....<br><br>reg<br>ketan

Thanks for the Instructable, I can see the "flicker" on 60 Hz Mains. Here's the way I've done something similar which may be a safer circuit for AC Mains use. Still, protecting all wires from being touched is STILL a safety MUST! <br> <br>Ultra-bright LEDs need driving voltages of either 3 or 6 volts depending on what you have around or buy. Using a 3V LED, a resistor and a 5 Volt DC source and 20mA of current a similar circuit will be using only 100mW (0.10 W) - P=I*V. The method described in this intructable which uses a resistor pushes that up to almost 500mW (0.50 W) - thanks KrisBlueNZ. In this case the resistor reduces the current through the LED and produces heat to do so. What happens if we use an AC 250 Volt rated capacitor instead? Will this reduce the current without having to dissipate power as heat & thus bring the power used back down to 100mW? (You ask, why bother? First, the resistor wastes the power by producing heat as some have noted, second, if we get back to 100mW we're now using only one fifth the power, in other words using the resistor uses five times more power than needed! Third, getting rid of the heat reduces the fire hazard.) <br> <br>While we NEED to use a resistor when using DC voltage, a resistor is NOT needed to limit the current when using AC voltage. Perhaps KrisBlueNZ can help us here. I've built this circuit for AC mains use, but I have not done the calculations and since the capacitor does NOT get hot, and the LED is nice and bright depending on the Capacitor's value, I assume all power used is that used by the LED and so we're down to 100mW or so. I was looking for the short piece I wrote for Nuts & Volts years ago so I could tell you the capacitor's value, it was rather small but still for a cap handling 250 Volts it might be as physically large as the resistor being used. I managed to fit the circuit into a 120 Volt AC un-polarized replacement plug and called it my "traveler's night light." <br> <br>The circuit I ended up with was an LED, Cap, and a 1N4003 (240 PRV) or so diode on 120 AC Mains. The diode goes between the LED leads and is reverse connected, anode-to-cathode - cathode-to-anode and the cap is attached to the LED anode, if I remember correctly. In this case the diode helped protect the LED. It might also increase the total power used, I'm not sure about that. Even if we don't save power we're not dissipating power as heat in a resistor which has to make this a safer circuit to use. I believe I've now been using this in four of my AC light switches, that control outside lights which cannot be seen from inside the house. We're able to know when an outside light is left on without having to go outside and look now. These have been in use for about 10 years and before I included the reversed diode the light switch controlling the garage light died twice in two years, none have died since. <br> <br>KrisBlueNZ - Can you do the calculations and tell us if this really will use less power and the value of the cap needed? (0.20 mfd? less? more?) <br>

<p>Hi PhilKE3FL,</p><p>Since there are no answers to the calculation question you asked, here it is.</p><p>Assuming 120V AC, 60 Hz, 0.47uF capacitor, and ignoring the voltage drops in both the diode and LED as they are insignificant comparing to the AC mains, the impedance of the capacitor, Zc = 1 / (2 * pi * f * C) = 5.644 kohm.</p><p>Next, calculate the average current that the circuit can supply. Here, Irms is not used because both the diode and the LED are non-linear components and P = VI will be used for power dissipation. Linear components like resistors will use Irms to calculate power when using P = I^2 * R.</p><p>So average current, I(avg) = ACV(avg) / Zc = [(2 * ACV(peak)] / pi / Zc = 19.14mA</p><p>In the first half-cycle of AC, assuming the LED will conduct and produce a potential difference of 2.2V; P(led) = VI / 2 = (2.2)(19.14) / 2 mW = 21.06mW.</p><p>During the other half-cycle, the diode is forward-biased with 0.7V voltage drop; therefore P(diode) = (0.7)(19.14) / 2 mW = 6.70mW.</p><p>Total power dissipation of your circuit; P(total) = P(diode) + P(led) = 27.76mW, which is significantly lower than the circuit with the current-limiting resistor connected. This difference is the result of efficiency between capacitive and resistive components.</p>

<p>All great information. JohnL8, based on the information that you have provided can I use a Metallized Polyester Film CBB Capacitor rated at 225k 250V 2.2uf for a 10mm LED rated at 3.6v @ 100ma on a 120v main? I will also use a 1N5408 Diode rated 3.0 amp. The diode is probably overkill, but rather be safe than sorry. </p>

<p>stonesouls, Sorry for the delay, I just notice your question now.</p><p>You can do in the way you said. The LED will run at 100mA in one-half cycle, and won't operate as brightly as under full-wave 100mA. Any diode rated 200V or higher is good as current has been limited to 100mA.</p><p>Be careful as you are dealing with mains voltage.</p>

<p>JohnL8,<br><br>Thanks for the calculations! I've used 0.10, 0.22, 0.33 and 0.47uf and the larger the capacitor's value the brighter the LED.<br>0.47uf ~ 21mW + 7mW for ~ 28mW (19.14mA for 0.47uf)<br>0.33uf ~ 13mW + 7mW for ~ 20mW (13.44mA for 0.33uf)<br>0.22uf ~ 9mW + 7mW for ~ 16mW ( 8.96mA for 0.22uf)<br>0.10uf ~ 4mW + 7mW for ~ 11mW ( 4.07mA for 0.10uf)<br>much less than using that big resistor and much safer too.</p>

Yes, a 0.22 uF ceramic capacitor for 220 V AC Mains or a 0.47 uF capacitor for 110 VAC Mains will do in place of the resistor, if heat is a concern, keeping the diode. <br> <br>Alternately, the diode can be removed and a capacitor can be attached to one lead of the LED and a 1 kilo ohm resistor, rated for atleast one watt can go with the other lead. (Any lead, since the other end of the cap and resistor are directly on AC Mains). <br> <br>In the above pic, i have used a Male socket pin. There is no place inside for a capacitor. So i have used the circuit, as above - fully aware that heat is produced by the resistor. But since the resistor is rated for one watt, it does not give way and safety is addressed. <br> <br>There are many "robust" circuits on the internet, however they all require space and will not fit into something this small. This is the first safe circuit (i couldn't find any other, atleast!). <br> <br>reg <br>ketan

Right, I ended up using a 47 uF cap, they were easy to get & everything fit inside an non-polarized 120 V AC replacement plug I found at ACE Hardware. I looked up my original circuit, Sept 24, 2006, this was for 120 Volt AC mains: <br> <br>Anything from 104 (0.1 uf) to 103 (1 uf) works but I found using 474 (0.47 uf) put 2.2 Volts across the 3V ultra-bright LED. I then used a 1N914 (signal diode?) across the LED and also a 470 Ohm 1/4-watt resistor in series with the LED. The resistor and diode were put in to protect the LED and since doing this none of the LEDs have died as of Sept 24th 2006 so that's 7+ years so far. This circuit was published in the Sept 2009 issue of Nuts & Volts magazine.

Great!<br> Lets illuminate the world!<br> --------------------------------------------------------<br> "May the good belong to all the people in the world.<br> May the rulers go by the path of justice.<br> May the best of men and their source always prove to be a blessing.<br> May all the world rejoice in happiness.<br> May rain come in time and plentifulness be on Earth.<br> May this world be free from suffering and the noble ones be free from fears"<br> ---- Vedic blessing

<p>hello sir, how to connect only 1watt or 5watt led on 220 volt ac. plz help me</p>

<p>You can try a mobile charger. Dont forget a heat sink, since its high wattage LED. </p><p>reg</p>

hi sir i need your help for this project.. any one who try this in series? thank you....

<p>For more LEDs in series, just remove the 1N4007 diode. </p><p>Just keep a 3 watt rated 22k resistor on any side. </p>

good day sir. :) do you have a example of diagram? thank you very much...

<p>Diagram for LEDs in series!? Haha!</p><p> I strongly suggest you work with 3 volt DC battery first, not 220 Volt AC Mains!</p><p>Hope it will be taken in the right spirit! ;-)</p>

good day sir. :) do you have a example of diagram? thank you very much...

good day sir. :) do you have a example of diagram? thank you very much...

good day sir. :) do you have a example of diagram? thank you very much...

<p>I made it this project very nice.</p>

Here is an electronics engineer's analysis of this instructable. <br> <br>1. GENERAL <br> <br>This design uses a half-wave rectifier to eliminate the negative half-cycles of the mains voltage, and a series resistor to limit the current. The brightness of the LED, and the power dissipated in the resistor, can both be calculated if you know the mains voltage and the value of the resistor. The formulas, written the way you would enter them on a calculator, are: <br> <br>2. CURRENT AND POWER FORMULAS <br> <br>I = V / R / 2.22 <br>P = V * V / R / 4000 <br> <br>where: <br>I = average LED current, in milliamps; <br>V = mains voltage, in volts RMS (in most countries, either about 115 or about 230); <br>R = resistance of the resistor, in kilohms. <br> <br>3. RESISTANCE FORMULAS <br> <br>These formulas can be rearranged so you can calculate the right resistance for a given current or power dissipation: <br> <br>R = V / I / 2.22 <br>R = V * V / P / 4000 <br> <br>4. EXAMPLE CALCULATIONS <br> <br>Using mains voltage = 115V and R = 6.8 kilohms: <br>I = 115 / 6.8 / 2.22 = 7.6 milliamps; <br>P = 115 * 115 / 6.8 / 4000 = 0.49 watts. <br> <br>Using mains voltage = 230V and R = 27 kilohms: <br>I = 230 / 27 / 2.22 = 3.8 milliamps; <br>P = 230 * 230 / 27 / 4000 = 0.49 watts. <br> <br>5. COMMENTS <br> <br>(a) LEDs are typically operated at 10~20 mA (milliamps) so in both of these examples, you will not get particularly high brightness out of them. If possible, use LEDs with high efficiency, i.e. high light output for relatively low operating current. <br> <br>(b) The resistor should be rated for at least twice the expected power dissipation. In these examples, use a resistor rated for at least one watt. <br> <br>(c) You may have noticed that the power dissipation in the resistor is the same in both examples, but the 230V example has only half as much LED current as the 115V example. This is correct. It's a consequence of one of the laws of physics, and ye cannae change those (Cap'n)! <br> <br>(d) Heating in the resistor is proportional to the power dissipated multiplied by the "thermal resistance" to the surrounding air. The thermal resistance, and therefore the temperature, can be reduced by (a) using a larger resistor with more surface area; (b) thermally coupling the resistor to something with more mass - for example, using a rectangular resistor and squeezing it between the two sides of the plug; (c) there may be other tricks I haven't thought of. <br> <br>(e) The polarity of the diode and the LED must match. Connect the anode of the diode (that's the end opposite the stripe) to the cathode of the LED (that's the shorter lead). <br> <br>(f) The version of this circuit with the diode connected across the LED, instead of in series with it, will work but the resistor will dissipate twice as much power as in the main circuit (the one with everything connected in series). The calculations are for the main circuit. <br> <br>(g) There are various ways to improve the performance of this circuit but none of them are as compact as this design. <br> <br>(h) Yes, the LED will flicker 60 or 50 times per second (depending on your mains frequency). This is not normally noticeable, but you will notice it if you turn your head quickly from side to side while watching it. You will also see this effect with a clock that has an LED display. When you look straight at it, you probably won't notice the flickering. <br> <br>(j) Many blue and white LEDs are ESD-sensitive; that means they can be damaged by electrostatic charge from your body during handling. Try to get the manufacturer's data sheet for the device you're using, to see whether it's ESD-sensitive. If so, keep the leads shorted together with a paper clip or conductive foam until the circuit is fully assembled. <br> <br>(k) If the LED is ESD-sensitive, it can actually be damaged by ESD after the circuit has been assembled and mounted in a mains plug. To protect the LED, connect a low-value capacitor across it before you remove the shorting clip or foam. For example, a 0.1 uF (microfarad), 25~50V ceramic capacitor. To save space you can use an SMT (surface-mount technology) MLCC (multi-layer ceramic capacitor) such as these ones from Digikey: <br>http://www.digikey.com/product-detail/en/C1206C104K5RACTU/399-1249-1-ND/411524 ("1206" size code) <br>http://www.digikey.com/product-detail/en/C2012X7R1H104K085AA/445-7534-1-ND/2733606 ("0805" size code - smaller). <br> <br>(m) Connecting this circuit to your mains supply may be illegal, depending on your country's regulations. <br> <br>(n) Every point in this circuit must be considered live and dangerous. You must do everything possible to prevent any person from coming into contact with any point in the circuit. Some examples I suggest: (a) replace the screw that holds the socket together with a nylon screw and nut; (b) recess the base of the LED into the plug and/or surround it with glue to prevent any possible access to the LED wires in the area between the LED base and the plug.

<p>Ignoring the voltage drops of the diode and LED, both are insignificant compared to the 230V AC mains, the RMS of the half-wave rectified pulsating DC voltage is ACVpeak / 2 = 162.64V.</p><p>When the resistor chosen is of 27k ohm, I = V / R = 162.64 / 27k = 6.02mA. Power dissipation of the 27k resistor, W = I^2 (R) = (0.00602) (0.00602) (27k) = 0.9796W. </p><p>I am afraid you may use the wrong formula to calculate the RMS voltage of the half-wave rectified supply. Full-wave DC(avg) is directly proportional to half-wave DC(avg), as the latter is half of a sine wave and is exactly half of the full-wave DC. When calculating RMS, each value has to be squared first, rendering the two not directly proportional any more.</p>

<p>.<em>.. the RMS <br>of the half-wave rectified pulsating DC voltage is ACVpeak / 2 = <br>162.64V.</em></p><p>No. That would be true for a square wave, but it is not true for a sine wave. This should be clear from the following diagram, which shows an AC square wave and a half-wave-rectified square wave.</p><p><a href="http://www.instructables.com/files/deriv/F3Z/6SDK/HYQDU1DK/F3Z6SDKHYQDU1DK.LARGE.jpg" rel="nofollow"> <br> <br> squarewaves.png <br> </a></p><p>The square wave is unique in that it completely "fills up" the half-cycle-width area. The mean and RMS voltages are therefore half of the peak voltage.</p><p>A half-wave-rectified sine wave does not fill up the whole area, i.e. the area under the curve for each half-cycle is less than 100% of the area available, so the mean and RMS values are obviously significantly less than half of the peak value. Neither the mean voltage, nor the RMS voltage, of a half-wave-rectified sinewave is half the peak voltage. The numbers can be calculated using the formulas given in my earlier post.</p><p><em>When the resistor chosen is of 27k ohm, I = V / R = <br>162.64 / 27k = 6.02mA. Power dissipation of the 27k resistor, W = I^2 <br>(R) = (0.00602) (0.00602) (27k) = 0.9796W. </em></p><p>This formula is wrong because of your earlier incorrect assumption.</p><p><em>Full-wave DC(avg) is directly proportional to <br>half-wave DC(avg), as the latter is half of a sine wave and is exactly <br>half of the full-wave DC.</em></p><p>That is true, but not relevant to this case. We are not comparing half-wave- and full-wave-rectified voltages; we are calculating the mean and the RMS voltages of a half-wave-rectified sinewave.</p><p>I did mention in point (g) that there are ways to improve the design. Using full-wave rectification is one of these.</p>

<p>When using Ohm's Law, V = IR, the value used for V should be the RMS value of the applied voltage for any wave forms including DC.</p><p>From a book I read, Vrms of half-wave rectified sine wave = Vpeak / 2.</p><p>The reasoning: for Full-wave Sine Wave, Vrms = Vpeak / SQRT(2)</p><p> Squaring both side, (Vrms)^2 = (Vpeak)^2 / 2</p><p>Half-wave rectified sine wave is exactly one-half of the full-wave sine wave, therefore, for Half-wave Sine Wave, (Vrms)^2 = [(Vpeak)^2 / 2] / 2</p><p> = (Vpeak)^2 / 4</p><p>Taking square root on both sides, Vrms = Vpeak / 2 for half-wave.</p><p>It sounds like you have under-calculated the power consumed. That explained for my last reply to you.</p><p>For full-wave square wave, Vrms = Vavg = Vpeak.</p><p>For half-wave rectified square wave, Vavg = Vpeak / 2,</p><p> However, Vrms = Vpeak / SQRT(2).</p><p>For a 10V full-wave square wave, the Vrms of its half-wave rectified form will be 7.071V, not 5V.</p>

<p><em>When using Ohm's Law, V = IR, the value <br>used for V should be the RMS value of the applied voltage for any wave <br>forms including DC.</em></p><p>Not necessarily. If you apply an AC voltage to a resistive (ohmic) load, and use I = V / R to calculate the current through that load, you can use the RMS voltage to calculate the RMS current, or the peak voltage to calculate the peak current, if that's what you want to know. You can even use the peak-to-peak voltage if you want to calculate the peak-to-peak current.</p><p>When you're calculating power dissipation though, it's only meaningful to use the RMS voltage. This is because for a resistive load, power is proportional to the *square* of the voltage (from P = V^2 / R), or the *square* of the current (from P = I^2 R), so when the absolute value of the voltage is not constant, you need to apply RMS calculation to the waveform (for every possible point in the cycle, square the voltage, then take the mean of those squares, then calculate the square root of that) to calculate the mean power it represents into a resistive load.</p><p><em>From a book I read, Vrms of half-wave rectified sine wave = Vpeak / 2.</em></p><em>The reasoning: for Full-wave Sine Wave, Vrms = Vpeak / SQRT(2)</em><p><em>Squaring both side, (Vrms)^2 = (Vpeak)^2 / 2</em></p><p><em>Half-wave <br> rectified sine wave is exactly one-half of the full-wave sine wave,</em></p><p><em>therefore, for Half-wave Sine Wave, (Vrms)^2 = [(Vpeak)^2 / 2] / 2</em></p><p><em> = (Vpeak)^2 / 4</em></p><p><em>Taking square root on both sides, Vrms = Vpeak / 2 for half-wave.</em></p><p>Hmm. "I'm beginning to think you may be right", as one of my father's co-workers used to say to him when it was finally obvious beyond all doubt!</p><p>Here's an explanation by example, that makes sense to me.</p><p>Take a full-wave-rectified sine wave with a peak voltage of 10V with a resistive load of 1 ohm. The RMS voltage is 7.07V and the load will dissipate 7.07W.</p><p>Now remove every second half-cycle, so it's the same peak voltage but only half-wave rectified. Now the load resistor will dissipate 7.07W for half the time, and 0W for the other half, so its dissipation is 3.535W, half what it was.</p><p>Because power dissipation in a fixed resistance is proportional to V^2 or I^2, a 2:1 ratio in power dissipation is a voltage (or current) ratio of sqrt(2):1, not 2:1.</p><p>The ratio between Vpeak and Vrms for full-wave is sqrt(2):1. Halving the power reduces the Vrms by another sqrt(2):1 ratio. The two ratios combined give 2:1, so for half-wave, Vrms = Vpeak / 2. As you said.</p><p>Comparing a full-wave-rectified sinewave with a half-wave-rectified sinewave, half-wave has half the power (into a fixed resistive load), and half the average (mean) voltage, but not half the RMS voltage! And the same is true for a squarewave, as you showed in the last part of your post.</p><p>This seems pretty counterintuitive to me, but I'm trying to get my head round it. In the meantime I plead no contest on your calculations relating to power dissipation in the resistors for this project. Using the values I calculated, they should be rated at more than 1W.</p><p>Thanks for the corrections!</p><br>

<p>Hi Kris, can you tell me why you have the 2.22 in your formulas as opposed to just R=V/I only please? Is it because of the ac?</p><p>thanks</p>

<p>Yes.</p><p><br>The voltage of an AC sinewave can be measured in several different ways. Normally, the stated value is the RMS (root mean square) voltage.<br><br>For more information, see <a href="http://www.rfcafe.com/references/electrical/sinewave-voltage-conversion.htm" rel="nofollow"> http://www.rfcafe.com/references/electrical/sinew...</a><br><br>In the USA, the AC mains voltage is around 115V. This is the RMS voltage. (It produces the same heating effect as a DC voltage of 115V DC into a given load.)<br><br>Using this as an example, several other voltages can be calculated from an RMS voltage of 115V.<br><br>The peak voltage is equal to RMS multiplied by the square root of 2, which is 1.414. So it will be 162.6V. The peak-to-peak voltage will be twice this, i.e. 325.3V.<br><br>The average (mean) voltage after full-wave rectification is 63.662% of the peak voltage. That will be 103.5V. With half-wave rectification, only half of the waveform is used, so the average voltage will be half that, or 51.8V.<br><br>Since all these voltages are in fixed proportions, you can calculate a fixed divisor value that will convert an RMS voltage directly to an average (using half-wave rectification) voltage. This divisor is the square root of 1/2 (about 0.707) divided by half of the 0.63662 from the average formula, which works out to about 2.22.<br><br>Therefore you can take an RMS voltage, divide it by 2.22, and you will get the average voltage that will be produced when the voltage is half-wave rectified.<br><br>These figures aren't exact because the AC mains voltage varies somewhat, and there are voltage drops in the diode and the LED, but they're close enough.</p>

<p>Thanks for the very thorough explanation; you should be a lecturer (if you are not already)!</p>

<p>When using Ohm's Law, V = IR, the value used for V should be the RMS value of the applied voltage for any wave forms including DC.</p><p>From a book I read, Vrms of half-wave rectified sine wave = Vpeak / 2.</p><p>The reasoning: for Full-wave Sine Wave, Vrms = Vpeak / SQRT(2)</p><p> Squaring both side, (Vrms)^2 = (Vpeak)^2 / 2</p><p>Half-wave rectified sine wave is exactly one-half of the full-wave sine wave, therefore, for Half-wave Sine Wave, (Vrms)^2 = [(Vpeak)^2 / 2] / 2</p><p> = (Vpeak)^2 / 4</p><p>Taking square root on both sides, Vrms = Vpeak / 2 for half-wave.</p><p>For full-wave square wave, Vrms = Vavg = Vpeak.</p><p>For half-wave rectified square wave, Vavg = Vpeak / 2,</p><p> However, Vrms = Vpeak / SQRT(2).</p><p>For a 10V full-wave square wave, the Vrms of its half-wave rectified form will be 7.071V, not 5V.</p>

<p>Ignoring the voltage drops of the diode and LED, both are insignificant compared to the 220V AC mains, the RMS of the half-wave rectified pulsating DC voltage is ACVpeak / 2 = 155.59V. Therefore I = V / R = 155.59 / 22k = 7.07mA. Power dissipation of the 22k resistor, W = I^2 (R) = (0.00707) (0.00707) (20k) = 1.100W. I am afraid 1W rating for the 22k resistor is too low.</p>

<p>Variant on this idea ...</p><p><a href="http://www.marcspages.co.uk/tech/6103.htm" rel="nofollow">http://www.marcspages.co.uk/tech/6103.htm</a></p><p>Now need to try & figure out which is best option<br></p>