Author Topic: Is it safe to power an Arduino project with a phone charger plugged to wall?  (Read 5459 times)

0 Members and 1 Guest are viewing this topic.

Offline engineheatTopic starter

  • Frequent Contributor
  • **
  • Posts: 274
  • Country: us
Those phone chargers that outputs 5V DC via a USB cable, I plan to cut the USB cable wire and power the 5V input of the Arduino Pro Mini with the wires. 

Is this safe? I need a reliable power supply (no batteries), but I heard it's dangerous to power off the 120V AC for something like this.
 

Online ebastler

  • Super Contributor
  • ***
  • Posts: 7375
  • Country: de
You are relying on the phone charger to keep you electrically isolated from the mains voltage. So don't use a no-name Chinese charger (or a pirated copy claiming to be Apple product or whatever -- not always easy to spot). If you use a known-good brand name charger, you should be safe.

The other danger is that you might harm your Arduino board or homebrew electronics when experimenting. Proper lab power supplies have an adjustable current limit, so if you accidentally create a short circuit on your Arduino board, the power supply will only provide a limited amount of current. The phone charger will provide all the current it can; typically 1 or 2 Ampere. That won't start a fire, but may damage electronic components. Given the cost of an Arduino, I would take that risk.
 
The following users thanked this post: SeanB, zirconx

Offline engineheatTopic starter

  • Frequent Contributor
  • **
  • Posts: 274
  • Country: us
What about a battery bank that outputs 5VDC to charge devices? Do those give max current too? (usually 1 or 2A)
 

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23099
  • Country: gb
I have a bunch of Nokia AC11 chargers floating around for this stuff. They’re not too electrically noisy, dirt cheap and aren’t made of poo.

Battery banks I’d skip because not all of them have a current limit that works. They can shift quite a bit of energy very quickly.
 

Offline sokoloff

  • Super Contributor
  • ***
  • Posts: 1799
  • Country: us
What about a battery bank that outputs 5VDC to charge devices? Do those give max current too? (usually 1 or 2A)
They have a max rated current, which is nowhere near the same thing as a current limit as you'd find in a typical bench supply.

IOW, if you add a load to it, it only promises to deliver at least the rated current without excessive voltage drop. It does not promise to not deliver more...
 

Online ebastler

  • Super Contributor
  • ***
  • Posts: 7375
  • Country: de
To paraphrase what bd139 and sokoloff said: Battery banks are atually worse when it comes to protecting your Arduino under accidental short-circuit conditions, since they can typically deliver more current than a wall wart.

Regarding the user's electrical safety from the mains supply, battery banks obviously eliminate that risk entirely -- as long as you don't charge them while you use them. But if you use a quality charger with your Arduino, the risk of electrocution is negligible. (Except for special use cases: I would not use any device connected to a wall wart while I'm in the bathtub, for example.)
 
The following users thanked this post: rs20

Offline DDunfield

  • Regular Contributor
  • *
  • Posts: 173
  • Country: ca
You are relying on the phone charger to keep you electrically isolated from the mains voltage. So don't use a no-name Chinese charger (or a pirated copy claiming to be Apple product or whatever -- not always easy to spot). If you use a known-good brand name charger, you should be safe.

Probably worth mentioning that even good brand name chargers which do not have a mains ground connection (most USB chargers don't) can present a significant percentage of yours mains as AC voltage at the DC "ground" output relative to mains ground. It is capacitively coupled and very low available current, but can be enough to damage sensitive components/inputs.

Dave
 

Offline Seekonk

  • Super Contributor
  • ***
  • Posts: 1966
  • Country: us
I use them all the time.  A very few aren't regulated and let the powered device do that.  Be aware that the A/D converter uses the 5V as a reference. That means that different supplies can change readings as well as the USB when using the serial monitor.
 

Offline engineheatTopic starter

  • Frequent Contributor
  • **
  • Posts: 274
  • Country: us
To paraphrase what bd139 and sokoloff said: Battery banks are atually worse when it comes to protecting your Arduino under accidental short-circuit conditions, since they can typically deliver more current than a wall wart.

Regarding the user's electrical safety from the mains supply, battery banks obviously eliminate that risk entirely -- as long as you don't charge them while you use them. But if you use a quality charger with your Arduino, the risk of electrocution is negligible. (Except for special use cases: I would not use any device connected to a wall wart while I'm in the bathtub, for example.)

I'm not so concerned with protecting the Arduino. I'm more concerned with protecting loved ones from getting electrocuted. Also not too concerned with electrical efficiency, so if the battery bank outputs more current than my load requires, I'm not too worried.

As far as short circuit protection, I believe a lot of battery banks already have that built in? Also, how about I use a fuse in my design?

Thanks
 

Online radiolistener

  • Super Contributor
  • ***
  • Posts: 4135
  • Country: 00
I'm using Samsung USB charger for such purposes with no issues.
But if you will use cheap Chinese charger it may be dangerous.
 

Online ebastler

  • Super Contributor
  • ***
  • Posts: 7375
  • Country: de
As far as short circuit protection, I believe a lot of battery banks already have that built in? Also, how about I use a fuse in my design?

The battery packs should have short circuit protection which protects the battery pack itself (from damaging its output voltage regulator etc.).  But they may be able to happily provide currents which can damage components on your circuit in case of a malfunction or misconnection.

Adding a fuse to your circuit is certainly a good idea. But a fuse will not limit current as precisely and quickly as a lab power supply; you might still end up with some component mleting quicker than the fuse.

In any case, the risk of accidental damage to the circuit from shorts etc. exists mainy during the "tinkering" phase, while you build, test, and modify the circuit. That's when lab power supplies are typically used. Once you have finalized you design, put everything together in a box, and deployed it for others to use, this is not really a concern.
 

Online radiolistener

  • Super Contributor
  • ***
  • Posts: 4135
  • Country: 00
Adding a fuse to your circuit is certainly a good idea. But a fuse will not limit current ... some component mleting quicker than the fuse.

In any case, the risk of accidental damage to the circuit

The main risk here is people DEATH (!) from electric shock, because these Chinese chargers don't have protection.
They are designed to work with gadgets which is almost always are isolated with plastic case.
There may be missing short circuit protection, because there is no short circuit in the gadget.
And who knows what will happens when you accidentally short out it's output?

Fuse will not protect you.
« Last Edit: April 03, 2019, 05:00:05 am by radiolistener »
 

Online ebastler

  • Super Contributor
  • ***
  • Posts: 7375
  • Country: de
The main risk here is people DEATH (!) from electric shock, because these Chinese chargers don't have protection.
They are designed to work with gadgets which is almost always are isolated with plastic case.
There may be missing short circuit protection, because there is no short circuit in the gadget.
And who knows what will happens when you accidentally short out it's output?

Fuse will not protect you.

What you say is correct, but has already been discussed in this thread. Use of a quality, brand-name charger, rather than a Chinese no-name product, is the responsible thing to do. (Or use of a batter pack without mains connection.)

The "fuse" discussion was related to the secondary question of potential damage to the equipment, especially during the development and testing phase. Please do not muddy the waters by mixing up two aspects which have already been considered separately here.
 

Online iMo

  • Super Contributor
  • ***
  • Posts: 5570
  • Country: va
I've been using several older wall chargers ( ADP-5FH C with B male usb connector, 5V/1A) for years with almost all my dev boards with no problems so far.
Readers discretion is advised..
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 10385
  • Country: nz
I'm not so concerned with protecting the Arduino. I'm more concerned with protecting loved ones from getting electrocuted.

Put simply....
Every year 1 or 2 people die from picking up their phone while it's plugged into the wall.
They get electrocuted because the charger they're using is cheap and has a major fault.
Instead of providing a nice 0 volt ground and 5 volt power it's providing something like 225V ground and 230V power ( 230 - 225 is 5 so it's still producing 5V and works to charge the phone) but the person touches it and dies from the voltage between it and ground.

So if you want to be extra safe when making something yourself, use an official powerpack from a known brand and not something cheap from china.
« Last Edit: April 03, 2019, 06:40:14 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Online gf

  • Super Contributor
  • ***
  • Posts: 1425
  • Country: de
Why not simply use an insulation tester and check if the particular charger withstands say 500V or 1000V with a sufficiently high insulation resistance?
 

Offline Berni

  • Super Contributor
  • ***
  • Posts: 5050
  • Country: si
In general its best to take apart the charger and check how well built it is inside, but the problem is that the way these things are put together makes it a destructive process to disassemble.

In general tho the heavier a charger is the better. Every time i picked up a charger that felt oddly light i cracked it open and found utter shit inside before tossing it in the trash can. Supplies with actual heavy transformers inside are even better but they don't really make those anymore.

At least the OP is from the US so the 110V is less likely to jump the isolation barrier in a charger designed for universal 110-240V operation as they always tend to be.
 

Online ebastler

  • Super Contributor
  • ***
  • Posts: 7375
  • Country: de
Why not simply use an insulation tester and check if the particular charger withstands say 500V or 1000V with a sufficiently high insulation resistance?

Because everybody who asks questions about Arduinos and wall warts has an insulation tester at home?  ::)

Also, how do you know that the el cheapo power supplies are out of spec when they are sold, vs. fail spontaneously at a later point in time? Why not "simply" send you newly bought cheap power supply to a notified body for a full design review and safety test?  :P

Seriously, I would recommend to simply buy a brand name charger. With very few exceptions, the big brands have been doing a good job building safe products, because they need to protect their reputation.
 

Offline Berni

  • Super Contributor
  • ***
  • Posts: 5050
  • Country: si
Yeah there is no way to easily test it.

But you can indeed avoid most of the danger by not using $2 USB chargers off ebay. Things you find in local stores with proper CE UL TUV approval marks on them are a safer way to go. Also chargers that come with name brand phones will generally be well made.

Similar for power banks, cheap Chinese ones will not have proper current limiting and might catch fire if shorted. But name brand ones should be safe. Id say try shorting it for half a minute and if it doesn't smoke or catch fire its good. (And do it outside away from anything flammable obviously, a lithium battery fire can be very bad on a wood table)
 

Offline apis

  • Super Contributor
  • ***
  • Posts: 1667
  • Country: se
  • Hobbyist
Your project might still catch fire though. That is the biggest danger if it's something that will not be monitored while it's plugged in imo.
 

Online ebastler

  • Super Contributor
  • ***
  • Posts: 7375
  • Country: de
Your project might still catch fire though. That is the biggest danger if it's something that will not be monitored while it's plugged in imo.

I think setting something on fire with a (safe, decent quality) 1A phone charger is a stretch. That’s assuming that you do not build a big energy store, lithium battery or such into your own electronics, of course.
 

Offline apis

  • Super Contributor
  • ***
  • Posts: 1667
  • Country: se
  • Hobbyist
Many usb chargers can give you 2.5 A, at 5 V it's 12.5 W. If something fails shorted in a plastic or wooden enclosure that could be enough to start a fire. I always use a fuse for peace of mind at least. I'm just saying it's something to keep in mind.
 

Online radiolistener

  • Super Contributor
  • ***
  • Posts: 4135
  • Country: 00
Those, who likes to use cheap power supplies for their hobby projects, may be interested in this power supply board  :)

https://www.aliexpress.com/item/XH-M229-Desktop-Computer-Chassis-Power-Supply-ATX-Transfer-Board-Power-Take-off-Board-Power-Output/32875771794.html

With this board you can use ATX power supply from computer ^-^

Of course, the safety rules when you use such devices is your own responsibility.  ;)
« Last Edit: April 04, 2019, 08:29:49 pm by radiolistener »
 

Offline m98

  • Frequent Contributor
  • **
  • Posts: 634
  • Country: de
Just use a medical IEC60601-1 certified charger like for example the Friwo FOX6-XM-USB. Similar price as most consumer-brand chargers and still as safe as it gets, if you want the peace of mind.

I'm personally fine with just using my regular phone charger for such projects. I also never had a low-power circuit catch fire, but I did find out on a few "learning opportunities", that my laptops USB ports are surprisingly well protected against all kinds of electrical abuse...
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf