Esp32 with BL0937 and Light Sleep
Posted: Mon Nov 11, 2024 10:07 am
Hello folks,
I am having project with ESP32 devkit v1 and BL0937 power metering on which i am having initialized the DFS, Auto Light-Sleep and WiFi in Low Power state.
I am wondering whether its possible to have the Auto Light Sleep with measuring the BL0937 because the ESP32 have to count the pulses every 1 sec coming from the BL0937, which makes the CPU always awake if PM locks are initialized.
Also have started using the PCNT peripheral from ESP IDF for which is said that its not affected from Light Sleep, but currantly i think my problem comes from using Software Timer, to get and count pulses function, which maybe, is not working correctly while the program goes in and out of light sleep fast by missing some pulses.
What are you suggestions for fixing this issues?? I was thinking using RTC Timer or ULP if needed, what are your suggestions, is it possible at all and are there any examples of simmular program ??
Thanks in advance!
I am having project with ESP32 devkit v1 and BL0937 power metering on which i am having initialized the DFS, Auto Light-Sleep and WiFi in Low Power state.
I am wondering whether its possible to have the Auto Light Sleep with measuring the BL0937 because the ESP32 have to count the pulses every 1 sec coming from the BL0937, which makes the CPU always awake if PM locks are initialized.
Also have started using the PCNT peripheral from ESP IDF for which is said that its not affected from Light Sleep, but currantly i think my problem comes from using Software Timer, to get and count pulses function, which maybe, is not working correctly while the program goes in and out of light sleep fast by missing some pulses.
What are you suggestions for fixing this issues?? I was thinking using RTC Timer or ULP if needed, what are your suggestions, is it possible at all and are there any examples of simmular program ??
Thanks in advance!