Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 756 Bytes

File metadata and controls

32 lines (24 loc) · 756 Bytes

SimpleMotionRelay

image

Features

  • Light on/off on detect motion
  • Working in several cores ESP32

Build & Upload (PlatformIO)

pio run                 # build
pio run -t upload       # flash the board
pio device monitor      # serial monitor (115200 baud)

How to connect components

ESP32-C3 Board RCWL-0516
GND GND
5V VIN
D0 OUT (with pull-up resistor 10kOm)

Also, you can add capacitor to C-TM contact on RCWL-0516 for regulate the repeat trigger time.

ESP32-C3 Board Relay 5V
GND GND
5V VIN
D1 OUT
5V COM