ESP32 Deep Sleep with buttons
Posted: Thu May 16, 2024 5:32 pm
Hi guys,
I'm a bit new to the ESP32 and I need help with the deep sleep function, triggered with 2 buttons.
Simply put - one button should only put the ESP32 into deep sleep, another button should only wake it up.
I'm using an ESP32-WROOM-32D. Not sure how relevant this is to solving my issue, but I'm using several ESP32 controllers with WLED in my car for ambient lights and some other external lights. I need some lights to light up when I unlock my car, and I can't find a way to power the board when unlocking, and keep it powered until I lock the car again. Therefore I'm looking for other solutions and I've heard deep sleep might be one of them, the only issue is setting it up properly.
Any help is appreciated!
I'm a bit new to the ESP32 and I need help with the deep sleep function, triggered with 2 buttons.
Simply put - one button should only put the ESP32 into deep sleep, another button should only wake it up.
I'm using an ESP32-WROOM-32D. Not sure how relevant this is to solving my issue, but I'm using several ESP32 controllers with WLED in my car for ambient lights and some other external lights. I need some lights to light up when I unlock my car, and I can't find a way to power the board when unlocking, and keep it powered until I lock the car again. Therefore I'm looking for other solutions and I've heard deep sleep might be one of them, the only issue is setting it up properly.
Any help is appreciated!