Intro: Arduino Cylon Scanning Eye

This is a Larson Scanner which is what is used to make the eyes of the centurion cylons in Battlestar Galactica. I used 11 red LEDs and an Arduino UNO to make it. All of the materials used for it were the following:

To make it more customizable, and to add some input for it I added a potentiometer to control the speed of the scanning. Here is a video:

To build the circuit doesn't take much time or knowledge. Just connect the LED's cathode to ground on the breadboard. Then connect each LED to a resistor on the breadboard, and make the resistors connect to the Arduino pins. Connect them in order with the line of LEDs in accordance with the numbers of the pins. Start with pin 2 and connect them in order. Then connect the ground pin on the Arduino to the ground rail on the breadboard to connect all the LEDs to Ground. Then all of the LEDs are connected and its time for the potentiometer to be connected.

To connect the potentiometer take the outer two wires and connect one to ground and one to 5v. Which one doesn't matter the only difference is that you will have to turn the potentiometer a different way. Then the middle wire you want to connect to pin A0 on the Arduino. Now the connections are all done and its time to move on to the programming!

Here is the code:

int ledPins[] = { 2,3,4,5,6,7,8,9,10,11,12 }; // make an array of the pin numbers int pinCount = 11; // variable for number of LEDs int timer = 10; // delay in between LED on and off