Blue LEDs

January 12th, 2006 by Keith Neufeld

In December, I was inspired by a post on the Makezine blog to search for retail LED Christmas lights, as a source of cheap LEDs. I couldn’t find any at Wal-Mart, but my wife found the Phillips LED Christmas lights at Target.

I wasn’t particularly impressed with the white ones–they looked very blue to me. But the blue ones were pretty, and bright!, so I bought a string. 60 LEDs for $12 is $.20 each, which is a pretty respectable price for blue LEDs (although you can do somewhat better on eBay buying from Hong Kong). And the review linked above doesn’t recommend these as a home lighting product (as packaged, they flicker just at the edge of perception), but they work great for cannibalizing. :-)

The LEDs have their leads stuck through little plastic bases, so they clip into and out of the plastic sockets much like other miniature Christmas lights. Happily, they also slip right out of the sockets, so they’re very easy to use.

I had an old stereo receiver with a burned out backlight on the mechanical tuner, and I’ve already soldered in a blue LED (with current-limiting resistor) to replace the original incandescent. It actually looks almost violet now, and I’ll probably replace it with a green LED the next time I have an excuse to open it–but it’s cool to have it working again.

Solid-State Tilt Sensor

January 12th, 2006 by Keith Neufeld

Years ago–probably about 2000, shortly after I got my first Handspring PDA–I saw an article on adding a solid-state tilt sensor to your Palm computer. I was enchanted by the idea of playing games by tilting the PDA from side to side, but even more excited about the possibilities for walking, balancing robots.

After reading about Analog Devices’ ADXL202, a micro-machined +/- 2g accelerometer with pulse-width modulated (PWM) digital output, I filled out their sample request form and received two chips in the mail. Unfortunately, I ordered the LCC (brick with leads painted onto the surface) instead of the small-form-factor surface-mount chip, thinking I’d find an LCC socket for it. Alas, I never did locate one.

I had long thought I should make some kind of daughterboard for the chip, with DIP pins on the underside to make it easier to use for prototyping. Fast-forward to 2005. After I was no longer commuting to Pittsburg, I had much greater continuity of free time between weekday evenings and weekends. I also had all my spare junk in one place. :-) I desoldered a larger LCC socket from a scrap board and cut opposing corners out of it with a razor saw, thinking I might be able to glom something together that would work, but to no avail.

Finally, late last fall, I did what any self-respecting (or was that desperate?) tinkerer would do: I soldered leads to the chip and stuck them into the top side of a machined DIP socket. It’s gross. It’s tacky. It’s done and it works.

ADXL202 carrier

The machined pins on the DIP socket fit very nicely into another DIP socket, and it works perfectly on my solderless breadboard. After assembling the carrier, I added the supporting components and a power supply, and was at last able to confirm that the device worked! I hooked it up to my scope and tilted it back and forth, enthralled by the tidy constant-period waveform with the high region changing width as I moved the board. W00T!