Instructables

Halloween fading eyes garden creature

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.
 
Remove these adsRemove these ads by Signing Up

Step 4: The arduino and code

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);
}

Step 6: 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!
tinker2342 years ago
wow amazing job on idea of that n the bush with snorting and hissing creeps me out i like it maybe a cheap massage wand modded could make a fake bush shake