Here's a little Halloween prank you can play on someone! What this is it's a little container of some sort and when a door opens, a spider will drop down and scare whoever walks through the door!
How it works is by using a Sonic distance sensor to detect when the door is opened, and when the door gets opened it uses a servo to slide open the lid to have the spider drop out!
So far I only have the prototype completed, using a toilet paper roll as the container and a cut up post card for the lid. It's really pretty easy and I can't wait to try it out on some unsuspecting people!
So what you need is:
Sonic Sensor (I'm using the HC-SR04)
Hot glue gun or any type of glue
I created a Fritzing image for the first time ever to show you how it's all connected.
The code for the project can be found on my github, along with all of my other projects I've made so far.
Now here's my prototype of this project! (I don't have a fake spider and I haven't mounted this anywhere fancy yet, except underneath my desk.)