Search

Madness Machine

About the project

A small project with a single evil purpose, fooling people into checking their phones.

Items used in this project

Hardware components

Raspberry Pi Zero W Basic Pack Raspberry Pi Zero W Basic Pack x 1
Toggle Switch, Metal Lever Toggle Switch, Metal Lever x 1
Vibrating Mini Motor Disc Vibrating Mini Motor Disc x 1
LiFePO4wered/Pi+ LiFePO4wered/Pi+ x 1
Wires Wires x 1
Plastic Enclosure, Project Box Plastic Enclosure, Project Box x 1

Hand tools and fabrication machines

Soldering iron (generic) Soldering iron (generic) x 1
Drill / Driver, Cordless Drill / Driver, Cordless x 1

Story

Project Video

Box

We need something that can hold all our electronics, yet is simple to hide. A small electronics box from the local hardware store is the perfect candidate.

The only modifications needed are drilling a hole in the side, and removing one of the screw holders to make more space.

The changes needed really depend on your box, so as long as all the electronics fit, and you can attach the toggle switch(see next step) somehow, you're all good.

Hardware

With our box complete we can start adding some hardware. We start with attaching the toggle switch to the box, using our freshly drilled hole.

After doing some basic setup on the Raspberry Pi Zero and charging the LiFePO4wered/Pi+, we can assemble the two. They each have their specific role, the Pi Zero executes logic and the LiFePO4wered/Pi+ provides power.

Last but not least, we solder the toggle switch and vibration disc connections. Normally it's best to use jump wires, but we don't have enough space, so instead we directly attach them to the Pi.

Code

Now we move on to the code itself. It's written in python and included below. To give you a good idea of how it works, the main logic is as follows:

Check if the toggle switch is on

  • If so, turn on the vibration disc for two seconds, and wait a random amount of time (between 60 and 300 seconds)
  • If the switch is off, do nothing

With the code written and working, we can complete the build by mounting the top.

Result

With our irritating invention complete it's time for the final, and best step, causing mayhem!

Just toggle on the switch, hide the devious device and enjoy the ensuing spectacle.

Schematics and circuit diagrams

Wiring

Code

madness.py

Credits

Photo of 8BitsAndAByte

8BitsAndAByte

We’re Dane & Nicole, two makers that create tremendously terrible tech, which we happily share with you on our channel! https://www.youtube.com/c/8bitsandabyte

   

Leave your feedback...