Homemade Test Jig Is Cheaper Than Outsourcing

In the past, [Sjaak] has had his testing and programming jigs made for him in Shenzhen, but realized they weren’t that great of a value. They weren’t terribly expensive in the grand scheme of things, but they didn’t include any wiring, so he was still spending his own time and money. His quest to develop his own in-house jigs not only netted him a considerable cost savings in the end, but also produced a nicely detailed post on his site for anyone else who may be heading down the same path. That’s a win-win in our book.

The idea behind a jig is pretty simple: essentially it’s just a mount that holds the PCB, and a set of pins which contact the appropriate points on the board. The jig can then provide power, programming, status LEDs for testing, etc. Basically anything that you can’t or don’t want to include on the final board, but will help in testing or programming them.

To start, [Sjaak] begins with a blank PCB in Eagle and imports his target board. With the two lined up, he can then mark where he wants the pins to go on the jig, and add labels to the silkscreen to make things a little easier during diagnostics. The target board is then removed, the file converted to Gerber, and it’s sent off for manufacturing. With a few more tweaks, the file is then exported to DXF and laser cut out of acrylic. When the PCBs come back, it’s just a matter of sandwiching it all together with some standoffs and adding the pins.

[Sjaak] mentions that he was inspired by an old post on how SparkFun was internally handling their test jigs, though we think with a dash of automation he could make things even easier for himself.

Books You Should Read: Poorly Made In China

This book is scary, and honestly I can’t decide if I should recommend it or not. It’s not a guide, it doesn’t offer solutions, and it’s full of so many cautionary tales and descriptions of tricks and scams that you will wonder how any business gets done in China at all. If you are looking for a reason not to manufacture in China, then this is the book for you.

The author is not involved in the electronics industry. Most of the book describes a single customer in the personal products field (soap, shampoo, lotions, creams, etc.). He does describe other industries, and says that in general most factories in any industry will try the same tricks, and confirms this with experiences from other similar people in his position as local intermediary for foreign importers.

Continue reading “Books You Should Read: Poorly Made In China”

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.

The Death Of Surplus

I thought the surplus electronics market in Dallas was a byproduct of local manufacturing, after all we have some heavy hitters in our back yard: Texas Instruments, Maxim (Dallas Semiconductor), ST Micro (at one time), Diodes Incorporated. If we widen our radius to include Austin (3 hours down the road) we can make a much more impressive list by including: National Instruments, Freescale Semiconductor, better yet I’ll just insert the graphic I’m pulling data from right here:

texas_companies_map
Texas Electronics Map Source: Texas.gov

Granted, not all of these are companies that manufacture silicon, or even have manufacturing facilities here in Texas. That doesn’t necessarily matter for surplus to exist. Back to my point of where surplus originated. While I wasn’t completely wrong (these companies certainly have helped contribute to the surplus electronics market) the beginnings of surplus storefronts date back to World War II. Did anyone see that coming? Neither did I. However it does make sense, the US government would have had a large stock of “stuff” to get rid of at the end of the war.

Enter the sale of government surplus all over the nation, usually near air force bases. So this is how the more generalized concept of a surplus shop came to be in existence; mix in the domestic manufacturing of electronics in the 1970’s and we have electronics surplus shops aplenty.

My First Hand Experience

I didn’t really appreciate how valuable my local electronics shop was until watching Beers in Bunnie’s Workshop – Workshop Video #36. If you haven’t seen the video you only need to know that [Ian] of Dangerous Prototypes and [bunnie] of Andrew [bunnie] Huang are standing in [bunnie]s work-space in Singapore drinking beer and talking about the lab that is [bunnie]s life. You with me now? Okay, there is a point in the video where the two discuss the ability to run down the street and buy a connector as something only available in Singapore or Shenzhen. Let me briefly pause here to clarify that I’m not comparing my local electronics shop to the Shenzhen market or Sim Lim Tower in Singapore, only stating that I too can hold parts in-hand before purchasing them. I’m also not [brandon] of Dangerous Prototypes or Andrew [brandon] Huang, clearly.

I do however have an electronics selection at my disposal that is unmatched until you get to the west coast shops. I went on a bit of an adventure with the owner [Jim Tanner] of my local shop [Tanner Electronics] to take some pictures of the retail floor and a few behind the scenes (warehouse) shots that you can check out after the break.

Continue reading “The Death Of Surplus”

a black aluminum heatsink with fins on a green matt

Hacking Manufacturing: Ordering A Custom Heatsink From China

Building a one-off hack is fun. But what happens when people like your hack so much they want to buy it? As many of us have discovered, going from prototype to product can be a frustrating, tedious, and often expensive process. [Nick] at Arachnid labs has documented the process of manufacturing a custom heatsink in China.

While designing the Re:Load Pro, [Nick] discovered that there were no enclosures with integrated heatsinks which suited his application. Rather than design an entire case from scratch, [Nick] used an aluminum extrusion. This is a common technique in the electronics world, and literally thousands of extrusion profiles are available. The problem was the heatsink. Only a custom part would fit the bill, so [Nick] created a CAD drawing detailing his design. Much like the case, the heatsink was an aluminum extrusion. The custom nature of the heatsink meant that [Nick] would need to pay mold/tooling costs as well as satisfy minimum orders.

Continue reading “Hacking Manufacturing: Ordering A Custom Heatsink From China”