This is a code for a basic pepper spray alarm system
- Arduino, can be baught at this link: https://store.arduino.cc/ 5V output needed to activate 5V relay
- Arduino IDE, download at this link: https://www.arduino.cc/en/Main/Software
- 5V relays X2
- Pepper spray
- Motor to depress pepper spray lever
- Siren
- 12V battery
- LED's(Red, Green)
- 220 ohm resistor X2(for LED's)
Clone repository:
git clone https://github.com/potgieterbt/Arduino_Pepper_alarm_system.git
Open code in Arduino IDE:
-
Right click > open with ... > Arduino IDE
Upload code to Arduino:
-
ctrl + u
If there are errors:
- make sure your Arduino is connected
- make sure you're using the right COM port #
-
Tools > Port > "Port in use"
-
- Select Correct board
-
Tools > Board: > "You Arduino model"
-