Arduino Forum

Using Arduino => General Electronics => Topic started by: leoncorleone on Jul 31, 2016, 06:01 pm

Title: 5v DC from 220v AC circuit
Post by: leoncorleone on Jul 31, 2016, 06:01 pm
Hello to all.
My circuit need to 5v DC and about 1Amp current also I want to provide this power from 220v AC.
I want the smallest circuit for power.Any Idea?
tnx.
Title: Re: 5v DC from 220v AC circuit
Post by: MarkT on Jul 31, 2016, 06:23 pm
A USB mobile phone charger?
Title: Re: 5v DC from 220v AC circuit
Post by: Power_Broker on Jul 31, 2016, 06:32 pm
If you need the circuit to be tiny and a laptop charger is too big, then here's what you can do:

Feed the AC to a diode full wave rectifier. Then feed that output to a 5.1V Zener diode, a capacitor, and (lastly) a resistor all in parallel.

The output voltage across the resistor will be about 5V DC.

You could solder the circuit onto a small proto board or PCB easy.
Title: Re: 5v DC from 220v AC circuit
Post by: leoncorleone on Jul 31, 2016, 08:45 pm
Sorry, do you have any circuit for it?
thanks again.
Title: Re: 5v DC from 220v AC circuit
Post by: Power_Broker on Jul 31, 2016, 09:30 pm
Sorry, do you have any circuit for it?
thanks again.
I just described it to you, lol  :D . You just have to make it.

See attached schematic.
Title: Re: 5v DC from 220v AC circuit
Post by: stowite on Jul 31, 2016, 09:44 pm
I just described it to you, lol  :D . You just have to make it.

See attached schematic.
You have to be joking!  The rectified 240 V mains will be directly connected across the 5V zener. This will put very high current through the bridge rectifier and the zener and either the zener or the bridge will fail; probably with a loud bang. If the zener fails then the capacitor and resistor will see the rectified mains and something else will give once again probably with a load bang.

This whole circuit is so silly and dangerous that I have to question your sanity and qualifications.
Title: Re: 5v DC from 220v AC circuit
Post by: Power_Broker on Aug 01, 2016, 01:59 am
You have to be joking!  The rectified 240 V mains will be directly connected across the 5V zener. This will put very high current through the bridge rectifier and the zener and either the zener or the bridge will fail; probably with a loud bang. If the zener fails then the capacitor and resistor will see the rectified mains and something else will give once again probably with a load bang.

This whole circuit is so silly and dangerous that I have to question your sanity and qualifications.
Ahhh, yes. It should be isolated with a step down transformer. Forgive me for the mistake, you are right, sir.
Title: Re: 5v DC from 220v AC circuit
Post by: Noobian on Aug 01, 2016, 04:10 am
If budget allows then why not use this tiny little AC 220v to DC 5v module? it cost me about 4$ and it easily fits on my PCB and breadboard. :)

module name Hi-Link HLK-5M05

(http://g03.a.alicdn.com/kf/HTB1dDVyKXXXXXchaXXXq6xXFXXXG/220v-5V-AC-DC-isolated-power-supply-module-HLK-5M05-switching-step-down-5w-power-module.jpg)


It has a built in transformer and capacitors, in case you're wondering if it's just a cheap 4 rectifier diode inside that tiny box.
Title: Re: 5v DC from 220v AC circuit
Post by: be80be on Aug 01, 2016, 04:24 am
A USB mobile phone charger?
lot cheaper
Title: Re: 5v DC from 220v AC circuit
Post by: Southpark on Aug 01, 2016, 06:07 am
If budget allows then why not use this tiny little AC 220v to DC 5v module? it cost me about 4$ and it easily fits on my PCB and breadboard. :)

module name Hi-Link HLK-5M05

I think that module can run at 5V, 0.6 Amp continuously. The OP reckons they need 1 Amp.

Title: Re: 5v DC from 220v AC circuit
Post by: CrossRoads on Aug 01, 2016, 06:33 am
You can take the circuit out of one of these, it's pretty small
Input Voltage100V-240VAC
Frequency50-60Hz
Output Voltage5V
Output Current2A

