The Cylon - Larson Scanner Kit - With Charlieplexing!

39K18326

Intro: The Cylon - Larson Scanner Kit - With Charlieplexing!

This instructable covers building the kit that is the result of several builds, and many iterations. If you want to learn more about previous attempts and or the design process comment below and I'll dig out the older (and much much smaller) versions and also go through the design and manufacture process too. But this is really a kit build but of a kit I've built.

I've always wanted a Larson scanner. Growing up watching shows like Battlestar Galactica, Knight Rider and even the A-Team (there was a gold Cylon in it, Face does a double take at it which was a nice touch!) it's hard not to have fallen in love with the hypnotic bouncing light invention of Glen A. Larson.

STEP 1: Gather Your Tools and Components!

For this instructable you're going to need: Also:
  • Super Sexy Open Source PCB (see link to github)
  • Twelve LEDs of your Choice (choose red they're best for these!)
  • Four appropriate resistors (we used 39 Ohm)
  • 0.1pF Decoupling Capacitor
  • AA Battery Pack (or something to give you at least 3V)
  • 3x2 Header
  • ATTiny2313 preprogrammed with the good stuff (link to code here too)

All available in a neat package from us at phenoptix




STEP 2: Let's Get Cracking!

First grab those resistors! They're the blue things with the stripes. You'll want to bend them like in the picture below, then push them through the board where it has rectangles with Rs in them. Once they're through bend the legs back so they stay in the holes without too much movement. Do this for all four resistors and for your own sanity line them up the same way, or make a conscious effort to alternate them. It will probably annoy you if you don't. Worse it will annoy me, so please make sure you arrange them nice!

Got that? Now head back in time about 3 minutes and plug in your soldering iron. You want the tip nice and hot, so it will melt a bit of solder without hesitation, might need to clean the tip a bit with your scouring tip cleaner if you've not used your iron in a while / ever.

Use the tip to heat the pad (that's the metal bit on the PCB) and the leg of the resistor a little bit then push the end of the solder onto where the leg and pad and soldering iron meet. The solder should flow into the hole and around the leg of the resistor. Pictures of that are below. Now repeat for all the legs. You want to get enough heat into the pad and the part to allow you to melt solder in their vicinity. Resistors are hard to damage with heat so get your technique right here. Don't worry though you're going to have more time to practice before we get to anything that you can easily kill with a bit of heat.

STEP 3: Just 4 Resistors? It's Charlieplexing!

Yes only 4 in this project and those take care of all 12 LEDs due to the way the LEDs are wired. As mentioned at the start of the instructable the LEDs are charlieplexed. 
What is charlieplexing though? Well Wikipedia tells us it's a technique proposed in 1995 by Charlie Allen at Maximum Integrated which uses the tri-state logic of microcontrollers to gain efficiency over traditional multiplexing. Still at a loss? Well lets look at Traditional Mulitplexing.

This is a technique you'll see all over instructables, from the awesome LED matrix to just using a 7 segment display. There is a great instructable on the technique here. Essentially you selectively power specific LEDs by wiring them in a grid pattern. Lighting individual LEDs and relying on persistence of vision to give the illusion of control of the entire matrix at a single time.

In charlieplexing you're doing a similar thing, however now you're relying on the LED working in just one direction and the fact that your microcontroller can switch the direction of the current. Imagine putting two LEDs in circuit in parallel but with opposite polarities (see image ref http://en.wikipedia.org/wiki/File:2-pin_Charlieplexing_with_common_resistor.svg used with thanks).
Now you can light one LED or the other but not both at the same time. Fortunately for us though the microcontroller is quicker than the eye and by switching the polarily of the power supply quickly it can appear that both LEDs are lit.
Expanding that to three pins looks a lot more complex but you can already see the advantages it affords us. A resistor per pin and now we can control 6 LEDs! (picture ref http://en.wikipedia.org/wiki/File:3-pin_Charlieplexing_with_common_resistors.svg)

In this project we've used 4 pins and 4 resistors and the schematic can be found on our GitHub.


STEP 4: Let's Add Some Light!

Or lights to be precise!

Get your lovely big LEDs and insert them so the shorter leg is on the outside edge of the board. Now turn the board over and bend the legs back like you did with the resistors. Repeat another 11 times. Now it's time to introduce them to your soldering iron. 24 perfect (or at least functional) joints later and we're ready to turn the page.

STEP 5: Pop a Cap in It...

Next we add the ceramic capacitor. This is a decoupling capacitor, it's just there to make sure everything plays nice electrically. It's not polarised (or polarized for you z obsessed colonists!) so can go either way. Push it through the board as shown, bend the legs back, solder in place and snip off the legs!

STEP 6: Header It In...

Now attach the programming header. You'll want this for reprogramming the Cylon. A handy tip for soldering these in is to hold a single or even two of the pins of the header with your finger tip, whilst soldering a pin that you're not touching! Solder all six pins whilst not holding the one you're heating up.

STEP 7: I Got the Power

and so do you! Now we're attaching the battery pack. There are strain relief holes on the board so thread the wires through from the back leaving plenty of slack and push the tinned ends into the holes marked + and -. Plus is for the red wire and minus for the black. It tends to follow the rule that the lighter colour is positive. 
Flip the board over and solder the wires to the pads on the board.
Almost there!

STEP 8: Last and by No Means Least!

Now you're an expert soldersmith / solderizer with all the other joints you've soldered we're going to attatch the ATTiny2313!
This is the brains of the operation. If you're going to have to "take down" the Cylon you're building, this is where to aim, it will blind it at least.
Sorry back to the task at hand. You might need to bend the pins together slightly for it to fit into the holes. One method of doing this is to put the pins in on one side and use something straight to bend the other side (you can use another Cylon PCB if you wish). Once you've done this the chip will pretty much stay in place, if not reinsert it and bend over one of the corner pins in the back.
Now get soldering. Try as much as you can to keep the heat you transfer to the chip at a minimum. Solder pins at opposite ends - take a break half way through - heat can be a killer, take your time!

STEP 9: The Moment of Truth!

Add two AA batteries to the battery box and switch on!
Hopefully all is well and your the "eye" of your Cylon has come alive! If you have a single dodgy LED, check the solder joints on that LED or possibly its polarity. Three LEDs not working at that could be a joint at your resistors.
Now attach it to your favourite tame killing machine.

25 Comments

All this guff about - "Commercial" WHAT UTTER RUBBISH!
This is a great little project for kids to begin with and I for one would like to see more of it.
Everything is available to us and you developed a kit for those that need it because of time restraints or access or simplicity.
GOOD JOB I say, purists are invading this site like a plague.
What about the 3D printer kits etc from this site??
Some people have nothing better to do than criticize others.

AAA++++ from me, and my kids who will build this one. :-)
Thanks so much for your comment. We'll be adding some more explanation of our design choices to help builders understand why they're doing what they're doing.
I've seen many circuits over the years to reproduce this. Does anyone know the actual original circuit used in the car?
I can tell you one thing. It used light bulbs, not LEDs. Back then LEDs were not bright enough, and there were 8 of them.
I can tell you one thing. It used light bulbs, not LEDs. Back then LEDs were not bright enough.
The original would have been an analogue circuit http://www.100randomtasks.com/knight-rider
Cool! Unfortunately for me, I noticed that you are in the UK so my credit card is going to take a battering!
Our shipping is pretty cheap, but also you can get the PCB made from OSHPark or similar locally, the rest of the components are easy enough to source ;)
The kit makes it easy but I built one on a PC board and parts from Radio Shack. Just follow the instruction and use good construction skills. It's not hard. So he's not just marketing the kit.
thanks for this kit I have to say for someone who has never held a soldering iron I found the instructable very useful!
so glad you liked it! I love soldering, it's such an empowering skill. Would love to see some pictures of your handiwork!
it doesnt let me post pics here unless you guys know how?

Now, as for me, I have no problem with any commercial company sharing their designs and methods by means of an Instructable (providing they are making it all available, as you do)b - it's how some of us learn!!!

If I could open the schematic and board files from the zip, I'd be even happier...!!!

I'm using Eagle 6.4 and the message I'm getting on either is:

Loading /home/duncan/Projects/Larson-master/Larson.sch ...

Error:

line 1, column 1: Start tag expected.

Any ideas???

Hi Duncan,
We design in KiCad! Let me know how you get on.
little help I have put this kit together but its not lighting up at all?
Head over to our forums at forums.phenoptix.com and we'll get you sorted!
This Is simply a sales pitch to buy their kit to build. Nothing more.

Shame on you.

I wonder if Betty Crocker will list an advert to buy their cake box so you can make a chocolate cake. It is the equivalent to this "instructable".

Step 1: buy our kit.
Step 2: follow instructions on box.
Step 3: learn nothing more than how to read

This is a build of one of our kits. You'll also notice we provide the schematics and PCB designs on our GitHub - so if you wish you can make and even sell your own. I've also said that if anyone want to know more about any part of the design process please ask and we'll document all that too. You'll know that we've previously posted schematics to help people understand charlieplexing more easily. It would seem our posts have been the only things to make you interact with instructables, so we can't be all that bad.
i can bet there are a lot of people here using instructables as a marketing tool , if you have a design for instructables great should be no links to your company ,i can bet all your designs has links to your company
also this is a sales pitch,people like you should be removed from instructables
first i would if you got the rights from GLEN LARSON and second his is much cheaper
More Comments