Halloween Fading Eyes Garden Creature

by circuitmania in Circuits > Arduino

7069 Views, 12 Favorites, 0 Comments

Halloween Fading Eyes Garden Creature

IMG_20101030_200747.jpg
Today I will show you how I made my arduino garden gnome creature for halloween this year.  I created a cup with eyes that fade in and out for that perfect touch on halloween.

Materials

IMG_20101030_200211.jpg
All the materials you will need are as follows--
     -High brightness led of your color choice, I tried with Blue, Yellow, and White. they all work well
     -Styrofoam cup
     -Arduino board
     -Computer with programming cable
     -Paper

Prepare the Styrofoam Cup

IMG_20101030_202502.jpg
IMG_20101030_202509.jpg
in this step, we will make the eyes and power connector.
 1) cut or drill the two holes about 3/4 of the way to the top if the cup is up-side-down.
 2) we will cut the rectangular hole in the back opposite the eyes and at the very bottom.

OPTIONAL: Cover the Cup

IMG_20101030_203152.jpg
If you want, you can cover the cup with a paper "jacket".  To make this jacket, cut a sheet of paper to the hight of your cup.  Next, wrap this around the cup and tape it in place and cut out the hole for power just like on the cup. 

The Arduino and Code

IMG_20101030_203849.jpg
To prep the board for code, insert your led with the anode on pin 9 and the cathode on the ground rail. 
      
       this part is the code. it is fairly simple to understand and is as follows or can be found under the examples in the arduino software.


int ledPin = 9; 

void setup() {

}

void loop() {

for(int fadeValue = 0 ; fadeValue <= 255; fadeValue +=5) {

analogWrite(ledPin, fadeValue);

delay(30);
}


for(int fadeValue = 255 ; fadeValue >= 0; fadeValue -=5) {

analogWrite(ledPin, fadeValue);

delay(30);
}

Closing It All Up

IMG_20101030_205125.jpg
IMG_20101030_205103.jpg
The final part- closing the bot up.  the cup goes over the arduino.  The led creates an awesome effect.

Final Preparations

play with the jacket or move the led to fine tune and fire up the little creature.

have fun this year on halloween and please vote for me in the decorations and props halloween contests as this is my first instructables. 
HAPPY HALLOWEEN!