http://www.dipmicro.com/store/DCA-0510 (http://www.dipmicro.com/store/DCA-0510) 1A
http://www.dipmicro.com/store/DCA-0520 (http://www.dipmicro.com/store/DCA-0520) 2A
(http://www.dipmicro.com/img/1/DCA-FULLVIEW.jpg)
Title: Re: 5v DC from 220v AC circuit
Post by: leoncorleone on Aug 01, 2016, 06:51 am
Thanks everyone.
I have another question.
What kind of Transformer is used in below converter?
This is a 220v AC to 5v DC converter.
(http://www.prodctodc.com/bmz_cache/f/f69e6b0d49c60bdf3546a8d4dd7499cd.image.599x599.jpg)
tnx
Title: Re: 5v DC from 220v AC circuit
Post by: OldSteve on Aug 01, 2016, 07:01 am
(http://forum.arduino.cc/index.php?action=dlattach;topic=415833.0;attach=175801)
Ahhh, yes. It should be isolated with a step down transformer. Forgive me for the mistake, you are right, sir.
It will still go BANG. Even if the AC source in your diagram is the secondary of a step-down transformer, you have no current-limiting resistor for the Zener diode, so it will die, then the full rectified voltage will be available at the output, probably murdering anything attached.
And even with a series resistor, this circuit is nowhere near suitable for an output current of 1A.
Title: Re: 5v DC from 220v AC circuit
Post by: OldSteve on Aug 01, 2016, 07:06 am
Thanks everyone.
I have another question.
What kind of Transformer is used in below converter?
This is a 220v AC to 5v DC converter.
(http://www.prodctodc.com/bmz_cache/f/f69e6b0d49c60bdf3546a8d4dd7499cd.image.599x599.jpg)
tnx
Judging by the size of the transformer, that would be a switching converter, and the transformer would be a high-frequency step-down transformer.

I agree with CrossRoads, pulling the guts out of a commercial 240VAC to 5VDC 2A switching converter is probably the best way to go.
Title: Re: 5v DC from 220v AC circuit
Post by: Southpark on Aug 01, 2016, 07:08 am
Thanks everyone.
I have another question.
What kind of Transformer is used in below converter?
This is a 220v AC to 5v DC converter.
It's just a 2 coil transformer.
Title: Re: 5v DC from 220v AC circuit
Post by: leoncorleone on Aug 01, 2016, 07:13 am
Does somebody have any circuit for a switching converter like that?I want to make one of this.
tnx
Title: Re: 5v DC from 220v AC circuit
Post by: OldSteve on Aug 01, 2016, 07:18 am
Does somebody have any circuit for a switching converter like that?I want to make one of this.
tnx
You clearly do not have the knowledge to safely design or build a circuit that connects to the mains.

It will be easier, cheaper and safer to do as CrossRoads suggested.
Title: Re: 5v DC from 220v AC circuit
Post by: leoncorleone on Aug 01, 2016, 07:25 am
You clearly do not have the knowledge to safely design or build a circuit that connects to the mains.
You're right.But I want to know more about it.
Title: Re: 5v DC from 220v AC circuit
Post by: Southpark on Aug 01, 2016, 07:39 am
You're right.But I want to know more about it.
Look up switch mode power supply, or switching regulator power supply, buck converter.

But be really careful. Even with that particular module you showed before, one side is potentially dangerous level of voltage (and power). So that's potentially dangerous in itself. But then, if the module isn't designed properly, or bad quality....then even the low voltage side can turn dangerous.
Title: Re: 5v DC from 220v AC circuit
Post by: Noobian on Aug 01, 2016, 11:20 am
I think that module can run at 5V, 0.6 Amp continuously. The OP reckons they need 1 Amp.


its a 1amp module
Title: Re: 5v DC from 220v AC circuit
Post by: INTP on Aug 01, 2016, 01:24 pm
Another vote for phone/device charger. Why risk killing yourself in making a $1-2 item.
Title: Re: 5v DC from 220v AC circuit
Post by: ElCaron on Aug 01, 2016, 01:37 pm
I also, highly recommend you to not kill yourself with that and just gut a phone charger (or even better, do NOT gut it und keep it in the casing). Your questions suggest that you lack basic electro technical knowledge. Get that with 5V first.

For completeness there is already a thread about that HLK transformer module:
https://forum.arduino.cc/index.php?topic=399990.0  though I am not particularly happy with the safety discussion there. I suggest reading this (really long) thread at the mysensors forum:
https://forum.mysensors.org/topic/1607/safe-in-wall-ac-to-dc-transformers
Title: Re: 5v DC from 220v AC circuit
Post by: be80be on Aug 01, 2016, 04:01 pm
Phone charger is by far the easy way to go and there cheap even at 2 amps the iPad ones supper small and can be found for $1,00 at the dollar tree
Title: Re: 5v DC from 220v AC circuit
Post by: Jiggy-Ninja on Aug 01, 2016, 10:21 pm
Ahhh, yes. It should be isolated with a step down transformer. Forgive me for the mistake, you are right, sir.
NO.

For the love of all that is decent and good, DO. NOT. EVER. BUILD. THAT. CIRCUIT.

Do not pass Go, do not collect $200, put your hands in the air where I can see them, and back away from the breadboard slowly. Don't make any sudden movements.