Skip to content

ThePositronCode/ESP32_alarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ESP32_alarm

Using an ESP32 Lolin dev board to build an intruder alarm

Hardware

The hardware list of the components used for this project is given here, but you are free to use yours :

Software

This project is mainly based on the IFTTT website, specially designed to provide may ways to handle IoT connections. Here are the instructions about the software setup:

  • Arduino IDE

    • Download and install the Arduino IDE
    • Add the ESP32 Lolin board to the IDE:
      • Add the link: https://dl.espressif.com/dl/package_esp32_index.json via File>Preferences>Additional Boards Manager URLs
      • Download and install the ESP32 board files via Tools>Board:>Boards Manager...> search for "esp32 by Espressif Systems"
      • Select the Wemos Lolin32 library via Tools>Board:>Wemos Lolin32
    • Select your USB com port via Tools>Port:
  • IFTTT sevice

    • Create your account on https://ifttt.com
    • Subscribe to the Messenger Service via My Applets>Search: and link your Messenger account
    • Subscribe to the Webhooks service My Applets>Search:
    • Create your Applet via Create and link the two previous sevices between them. Make sure to give the same rising event names between your webhook service and your applet.

Power consumption

The ESP32 has 6 différent states :

Here we will use the active and deep sleep modes in order to save as much power as possible, which can theoretically reach an average 7 month lifetime with the hardware I advised to use. After that, the battery will have to be recharged.

About

Using an ESP32 to build an intruder alarm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages