The Larson Scanner Kit
Today we're releasing a new open-source project and kit, which is an updated approach to the "Larson Scanner." The Larson scanner is named in honor of Glen A. Larson, the man responsible for producing both the original Battlestar Galactica and Knight Rider television shows, and consists of a set of red LEDs that scan back and forth.
Three years ago, we showed how to make a Cylon Jack-O-Lantern, in what has become one of our all-time most popular tutorials. The circuit for that project was based on a 555 timer, driving a 4017 decade counter, and has 6 pixels of resolution. To create the incandescent fading effect, we added low-pass transistor drivers. We also wrote up a version of that article for the 2007 Make Magazine Halloween special, which included a slightly nicer version of that same circuit.
And while it's been popular, we've always had some nagging reservations about it, and in particular its battery life. This year, we decided to do something about it and made a much better version of the Larson Scanner, and so here it is:
The all-new Larson Scanner is based on the ATtiny2313 microcontroller and has a few distinct advantages. First and foremost, it's power efficient. While the old version based on the 555 and 4017 can be built from off-the shelf parts, it's also a power hog, and battery life on that circuit is anything but impressive. The new version uses a low power microcontroller, and carefully manages the power to the LEDs.
Speaking of LEDs, we now have nine rather than six, and as the "eye" scans from back and forth across the LEDs, it now has silky smooth animated fading between them. To achieve the smooth scanning, up to five of the LEDs may be lit, to various degrees, at any one moment. Greyscale is achieved through high-speed software based pulse-width modulation. It's digital but very efficient, and it looks genuinely better than any of our previous versions.
The LEDs and microcontroller have been laid out on a relatively spacious 5 inch long (12.7 cm) circuit board-- big enough to fit 10 mm LEDs --and it all turns out to be the easiest to assemble kit that we've ever designed.
While we did incorporate a rate adjustment trimpot in the later version of the 555-based scanner, it's actually not that convenient to adjust. In the new version, there is a pushbutton switch located on the right side of the circuit board. Pressing it allows you to choose between three basic scanning speeds ("slow," "medium," and "fast"), all of which use the same smooth scanning.
If you hold the button for several seconds it will also toggle the scanner between two modes: the default low power mode, and high-brightness (aka "annoyingly bright" mode).
The circuit runs on 2 AA cells, and has an external battery box with integrated power switch. Under high-brightness mode: A new set of alkaline AA cells would be expected to last about 60-80 hours continuously, or 10-13 days if run 6 hours per day. Under low-power mode-- the default at turn on-- a new set of alkaline AA cells would be expected to last somewhere in the neighborhood of 400-700 hours, or 16-30 days if run continuously.
One more neat trick: The battery box wires go up through holes in the board before looping around to get soldered in place. We got the idea for this nice strain relief from Dale Wheat who uses it in his own tiny kits.
This is an open-source project, designed to be hackable.
The circuit board in the Larson Scanner kit is called "ix," as in Roman for the number nine, because it has nine LEDs onboard. To get started working with this design on your own, you can download its schematic diagram here (33 kB PDF file). If you look at the schematic, you might find a couple of places to put extra interfaces: you can add an on-board AVR-ISP programming header and even a header to connect to a FTDI USB-TTL serial cable, just in case you want to reprogram it to talk to your computer. There are also two locations to add jumpers-- permanent or removable header-type --for user control of the hardware.
You can download the circuit board layout file here (74 kB .pcb file); The circuit board was designed in gEDA PCB-- free, open-source printed circuit board software. Since this is a single-sided design and relatively easy to make as a home-etched circuit board, you may also want to download this PDF of the PCB layout, showing the individual circuit board layers broken out individually with crop marks.
The source code is available for download here (4 kB .zip file). It's designed for use with AVR-GCC and an AVR ISP programmer. If you're new to AVR programming and want to hack the Larson Scanner, you might want to start by looking at our list of resources for getting started with AVR microcontrollers.
The Larson Scanner kit is available at our webstore, Evil Mad Science.
Want to talk about this project? That's what our forums are for.
Got projects based on this board to show off? We'd love to see your pictures in the Evil Mad Science Auxiliary.








---
Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/