I wanted to make a set of spooky evil eyes that met the following criteria:
1. Eyes that fade on and off (pwm)
2. Random duration of eye on and off times without using a pot or other input control to make the effect more realistic
3. Ultra low cost mcu so I can leave it in the decoration without having to re-program or re-insert the mcu.
4. Small controll/power box to make mounting easy
So here is how I did it, and I am pleased with the result.
At any point in this instructable, you will be able to make substitutions to fit your needs or materials on hand. If you like this, vote for it and if there are suggestions, I welcome all ideas to improve it.
Remove these ads by
Signing UpStep 1: Spooky Materials and Tools Needed
5 sticks or pieces of wood for the base of the eyeballs
10 ping pong balls - white
High quality masking tape
Flat black spray paint
10 Red super-bright LED's
1 atTiny85
Solderable perf board
Screw terminals
20 or 22 Guage Wire
Heat Shrink
Black Silicone
Gel Super Glue
Super Glue Accelerant ---- this stuff is just plain useful. Now you have an excuse to buy some
Vinyl electrical tape -Black
4AA Battery Holder
4 AA Batteries - rechargable if you don't want to use a resistor
Tools:
Razor Knife
Drill & Bit
Wire Strippers
Voltmeter
Staple Gun
Soldering Iron
Arduino
Breadboard & jumper wires
Needle Nose Pliers
3rd Hand
















































Visit Our Store »
Go Pro Today »




There's going to be quite a few ATTiny85s in our front yard next week...this put yet another to good use : )
Please post photos of the project and the board.
I have just started with arduino and I used the given code and I'm getting 2 errors. They are: sketch_oct28a.cpp: In function 'void loop()': and
sketch_oct28a:53: error: expected `}' at end of input.
Any suggestions? Thanks
Try to add one at the very end of the sketch or try downloading the txt file and do a ctrl a and pasting it into the Arduio IDE.
Hope that works
If you are worried about current on the microcontroller it would be really simple to add a few cheap transistors to your output pins. A darlington array (ie. ULN2803) will work, and they have them at SparkFun.
If you want to take advantage of the two hardware PWM pins (according to spec sheet) you'll need to multiplex the connections to the multiple LEDs. There are various mux chips (ie 74HC4052) available, and they have some at SparkFun.
I don't work for SparkFun. I'm just a fan :)
You can also replace one of the AA batteries with some conducting part. I mostly use a bolt of the right length.
This would make the eyes appear larger, (ping pong balls are small) as while the eyes you made there are cool, their shape doesn't seem to stand out well at a distance (like in the vid) and just look like fairy lights.
If you mean them for close up decoration, then they'll be fine!
Also, when people/animals/er....monsters blink, it's usually faster, not fading in and out.
Otherwise, I'm totally loving this idea, even though the means to make it is totally beyond me, lol!
They're pretty freaky, I'll grant ya!
With the blinking, I wanted the stylized version of the eyes. If you wanted them to just blink on and off you can adapt the code. This is why I love using a micro controller versus just a 555 timer. You can change the code daily if you wanted without having to re-wire.
If you make one, post it, I am excited to see what people come up with!
I am not sure how to modify the pwm code to allow 2 sets of lights to fade on at once but it is worth a try.
You can easily change the code to just turn multiple pins on HIGH at the same time.
I just posted a schematic on step 8 that should make this more clear.
Could you use that vinyl dye paint thats made for plastics?