Repairing Dead USB Flash Drives

crystal

Over the last few years, [Tobias] has repaired a number of USB Flash drives. This strikes us as a little odd, given small capacity Flash drives are effectively free in the form of conference handouts and swag, but we’re guessing [Tobias] has had a few too many friends lose their thesis to a broken Flash drive.

In all his repairs, [Tobias] found one thing in common The crystal responsible for communicating with the USB controller is always broken. In a way, this makes a lot of sense; everything else on a Flash drive is silicon encased in an epoxy package, where the crystal is a somewhat fragile piece of quartz. Breaking even a small part of this crystal will drastically change the frequency it resonates at making the USB controller throw a fit.

[Tobias]‘ solution for all his Flash drive repairs is to desolder and change out the crystal, bringing the drive back to life. Some of the USB Flash drives even have multiple pads for different crystal packages, making it easy to kludge together a solution should you need to repair a Flash drive five minutes ago.

Measuring tiny current with high resolution

measuring-microamps-at-3MHz

[Paul] knew that he could get an oscilloscope that would measure the microamp signals with the kind of resolution he was after, but it would cost him a bundle. But he has some idea of how that high-end equipment does things, and so he just built this circuit to feed precision data to his own bench equipment.

He’s trying to visualize what’s going on with the current draw of a microcontroller at various points in its operation. He figures 5 mA at 2.5 mV is in the ballpark of what he’s probing. Measurements this small have problems with noise. The solution is the chip on the green breakout board. It’s not exactly priced to move, costing about $20 in single quantity. But when paired with a quality power supply it gets the job done. The AD8428 is an ultra-low-noise amplifier which has way more than the accuracy he needs and outputs a bandwidth of 3.5 MHz. Now the cost seems worth it.

The oscilloscope screenshot in [Paul's] post is really impressive. Using two 1 Ohm resistors in parallel on the microcontroller’s power line he’s able to monitor the chip in slow startup mode. It begins at 120 microamps and the graph captures the point at which the oscillator starts running and when the system clock is connected to it.

Build your own metal detector

metal-detector

[Dzl] and his rather serious looking son are metal detector enthusiasts. But when they couldn’t find their store-bought metal detector earlier this summer they just went ahead and built their own. [Dzl] starts his write up with an explanation of how most oscillator based metal detectors work. This one differs by using an Arduino to read from the metal detecting coil.

The circuit starts with an oscillator that produces a signal of about 160 kHz which is constantly measured by the Arduino. When metal enters the coil it alters the frequency, which is immediately picked up the Arduino. Instead of that characteristic rising tone this rig uses a Piezo buzzer, issuing the type of clicks you’d normally associate with a Geiger counter.

The last part of the build was to find the best coil orientation. They settled on thirty turns around a metal bucket. An old Ikea lamp is the perfect form factor to host their hardware which seems to work like a charm.

Hackaday Links: March 25, 2013

Illegal, yet impressive

cans

Want a soda? Just grab a robot, shove it in a vending machine, and grab yourself one. This video is incredibly French, but it looks like we’ve got a custom-built robot made out of old printers and other miscellaneous motors and gears here. It’s actually pretty impressive when you consider 16 ounce cans weigh a pound.

UNOBTANIUM

chip

Okay, we got a lot of emails on our tip line for this one. It’s a group buy for a programmable oscillator over on Tindie. Why is this cool? Well, this chip (an SI570) is used in a lot of software defined radio designs. Also, it’s incredibly hard to come by if you’re not ordering thousands of these at a time. Here’s a datasheet, now show us some builds with this oscillator.

Chiptune/keygen music anywhere

keygen

[Huan] has a co-loco’d Raspi and wanted a media server that is available anywhere, on any device. What he came up with is a service that streams chiptune music from your favorite keygens. You can access it with Chrome (no, we’re not linking directly to a Raspberry Pi), and it’s extremely efficient – his RAM usage didn’t increase a bit.

Take it on an airplane. Or mail it.

bomb

[Alex]‘s hackerspace just had a series of lightning talks, where people with 45-minute long presentations try to condense their talk into 10 minutes. Of course the hackerspace needed some way to keep everything on schedule. A simple countdown timer was too boring, so they went with a fake, Hollywood-style bomb. No, it doesn’t explode, but it still looks really, really fake. That’s a good thing.

Printers have speakers now?

nokia

[ddrboxman] thought his reprap needed a nice ‘print finished’ notification. After adding a piezo to his electronics board, he whipped up a firmware hack that plays those old Nokia ringtones. The ringtones play over Gcode, so it’s possible to have audible warnings and notifications. Now if it could only play Snake.

[Jeri] uses light bulbs in an oscillator

Way back when [Ms Ellsworth] was a kid, she kept seeing the same circuit over and over again in her various op-amp books. It was a Wien bridge oscillator, a small circuit that outputs a sine wave with the help of a light bulb. Now that [Jeri] is much wiser, she decided to play around with this strange oscillator and found it’s actually pretty impressive for, you know, a light bulb.

The interesting portion of the Wien bridge is the gain portion of the circuit. It’s just a simple resistor divider, with a light bulb thrown in on one of its legs. When the current increases, this causes the light bulb to warm up (not enough to glow, though). When the temperature increases, the resistance in the light bulb increases, making the oscillator reach an equilibrium.

It’s a clever setup, but what about swapping out a resistor in place of the light bulb? In the video, [Jeri] tries just that, and it’s a mess. Where the light bulb circuit is amazingly stable with very, very low distortion, the resistor circuit looks like a disaster on the scope with harmonics everywhere.

A very cool build that would be perfect for an audio synth, but as [Jeri] says in her YouTube comments, “This doesn’t have enough distortion for indie bands.”

[Read more...]

Quick and easy Arduino-powered theremin

[Martin] sent in a great guide to a simple Arduino based theremin. It’s a very small build – just a single common IC and some passive components – and easy enough to build in an afternoon.

The theremin is based on a simple LC oscillator built around a 7400 quad NAND gate IC, a wire antenna, and a few caps and resistors. When a hand moves closer to the antenna, the frequency of the oscillator increases; when a hand moves away, the frequency decreases. On the software side, the oscillator is connected to the internal hardware counter of the Arduino. Every time there’s a change in the voltage output by the oscillator (all the time, varying slightly with the distance from a hand to the antenna), the counter increases by one. This counter is tallied up over 1/10th of a second, and the distance from the instrumentalist to the theremin can be determined. From there, it’s just outputting a frequency to a speaker.

All the code, schematics, and board layouts are available on [Martin]‘s guide, and most of our readers probably have the parts to build this lying around their workbench. You can check out a video of [Martin]‘s theremin in action on his guide.

Remove your Arduino’s external oscillator to gain a free pair of IO pins

2free-arduino-io-pins

[Mark] from SpikenzieLabs was wrapping up a project using an Arduino the other day and found himself in need of a few more I/O pins. He could have added extra circuitry to the project, but he decided to see if he could gain a few pins by removing a few components instead.

He put together one of his Minuino boards, but rather than installing the crystal and its associated capacitors, he added a couple of pin headers in their place. It’s well known that the internal clock on the chip is not as precise as a crystal, but [Mark’s] project was not that time sensitive, so he had no problem sacrificing the oscillator for a few extra pins.

With his new I/O pins in place, he merely needed to tell the ATmega chip which clock it should be using, and he was well on his way. While this might not be the best solution for all projects out there, if you are building something that values pincount over precision, this hack is for you.

Check out the video below to see [Mark’s] hack in action.

[via HackedGadgets]

[Read more...]