Skip to content

oyola0/esp32-blinds-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esp32-blinds-control

This project is useful for controlling the blind. Related to another jarolift domotic project

Required

Variables defined in the config.h file

Variable Description Default
WiFiSSID Wifi SSID
WiFiPassword Wifi password
serverName Exposed API http://SERVER_IP:8080/api/
boardUserAgent User Agent Name ESP32 board (kitchen blind)
binVersion Binary version 2020-08-25.bin
gpioBatteryLevel GPIO to read the battery level 34
defaultChannel The channel that you want to manage 2
gpioUpButton Up button GPIO 15
gpioUpLed GPIO for Up button LED 8
upChannel Up channel LED 1
gpioStopButton Stop button GPIO 2
gpioStopLed GPIO for Stop button LED 19
stopChannel Stop channel LED 2
gpioDownButton Down button GPIO 4
gpioDownLed GPIO for Down button LED 21
downChannel Down channel LED 3
BUTTON_PIN_BITMASK GPIOs Mask for several wake up 0x8014

How does it work?

From deep sleep mode, wakes up when any button is pressed

  1. Connecting WIFI (blinking all the LEDs until the wifi is connected)
  2. Checking battery level
  3. Execute the button pressed command (up, stop, down)
  4. It will wait for another button to be pressed for 20 seconds
  5. Checking OTA updates (blinking stop button during the process)
  6. Return to sleep mode (fadeout of all buttons)

Circuit diagram

circuit diagram

About

ESP32 blinds control

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published