Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 1.19 KB

README.md

File metadata and controls

23 lines (12 loc) · 1.19 KB

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