The Jump-Scare Machine: DIY Animatronic Spider with ESP32

Spider dropper

My older sister has lived in the apartment upstairs from me for the past 4 to 5 months. She has been telling everyone that “he don’t even bother me”, and that “he just drops off breakfast and leaves”. Well that is all going to change because not only am I a considerate little brother and would help both my sisters with anything, I am also a little brother for F sake. 

We have a shared laundry room and it just so happens that it is on the same floor as my apartment and it is literally next door. This will be my spot to place the device.

This is not a step by step guide on how to build this, I’m just showing you how I built it. But I will include the code I used.

            Bill of materials

  • Esp32 
  • PIR sensor
  • Drv8833 motor driver
  • Gear reducer motor
  • Battery 
  • Tp4056 battery charger mod
  • 18awg wire
  • Toggle switch
  • Mono filament fishing line (i used 12lbs test)
  • Fake spider
  • Perf board

This is basically everything I used for this project minus the blue battery.

I had a mini power supply that I built a while ago that had the tp4056 module, positive/negative inputs, toggle switch, and soldering points. 

Also I did not use the breadboard for its intended purpose, it was just there to keep the Esp32 from sliding around while soldering.


I got the ball rolling by soldering all of the positive wire to its designated locations. I made sure the battery was off with the toggle switch. 


I got all of the positive wires soldered to the positive terminals. I triple checked every connection before moving on to the negative wires. 


With the negative wires all soldered it’s now starting to look like a birds nest of wires and I still have one component left to solder.  At the same time while soldering all I thought about was wire management and how I was going to deal with all of these wires. All of my other builds that I have done were only around 4 total wires and maybe 2 boards. You’ll see later on that my wire management looks like shit.


Got the motor soldered up and now it’s time to flash the board and see if this thing works out not. Just an FYI/BTW I use gemini to help with the code, I could definitely code it myself if i wanted it to take multiple days and infested with bugs. So, i took the path of least resistance. With that said, now is the time to dial in the timing of the spool like how many seconds the descend and ascend should be and how long the spider stays suspended. Along with all of that I need to dial in the sensitivity and range of the PIR sensor. So far everything seems to be running great, I have decent at 6 seconds and ascend at 6 seconds also. I have the spider dangling for about 15 seconds and a 30 second lock out timer so the spider doesn’t keep triggering.


I found a small hex nut that had some good weight to it and small enough to serve as the abdomen of the spider. The reason for the nut is to serve as a weight to keep some tension in the spool as it goes up and down. If you fish like I do and use a bait caster then you know how bad a birds nest can be. I also wanted something magnetic incase I wanted to use like a magnetic release feature.


I used jumper wires for the legs, the wires are solid core so that helps when trying to manipulate the legs to look extra creepy. I wish i secured the legs on better, they don’t fall out(for now) it just looks rushed(which it was for some reason)


Airbrushed the spider black and it is starting to look convincing. I wanted to add more detail like different pops of color but I wasn’t feeling the extra work. I should have at the very least added some googly eyes.


Here is everything that I have to somehow neatly pack into a small container minus the fishing line. I know that I have to re-solder a lot of wires to keep the internals neat. Doing these projects have helped me with planning out my projects. I had learned that at every stage or step in the build i would have to take a step back and plan the next part of the build. Writing it down and drawing it out has been a major help in planning my projects.


I printed a simple box out of petg with ports for the PIR sensor, toggle switch, and a hole for the fishing line. There was no reason for using petg, it was already loaded. I’ve had this Anycubic Kobra s1 for over a year now, i got the combo with the ace pro. I have had almost zero problems with the printer itself, the ace pro tends to be the source of the issues, but i mainly use that as a dry box because it has a drying feature that works great. I usually only print in one color because i hate having too much waste not only with filament but with time. a simple 4 color print could take almost a whole day vs a few hours with just one color.


Got these 2 fitted and secured in place. In hindsight I realized I should have turned the sensor 180 degrees so I can see the 2 dials that are responsible for sensitivity and tabs. Luckily I’m able to fit a small flat head from the back of the dial in order to make adjustments.

The Esp32 has pre soldered pins so I had to put some nylon standoffs in place as to not ruin any of the pins. I got a lot of wire clipping, soldering, and wire tucking to do. Also I should have turned the Esp32 the other way to access the usb through a port, now I guess I’ll just leave the battery loose so I can take it out in order to reach the usb.

Need to make a home for the motor to live. The motor needs a platform so the line can remain central to the box port.


Got the motor platform printed and the motor mounted. But looking at the reel, it looks like the line could slide off at any moment there is slack in the line. I think a guide/enclosure should do the trick.


Ok now I have the motor spool enclosed to prevent any line from wondering off. The enclosure is not glued or screwed in, I had 2 springs on the left side of the enclosure to keep it in place but all that did was add pressure on the motor that I didn’t need. The spider is tied up and ready to go. I wrapped a black hair tie to the spider so I can tie on the line. This gave it a bit of stretch when the spool over reels alleviate any stress from the line 


I threw this clear petg sheet over the electronics to protect the parts but also showcase my work. 

This project took an afternoon to make, around 5-6 hours and most of the time I was just planning and designing so probably even less time.

 I hope you enjoyed my work and I hope this inspires you to try this out implement something like this in your projects.

Thanks for sticking around!

This post may contain affiliate links. If you buy through them, I earn a small commission at no extra cost to you, which helps fund parts and tools for future builds. Appreciate the support!

Leave a Comment