Detailed Tutorial Shows How To Unleash Your Inner [Michael Knight]

developing_a_larson_scanner

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.

[youtube=http://www.youtube.com/watch?feature=player_embedded&v=E2wsR8hgIjI&w=470]

12 thoughts on “Detailed Tutorial Shows How To Unleash Your Inner [Michael Knight]

    1. 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?

      1. 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.

      1. 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.

Leave a Reply to charliexCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.