Self Defense Hat
THE SOLUTION:
Self defense weapons are very helpful in letting people defend themselves. Accessories like bear spray, brass knuckles, and tactical flashlights can save lives everyday. But sometimes, it's not enough and you need stronger self defense tools. That's why I invented the self defense hat, which is a hat with a stick on top of it and you can spin the stick and stab forward, aiming at the attacker. You can also attach other things like mace. This is very safe tho.
Supplies
For this, you'll need an arduino, 2 servos, a hat, a stick, 2 battery packs, tape, and jumper wires, and a joystick module.
Wiring
Ok so the mini breadboard has the gnd row where all the black wires go, and the positive row where all the red wires go. I just connected the joystick module to the arduino normally first. and then connected all the gnds of the 2 servos and the batteries in the same row. Their positive wires also go to the same row, except one of the batteries power the arduino so its positive goes into the vin pin. the other battery powers the 2 servos. The yellow wires of the servos are the signals and go into any digital arduino pin. js use gemini
Set Up
The bottom servo is the x-axis for turning and the top servo is for stabbing forward with the mace.
Tape a box to a hat to put everything on there.
Coding
Import the libraries define the two servos set the button thingies and the setup defines where the thingies are attached i set both servos to write at 90 at the start of the program. Then it reads the joystick and ignores tilt with the if statement and then the map() function stops your joystick from going too far left or right because the servos are limited to 180 degree movements. the reading variable is for your button press to stab forward or backward. 0 is when its up in the air and 180 is when it stabs forward. i cutoff some delay statements and defining lastState to reading.
Tape Everything Onto the Hat
tape everything to the hat. maybe ziptie the servos cuz they shift around really hard.
Stabbing
You tape a stick to a servo horn and then at the end of the stick you can attach whatever you want to defense yourself with.
Hi
This project contributes to a better world technologically and socially because it helps people defend themselves and it makes people safer. I think this hat would be packaged into self-defense kits and would just be another way for certain people to feel more secure in public. This is really helpful invention.