openhaystack
openhaystack copied to clipboard
implementing deep/light sleep
I've been racking my brains for the past week trying to think how it would be possible to implement deep/light sleep into the esp32 firmware. this would drastically reduce power consumption but I'm a complete novice when using the esp ide. is this something you may be able to implement.
@strik3 it should be not very difficult to implement, maybe this example can help (at least I would try it first): https://github.com/espressif/esp-idf/blob/1cb31e50943bb757966ca91ed7f4852692a5b0ed/examples/system/light_sleep/main/light_sleep_example_main.c
Managed to get it working. its not the prettiest or most efficent but it saves a lot of power and gets the job done
https://github.com/strik3/openhaystack/blob/main/Firmware/ESP32/main/openhaystack_main.c
Great that you added sleep to the esp32 firmware. I'll definitely give this a test run this week.
Great that you added sleep to the esp32 firmware. I'll definitely give this a test run this week.
I notice that this suggestion hasn't made it to the main branch. I was just wondering if there are any plans to implement the light sleep mode for the ESP32 firmware?
Any success with deep sleep?
Did you try to measure how long your device last with battery ?