GithubHelp home page GithubHelp logo

cao_project's Introduction

LMK

Let me Know: A Security-Alarming device using ESP32

A simple security system that notifies the user if his safe/drawer/door is opened. The project is built primarily using ESP32 microprocessor and Magnetic Reed Switch.

lmk.png

Files integration Explanation:

Apart from committing changes and integrating different components in the same file, I maintained those different modules of the project into different files. So that while debugging, I can check functionality of each module separately.

Testing

  • The code in testing file was used to check the working of esp32, to light up and LED and confirm the pinout of my device.

WiFi

  • The file "WiFi" is used to simply connect the ESP32 to WiFi connection when it boots up. The code here contains a placeholder to enter your network SSID and password so it has to be replaced with your own before testing.

Email

  • This code now integrates the previous file, i.e WiFI connection as well, and its functionality is to send an email when ESP32 boots up. The content of email is a short html content.

door open alert

  • This is the main code file that contains all the modules combined. FIrstly I just included the code that would check if my reed switch is functioning properly or not. I used onboard LED to check that i.e. it turns on or off when the switch opens or closes. Then in the same file, I integrated code for WiFi connection and sending email. For email I have created an SMTP session and included ESp Mail client library. It requires you to define the email sender, app password, receiver's email, and subject. As for the content of the email, I sent html designed message to the receiver.

Reed Switch

The switch that I used is a magnetic reed switch. This switch comes in two types, normally opened and normally closed ones. The one I used is a normally closed one i.e. when the magnetics are close togother (or the door is closed) then the circuit is closed and opening the door opens the circuit and as a result signal is sent to the esp32.

- Note:
+ In order for this to work, you need to replace with your own credentials.
Add your own network SSID and password. And for email, add a sender email and the password
is not the actual email password, it is the one that is generated upon 2-step verification.
Then finally, also replace the receiver'e email address to your own.
Moreover, change gpio pin for reed switch according to how you connected the switch.

Future Scope for Improvement:

Adding LED's that blink upon triggers, and adding a buzzer alarm that sounds when someone opens the switch. I would like to add the functionality that the pictyre of the intruder is captured as well and is sent along with the email as an attachment. For that, an esp32CAM would be required.

cao_project's People

Contributors

mashal02 avatar

Watchers

 avatar

cao_project's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.