Note: The key to this project is the delay. You could just wire the horn to the button and I am sure you would get a lot of people to jump. Add a delay to the horn and when they turn their back, the real fun begins! Honk!
You can find this build on the MAKE blog, along with other really cool Halloween projects and contests.
Remove these ads by
Signing UpStep 1: What you need
- Aduino
- ProtoShield
- Servo
- Wire
- Pumpkin - Real, plastic or foam
- 12Volt battery
- Car horn - $7 at local car shop or junkyard
- Buttons and/or switches
- LEDs - Any color, but I like orange
- Heat shrink tubing
Tools you need:
- Soldering Iron
- Pliers
- Pumpkin cutting/carving supplies
- Glue gun














































Visit Our Store »
Go Pro Today »




p.s. i watch all your videos on youtube for the maker shed lol
Justin and Elizabeth
When you push the button you EXPECT something scary to happen. The horn can't go off until you're sure that the button doesn't do anything scary.
-Andy
main(){
setup();
while(1){
loop();
}
}
Also, is there a chance you could press the button so fast that the code doesn't realize it was pressed. In other words the button was pressed and released while the treat() function was running? Or in practice is that not a problem?
You do need a "void setup()" which is run 1 time at startup. Also, you need a "void loop()" which is run over and over after setup. That's the basics, there is a lot more, but it's all really easy.
I made an intro to Arduino video here. And another one, and another, and another, and more ! :)
As far as pressing the button and it not registering because of the program running a function. Yeah, I it can happen, but it was not an issue. It's a honkin' pumpkin, not an autopilot! Haha!
That is so simple, yet very very cool!
I really like your project!
And yea, I got a bit shaked when I was watching the video for the first time! xD
I might make one for my self!
Thanks!
rate: *****