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.

Comments

  1. charliex says:

    Rather than use 74HC595 for expand-ability you can charlieplex them instead. eg http://wiki.032.la/nsl/Cylon_III

  2. Tom the Brat says:

    Wouldn’t you be releasing your inner Kit?

  3. PJ Allen says:

  4. mattster says:

    Woo hoo arduino larson scanner shield

    • ftorama says:

      Where did you see an Arduino here?

      • Spork says:

        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.

  5. Mattster says:

    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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 96,449 other followers