A school project model built to emphasis on our day to day security. In this model if anyone interrupts the laser then a picture of the intruder is taken and sent to a heroku flask server, which with the help of flask mail sends a mail to the owner with the picture of the intruder. This repo is a resource storage of our original physical project model made to serve the purpose of recreating the original model in future or improving the same model. This repo is not meant to be updated any time soon so don't expect any elaborate support from us, but contributions and improvements from your side are welcome.
- A lot of jumper wires M-M M-F F-F
- ESP32_CAM AiThinker Board with OV264
- FT232RL USB to UART TTL
- Buzzer module
- Laser module
- LM393 LDR module
- A power supply (5v) if required
- Breadboard
- Pushbutton
- Resistors 1k ohm
For higher resolution check the hardware folder
Upload the esp32_cam.ino to the board after updating all the dummy variables(wssid, wpass, server_url) and make the connections properly with the wifi.
The server is ready to go. Just add some env variables, enable DisplayCaptcha and Allow less secure apps to your sender gmail account and you are good to deploy
Environmental variables
RECIPIENT_EMAIL receiver@gmail.com
SENDER_MAIL sender@gmail.com
SENDER_PASS anything1234
For heroku Buildpacks required
heroku/python
https://github.com/heroku/heroku-buildpack-apt
now just deploy.
Any soft damage can be fixed but not hard. This project contains hardware elements and any damage to any hardware or your assets due to any misconnections will not be any of our responsibility. Only recreate this if you know what you are doing. Also to be safe try testing the circuit with 3.3v before testing it with 5v.