Our own [Mike Szczys] recently sat down and put together a great tutorial on building a Larson Scanner. The ubiquitous circuit is usually one of the first few projects on a budding hackers list of things to build, since they are just so darn fun.
Simple versions of the scanner sweep back and forth lighting the LEDs without any sort of transition between them. The configuration most familiar to us all as featured in Knight Rider and Battlestar Galactica are a bit more complex, and have a fading trail of light that follows behind the leading edge of the sweep. [Mike] notes that this fading is traditionally accomplished through the use of capacitors, which cause the light to gradually fade as the animation sweeps across the LED array. He decided to take a different route with his circuit, relying on PWM control of the LEDs instead.
Mike put together a simple circuit using an ATmega168, a handful of resistors, and of course, an array of LEDs. Utilizing interrupts and PWM, he was able to accurately recreate the iconic light sweep without the use of any capacitors. One big benefit to his design aside from the lower component count is the fact that he can easily adjust the speed of the sweep as well as the fading properties with a few small code tweaks.
Be sure to check out his blog at some point, where he shares his code, some circuit diagrams, and plenty more details on how his scanner was built. In the meantime, take a look at the video below to see the result of [Mike’s] work.
Rather than use 74HC595 for expand-ability you can charlieplex them instead. eg http://wiki.032.la/nsl/Cylon_III
Wouldn’t you be releasing your inner Kit?
I mean, if you really want to split hairs it’s your inner KITT: http://en.wikipedia.org/wiki/KITT
Michael Knight was a Cylon, didn’t you know?
You have a point, but if we’re talking semantics, KITT didn’t exactly construct himself – someone had to build that scanner into his front end.
That said, the title is still not totally accurate since we all know Michael Knight was likely too busy drunkenly scarfing cheeseburgers off his mansion floor to build a car like KITT. Does anyone happen to know who *really* constructed the car, as far as the show’s storyline is concerned?
They don’t mention it, so it’s most likely KITT gets built the same way every secret organization gets things built. By laborers who build/install components and aren’t informed of the true scope of what they’re working on.
Woo hoo arduino larson scanner shield
Where did you see an Arduino here?
I’m guessing it was a joke. Aimed at the crowd that “wants to learn electronics, but is too lazy to actually learn electronics so they use an Arduino with a shield” to make their projects.
That said, I built a traditional larson scanner a few years back with a PIC12Fxxx, it worked quite well. I’ll have to write a PWM scanner some time.
Sorry, here is the Arduino Larson Shield: http://rayjk.com/articles/larson-scanner-arduino-shield
I also resent the remark that people who use the Arduino are lazy. I cut my teeth on Assembly language on a Commodore 64 and a simple to use platform that makes it easy to whip up hardware and software projects is a good thing. If people truly want to learn they will ask the questions and want to understand what underlies the Arduino
There’s no fading in the trails. (: