Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implementing deep/light sleep #56

Open
strik3 opened this issue May 6, 2021 · 6 comments
Open

implementing deep/light sleep #56

strik3 opened this issue May 6, 2021 · 6 comments
Labels
question Further information is requested

Comments

@strik3
Copy link

strik3 commented May 6, 2021

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 strik3 added the question Further information is requested label May 6, 2021
@mowtschan
Copy link
Contributor

@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

@strik3
Copy link
Author

strik3 commented May 15, 2021

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

@Sn0wfreezeDev
Copy link
Member

Great that you added sleep to the esp32 firmware.
I'll definitely give this a test run this week.

@mearsy
Copy link

mearsy commented Feb 15, 2022

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?

@0raculo
Copy link

0raculo commented Mar 20, 2022

Any success with deep sleep?

@thebigboss84
Copy link

Did you try to measure how long your device last with battery ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants