Searching For USB Power Supplies That Won’t Explode

USB power supplies are super cheap and omnipresent. They are the Tribble of my household. But they’re not all created equal, and some of them may even be dangerous. I had to source USB power supplies for a product, and it wasn’t easy. But the upside is that I got to tear them all apart and check out their designs.

In order to be legitimate, it’s nice (but not legally required) for a power supply to have UL approval. Some retailers and offices and building managers require it, and some insurance companies may not pay claims if it turns out the damage was caused by a non-UL-approved device.  UL approval is not an easy process, though, and it is time consuming and expensive. The good news is that if you are developing a low voltage DC product, you can pair it with a UL approved power supply and you’re good to go without any further testing necessary.

power_supply_1_overviewIf you are going for FCC approval and are having unintentional emissions testing done (which is more likely than UL as it’s a legal requirement for products that meet certain qualifications), the testing has to be done on the whole solution, so the power supply must be included in the testing, too.

Sourcing cheap electronics in large quantities usually ends up in China, and specifically Alibaba. First, we started with a how-low-can-you-go solution. This wasn’t even a power adapter; it was a power “adapteP”, and the whole batch was mis-printed. Quality control could not be a high priority. After cutting it open, it wasn’t terrible, and it had all the necessary parts. It was surprising how much of it was through-hole, which indicates that the assembly was done mostly by people. That happens when factories are cheaper, hire inexpensive labor, don’t invest in technology, and don’t care as much about quality.

There are certain things you should look for in a power supply to determine the level of risk:

  • Isolation Distance – This is how much space there is between the primary (AC) and secondary (DC 5V) sides. UL requires a few millimeters, and often you’ll see two separate PCBs. On many single-PCB solutions you’ll see a white line meander across the board to distinguish between the two. The smaller this separation, the closer your USB power is to AC line voltage, and if the gap is bridged somehow, you’re in for a world of hurt.
  • Fuse – if there is a short, a lot of current starts flowing, components heat up, and things get dangerous. A thermal cut-off (TCO) fuse (also known as a resettable fuse or a PTC) is a component that breaks the circuit when it gets too hot, like a circuit chaperon. When it cools off, the TCO resets and you can plug the device back in with no harm done. Without the fuse, the supply heats up and current keeps flowing until a component fries, sometimes explosively.
  • Connectors – You don’t want bare leads hanging out in space where they could move and touch something. You don’t want the USB port to be soldered only by its four pins. You don’t want the power pins to be loose.
  • Decent Label – “Adaptep”? Yes, to someone who uses a different alphabet the “P” and R are very similar characters. But still. Also, fake certifications abound. Look for the difference between the CE (China Export) and the CE (Conformité Européenne) labels. And the UL Logo should have a number. So should an FCC label.

So this first adapter? Isolation distance was fine because it was two separate boards, but there was no fuse and no protective tape between components. The connectors were all secure, but the label didn’t make any promises. As for performance, output at 5.34V under my product’s load meant it was a little outside of USB spec (5.25V limit), but not dangerous. On the scope it was ringing with a peak at 5.5 V at 4 kHz.

Of course, sourcing this supply for a second batch proved tricky, and we wanted the USB plug to come out the side instead of the front so it would have a thinner profile against a wall. Additionally, we needed UL approval for a client. Our second attempt was surprisingly successful. This adapter had UL certification, with a number to look up. Note that just having a number isn’t enough; many companies will just put someone else’s number on their product and assume nobody will bother to check. So when you do look it up, and find a different manufacturer, a different enclosure, and it looks more like a refrigerator than a USB power supply, don’t be too surprised. But no, this particular one was great! The label had a company name on it, model number and specs, and certifications that could be verified. Let’s tear it open!

power_supply_2_overviewSweet sweet silicon meat inside an ABS shell! Components wrapped in protective tape, two PCBs for isolation, and even a special injection-molded plastic piece to add additional protection. Components are labeled, and what’s this, an IC to control the oscillation instead of a feedback winding on the transformer? Fancy! It’s pretty clear that this power supply is good, and I’d trust this one.

Comparing this one to the others, there were so many noticeable little details that are important and clearly thought-out. Take, for example, the connection between the prongs and the PCB. On the previous board, it was made with wires soldered by hand. Solid, but time consuming and prone to failure or quality issues. This adapter has metal contacts that snap into the case very solidly so that the prongs cannot get loose. The connection to the PCB is via the springiness of the metal, but notice that the PCB has pads specifically designed to maximize the surface area of that connection. On the next PCB you’ll see no such effort.

Some components were covered in shrink tube, tape, or non-conductive grey adhesive. The assembly was tight with no room for components to shake loose or accidentally touch. And the output was perfect. 4.9 Volts with nary a ripple.

But this is China, and component sourcing problems are a thing, so I guess I shouldn’t have been surprised when these supplies were no longer available. In retrospect, maybe these were unsold overstock, or possibly QC rejects. That would explain why they were only slightly more expensive than the others. And so we moved on to another supplier; one that could pad-print our logo on top.

power_supply_differencesAt first glance these power supplies appeared identical. But close inspection reveals slight differences in the style around the USB and the raised ridges on the underside. The label was completely different, and gone was the number next to the UL logo. There was no company name on the supply either, and the company we purchased from turned out to be a reseller and not the OEM. Also, why was the output 4.7-5V, and why did my scope say 5.5V (but surprisingly stable)?

Inside was a completely different beast. Using a single PCB, the creep distance was about a millimeter. You can see the white line meandering through the bottom of the PCB that shows the high and low sides. The USB port wasn’t soldered to the PCB except by the four signal/power pins (see the bottom side lower left and the hanging USB connection pins), and there was a capacitor with really long uncovered leads and the positive side dangerously close to the USB shell. There was almost no protective tape, no shrink tube on the leads, and no protection in case of a short.

 

In the end, I wouldn’t trust the two non-UL supplies with anything worth more than a few bucks, and certainly not my cell phone. I’d have really big reservations about reselling them to customers who don’t know the difference. The UL-approved one was great, but the other two are only good for powering low-current-draw devices that are not sensitive to voltage. Also, finding a reliable supplier in China is HARD.

Check out a much more thorough analysis of this and pretty much every USB power supply cube by [Ken Shirriff]. It’s surprising how little has changed in four years with these supplies, and his analysis goes into how the circuits behind these supplies work, identifying each component and its purpose.

We also covered a Sparkfun teardown of some power supplies with similar conclusions, and a Fail of the Week in which a faulty USB power adapter was the likely cause of a fire.

Hackaday Links: April 17, 2016

There have been really cool happenings in the CNC world for the past few years. There is a recent trend of portable, handheld CNC machines. Yes, you read that correctly. This SIGGRAPH paper demonstrated a handheld router with a camera and a few motors that would make slight corrections to the position of the router. Load in a .DXF or other vector file, and you become the largest CNC machine on the planet. We saw it at one of the Maker Faires, and about a year ago the team soft launched. Apparently, the Shaper router is gearing up for production and [Ben Krasnow] got the first look with a full 17-minute demonstration of [Ben] fabricating parts out of aluminum. It looks like a great tool, and we can’t wait to see this thing in production.

Octoprint is the best way to give a 3D printer a web interface. The dev for Octoprint, [Gina Häußge] used to have a sponsor for developing Octoprint. They’re gone now, which means it’s time for [Gina] to start a Patreon. If you use Octoprint, you know it’s worth more than a dollar a month.

Really bad USB power supplies are nothing new around these parts. There are cheap USB supplies that don’t have any fuses, don’t have any circuit protection, and are noisy as hell. This is the worst USB power supply the Internet has to offer. It’s from one of the relatively new designs of USB power supplies that steps down mains voltage to five USB A ports. [bigclive]’s teardown revealed this was passing half wave mains voltage to the USB ports. It can light up a light bulb. It can kill your phone. The fault? A pinhole in the insulation between the windings of the transformer.

Electronic conference badges are getting excessive, but they can be so much cooler. Here’s Atmel’s take on a high-end conference badge. It has a display, sensors, WiFi, Bluetooth, runs Android, and has 512MB of RAM, 4GB of Flash. It’s a freakin’ mini tablet meant to last for three days.

Speaking of Atmel, they’re having a few growing pains in the merger with Microchip. Employees coming to Microchip from Atmel are getting their severance benefits cut in half. Apparently, the severance benefits given to Atmel employees were not communicated to Microchip before the merger.

Raspberry Pi Zeros are back in production. There’s also going to be a mysterious new feature. Is it WiFi? No, it’s confirmed not to be WiFi. How about Ethernet? Bluetooth? an RTC? Full size HDMI port? Actual pin headers? Audio port? Improved CPU / RAM? No, children. It’s none of these.

C.H.I.P., the nine dollar computer that made some waves last summer, has on-board Flash storage. That means you don’t need to put an image on an SD card. The folks behind C.H.I.P. have recently improved the method for flashing a new OS onto their tiny board: a Chrome plugin. Yes, this sounds completely bizarre, but Chrome plugins are becoming increasingly popular for USB gadget wizardry. You can program an Arduino with Chrome and log USB power profiles with a USB tester and Chrome. You will ride eternal, shiny and chrome.

Tricking A USB Power Supply

battery_load_pulser6

[Paul] recently purchased an inexpensive USB power pack, hoping to use it for powering small electronics projects. Unfortunately it has been designed to only stay on when a device is drawing a lot of power (like charging a cell phone), so he set out to fix it.

He started by experimenting to see just how much current is required to keep the battery pack on, and for how long. Testing a few resistors he discovered that a 22 ohm one will keep the power supply on indefinitely. If there’s no load, it only remains powered on for about 13 seconds. Now you can’t just hook up the 22 ohm resistor to a 5V power supply for the sake of keeping it on — that would draw 1.1watts and get very hot!

His next step was to determine how long the load needs to be on for, and at what interval in order to keep the power supply active. He created a test circuit using a Teensy microcontroller and determined that a 20ms pulse every 1.4 seconds was enough to keep it on — any less and it would  switch off after a few minutes. The final transistor based circuit draws about 222mA — but at a 1.6% duty cycle, resulting in only a 3.5mA draw! [Paul] suspects the switching power supply inside battery pack probably draws more than that! He can’t take all the credit though, he learned of the idea from a forum post — but he certainly has made a very nice write up for people to follow in his footsteps!

Now that’s a good old fashioned product hack!