Deep-Sleep Problems Lead To Forensic Investigation Of Troublesome Chip

When you buy a chip, how can you be sure you’re getting what you paid for? After all, it’s just a black fleck of plastic with some leads sticking out of it, and a few laser-etched markings on it that attest to what lies within. All of that’s straightforward to fake, of course, and it’s pretty easy to tell if you’ve got a defective chip once you try it out in a circuit.

But what about off-brand chips? Those chips might be functionally similar, but still off-spec in some critical way. That was the case for [Kevin Darrah] which led to his forensic analysis of potentially counterfeit MCU chips. [Kevin] noticed that one of his ATMega328 projects was consuming way too much power in deep sleep mode — about two orders of magnitude too much. The first video below shows his initial investigation and characterization of the problem, including removal of the questionable chip from the dev board it was on and putting it onto a breakout board that should draw less than a microamp in deep sleep. Showing that it drew 100 μA instead sealed the deal — something was up with the chip.

[Kevin] then sent the potentially bogus chip off to a lab for a full forensic analysis, because of course there are companies that do this for a living. The second video below shows the external inspection, which revealed nothing conclusive, followed by an X-ray analysis. That revealed enough weirdness to warrant destructive testing, which showed the sorry truth — the die in the suspect unit was vastly different from the Atmel chip’s die.

It’s hard to say that this chip is a counterfeit; after all, Atmel may have some sort of contract with another foundry to produce MCUs. But it’s clearly an issue to keep in mind when buying bargain-basement chips, especially ones that test functionally almost-sorta in-spec. Caveat emptor.

Counterfeit parts are depressingly common, and are a subject we’ve touched on many times before. If you’d like to know more, start with a guide.

Continue reading “Deep-Sleep Problems Lead To Forensic Investigation Of Troublesome Chip”

Hackaday Links Column Banner

Hackaday Links: September 13, 2020

Like pretty much every other big conference, the Chaos Communication Conference is going virtual this year. What was supposed to be 37C3 has been rebranded as rC3, the remote Chaos Experience. It’s understandable, as a 17,000 person live event would have not only been illegal but a bit irresponsible in the current environment. The event appears to be a hybrid of small local events hosted in hackerspaces linked with streamed talks and a program of workshops and “online togetherness.” rC3 is slated to run in the week between Christmas and New Year, and it seems like a great way to wrap up 2020.

Speaking of remote conferences, don’t forget about our own Remoticon. While it won’t be quite the same as everyone getting together in sunny — historically, at least — Pasadena for a weekend of actual togetherness, it’s still going to be a great time. The event runs November 6 to 8; we’ve had a sneak peek at the list of proposed workshops and there’s some really cool stuff. Prepare to be dazzled, and make sure you keep up on the Remoticon announcements — you really don’t want to miss this.

Continue reading “Hackaday Links: September 13, 2020”

Under Pressure: How Aluminum Extrusions Are Made

At any given time I’m likely to have multiple projects in-flight, by which of course I mean in various stages of neglect. My current big project is one where I finally feel like I have a chance to use some materials with real hacker street cred, like T-slot extruded aluminum profiles. We’ve all seen the stuff, the “Industrial Erector Set” as 80/20 likes to call their version of it. And we’ve all seen the cool projects made with it, from CNC machines to trade show displays, and in these pandemic times, even occasionally as sneeze guards in retail shops.

Aluminum T-slot profiles are wonderful to work with — strong, lightweight, easily connected with a wide range of fasteners, and infinitely configurable and reconfigurable as needs change. It’s not cheap by any means, but when you factor in the fabrication time saved, it may well be a net benefit to spec the stuff for a project. Still, with the projected hit to my wallet, I’ve been looking for more affordable alternatives.

My exploration led me into the bewilderingly rich world of aluminum extrusions. Even excluding mundane items like beer and soda cans, you’re probably surrounded by extruded aluminum products right now. Everything from computer heatsinks to window frames to the parts that make up screen doors are made from extruded aluminum. So how exactly is this ubiquitous stuff made?

Continue reading “Under Pressure: How Aluminum Extrusions Are Made”

Reverse Engineering The Charge Pump Of An 8086 Microprocessor

You’d think that the 8086 microprocessor, a 40-year-old chip with a mere 29,000 transistors on board that kicked off the 16-bit PC revolution, would have no more tales left to tell. But as [Ken Shirriff] discovered, reverse engineering the chip from die photos reveals some hidden depths.

The focus of [Ken]’s exploration of the venerable chip is the charge pump, a circuit that he explains was used to provide a bias voltage across the substrate of the chip. Early chips generally took this -5 volt bias voltage from a pin, which meant designers had to provide a bipolar power supply. To reduce the engineering effort needed to incorporate the 8086 into designs, Intel opted for an on-board charge pump to generate the bias voltage. The circuit consists of a ring oscillator made from a trio of inverters, a pair of transistors, and some diodes to act as check valves. By alternately charging a capacitor and switching its polarity relative to the substrate, the needed -5 volt bias is created.

