Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 2.75 KB

README.md

File metadata and controls

49 lines (32 loc) · 2.75 KB

Motion Detection System with M5GO, PIR Sensor, and SMS/MMS notifications

Developed with MicroPython
Micropython Logo

Developed with M5GO kit
M5GO Kit

How to use?

  1. Follow manual instructions to plug the Motion sensor with appropriate wires into the ESP32 device.

  2. Create a Gmail account (or use an existing one).

    • Turn on two-factor authentication and obtain an app password. It should be in this format xxxx-xxxx-xxxx
  3. Connect your M5GO device or ESP32 board. Click the connected button in the bottom-left corner and ensure the connection is successful.

  4. Visit m5stack website and insert main.py into the file.

  5. Add the environment variables into the appropriate fields. Choose the appropriate domain name for the sender_email:

  1. Name the Python file main if it's not already. Then run the main.py and test if it works.

    • 1 means motion detected
    • 0 means no motion detected
  2. Change M5GO device into APP Mode -> Reset Device -> Go to Programs -> Scroll down and select the main.py file.

    • Since you are in APP mode, the device will run main.py whenever the M5GO device is online.

How does the motion detector work?

The PIR sensor detects the heat emitted by a person or object, and this detection signal is sent to the microcontroller, which then sends an email to the specified recipient.

PIR sensor image
PIR sensor

GitHub Stats

Commits Forks License: MIT

GitHub Profile

GitHub Profile