Thieves Alarm
Recently a wave of burglaries started in our neighborhood and we decided to take action.
Even when we are not home, we will know if anyone has broken out and we will also get a recording of the burglar from the time of the burglary.
Our distance surveyor will check whether the distance has been shortened since someone has entered the house. If the distance is short, an alarm will sound and the microphone starts recording.
Who are we
Nimrod and Noam, Computer Science and Entrepreneurship students from the Interdisciplinary Center (IDC), Herzliya, Israel.
Supplies
- 1 x ESP8266 board
- 1 x Micro-USB Cables
- 10 x jumper cables
- 1 x Ultrasonic sensor
- 1 x speaker
- 1 X ADMP401 Micropon
- 1 x resistor
Let's start by connecting the connections
Ultrasonic:
- VCC to 5V
- Trigger to D7
- echo to D6
- GND to GND
Speaker:
- + to D7
- - to resistor
- resistor to GND
Micropon:
- VCC to 3.3 V
- GND to GND
- AUD to A0
Install Arduino IDE:
https://www.arduino.cc/en/Guide/HomePage
Install relevant "drivers" for the ESP8266 boards to your Arduino IDE:
https://randomnerdtutorials.com/how-to-install-esp...
Adafruit
Create an account:
Click on Feeds and add 2 feeds:
Distance and Sound.
Then, click on Dashboard and create a new dashboard.
Enter the dashboard and add 2 blocks:
+ Gauge block to Distance.
+ Line Chart block to Sound.
Save it.
Our code is attached.
You can open the code in Arduino.
Don't forget to adjust WiFi parameters to your own WIFI parameters.