Given the circuit required, it was pretty easy for [Ken] to locate it on the die. The charge pump takes up a relatively huge amount of die space, which speaks to the engineering decisions Intel made when deciding to include it. [Ken] drills down to a very low level on the circuit, with fascinating details on how the MOSFETs were constructed, and why eight transistors were used instead of two diodes. As usual, his die photos are top quality, as are his explanations of what’s going on down inside the silicon.

If you’re somehow just stumbling upon [Ken]’s body of work, you’re in for a real treat. To get you started, you’ll want to check out how he found pi baked into the silicon of the 8087 coprocessor, or perhaps his die-level exploration of different Game Boy audio chips.

Chip Decapping The Easy Way

Chip decapping videos are a staple of the hacking world, and few things compare to the beauty of a silicon die stripped of its protective epoxy and photographed through a good microscope. But the process of actually opening that black resin treasure chest seems elusive, requiring as it does a witch’s brew of solvents and acids.

Or does it? As [Curious Marc] documents in the video below, a little heat and some finesse are all it takes, at least for some chips. The method is demonstrated by [Antoine Bercovici], a paleobotanist who sidelines as a collector of old chips. After removing chips from a PCB — he harvested these chips from an old PlayStation — he uses hot air to soften the epoxy, and then flexes the chip with a couple of pairs of pliers. It’s a bit brutal, but in most of the Sony chips he tried for the video, the epoxy broke cleanly over the die and formed a cleavage plane that allowed the die to be slipped out cleanly. The process is not unlike revealing fossils in sedimentary rocks, a process that he’s familiar with from his day job.

He does warn that certain manufacturers, like Motorola and National, use resins that tend to stick to the die more. It’s also clear that a hairdryer doesn’t deliver enough heat; when they switched to a hot air rework station, the success rate went way up.

The simplicity of this method should open the decapping hobby up to more people. Whether you just want to take pretty pictures or if reverse engineering is on your mind, put the white fuming nitric acid down and grab the heat gun instead.

Continue reading “Chip Decapping The Easy Way”

Forming Sheet Metal Parts With 3D Printed Dies

Using 3D printed forms to bend sheet metal isn’t exactly new. We’ve seen several people create custom dies for their brakes, and the results have shown the concept has merit for small-scale production. But that’s usually where the process ends. A bend here or there is one thing, but the ability to form a complex shape with them has always seemed like asking too much. But judging by his recent experiments, [Shane Wighton] is very close to changing that perception.

The process at work here is, relatively speaking, pretty simple. You print out the upper and lower die, put a piece of sheet metal between them, and then smash them together with a hydraulic press. If everything works correctly, and your CAD skills hold true, the metal will take the desired shape.

Of course, that’s vastly oversimplifying things. As [Shane] explains in the video after the break, there are many nuances to forming sheet metal like this that need to be taken into account, and iteration and experimentation are basically unavoidable. So it’s a good thing you can rapidly redesign and reprint the dies.

Which isn’t to say that the dies themselves didn’t come with their own unique set of challenges. The first ones shattered under the pressure, and it took a few design revisions and eventually a switch to a stronger resin before [Shane] got a set of dies that could form the desired piece. Even still, he’s had a lot of trouble getting the printed parts to survive multiple uses. But he’s confident with some more refinements he could get a repeatable process going, and thinks ultimately producing runs of up to 100 parts on a set of printed dies isn’t out of the question.

Logically, it would seem plastic isn’t an ideal choice for punching and shaping metal. Frankly, it’s not. But if you’re doing in-house manufacturing, the ability to produce complex tooling quickly and easily can help make up for any downsides it might have.

Continue reading “Forming Sheet Metal Parts With 3D Printed Dies”

3D-Printed Tools Turn Bench Vise Into Expedient Press Brake

Chances are pretty good that most of us have used a bench vise to do things far beyond its intended use. That’s understandable, as the vise may be the most powerful hand tool in many shops, capable of exerting tons of pressure with the twist of your wrist. Not taking advantage of that power wouldn’t make any sense, would it?

Still, the clamping power of the vise could sometimes use a little finesse, which is the thinking behind these 3D-printed press brake tools.  [Brauns CNC] came up with these tools, which consist of a punch and a die with mating profiles. Mounted to the jaws of the vise with magnetic flanges, the punch is driven into the die using the vise, forming neat bends in the metal. [Braun] goes into useful detail on punch geometry and managing springback of the workpiece, and handling workpieces wider than the vise jaws. The tools are printed in standard PLA or PETG and are plenty strong, although he does mention using his steel-reinforced 3D-printing method for gooseneck punches and other tools that might need reinforcement. We’d imagine carbon-fiber reinforced filament would add to the strength as well.

To be sure, no matter what tooling you throw at it, a bench vise is a poor substitute for a real press brake. Such machine tools are capable of working sheet metal and other stock into intricate shapes with as few setups as possible, and bring a level of power and precision that can’t be matched by an improvised setup. But the ability to make small bends in lighter materials with homemade tooling and elbow grease is a powerful tool in itself.

Continue reading “3D-Printed Tools Turn Bench Vise Into Expedient Press Brake”