Skip to content

ESP32-CAM based Presence sensor (ld2410) that controlls Wiz lights via udp withouth using cloud services.

Notifications You must be signed in to change notification settings

idegre/ESP32-Presence-Sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wiz Radar

This is code for the ESP32-CAM that implemements the use of the ld... radar in order to be used to turn

Instalation

Secrets

#define WIFI_SSID "your ssid"
#define WIFIPASS "your password"
#define WIFINAME "Presence Sensor"
#define NETWORKRANGE 1
#define LIGHTS_ARRAY {"lamp mac address", "lamp 2 mac address", "lamp 3 mac address"}

NETWORKRANGE is the third block in your private ip (ex: 192.168.1.1 vs 192.168.0.1)

Programming

This programs normally into board.

here are the pintouts:

#define RADAR_RX_PIN 12
#define RADAR_TX_PIN 13
#define RADAR_OUT_PIN 2

Rest API

The code includes a very basic server with a few endpoints:

  • /LED: turns on the front LED on the board
  • /img: returns one photo from the camera
  • /radar: returns radar info as a json (usefull for debugging)

More info

You can read more and find the files for the case here

About

ESP32-CAM based Presence sensor (ld2410) that controlls Wiz lights via udp withouth using cloud services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published