Skip to content

Micropython script for emailing notification of PIR motion detect.

License

Notifications You must be signed in to change notification settings

charkster/motion_detect_mcu_wifi_email

Repository files navigation

motion_detect_mcu_wifi_email

Micropython script for emailing notification of PIR motion detect.

Works great on $5 Seeed Xiao ESP32C3, and ok on $6 Pico W (it's slower because wifi is an external module).

umail.py needs to be saved to the MCU board (as it is imported).

The sender gmail account needs to be setup for App Password Sign-in

I used the $2 Adafruit Mini Basic PIR Sensor

I rename the script "main.py" when I save it to the MCU (boot.py runs first, then main.py).

The PIR sensor has GND connections for pins 1,2 and 3.3V for pin 3. The detect signal (alarm) is pin 4 and is active-high.

Email message has timestamp from wifi NTP time.

Sample email notification:

picture

picture

About

Micropython script for emailing notification of PIR motion detect.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages