Esp32 Power management

For general Flowcode discussion that does not belong in the other sections.
MJU20
Posts: 350
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 99 times
Been thanked: 69 times

Re: Esp32 Power management

Post by MJU20 »

Hey Martin,

Would be great if a "lower MCU" could do some sampling in the background and compare this value with a previous sample.
The more work that can be done with lower power would be great.

So what I'm thinking of now is to have a "lower part MCU" sample wake up out sleepmode and compare a sensor.
If this value is different of previous value (and is within a certain reach from previous samples), wake up the bigger MCU.
This must initialise all the peripherals and the WIFI, connect, send the data and after that everything must fall a sleep for the next 10 minutes.
In this period there isn't any action required. Only the previous value must be stored (your last post!) and the RTC must wake up the "lower MCU".

For your wind direction problem, I will PM you.

To host the webpage in deep sleep, I don't know if that can be done. The browser needs to have connection to the server at all times I guess?
Isn't Thingspeak something you can consider?

MJU20
Posts: 350
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 99 times
Been thanked: 69 times

Re: Esp32 Power management

Post by MJU20 »

Hey Martin,

Would be great if a "lower MCU" could do some sampling in the background and compare this value with a previous sample.
The more work that can be done with lower power would be great.

So what I'm thinking of now is to have a "lower part MCU" sample wake up out sleepmode and compare a sensor.
If this value is different of previous value (and is within a certain reach from previous samples), wake up the bigger MCU.
This must initialise all the peripherals and the WIFI, connect, send the data and after that everything must fall a sleep for the next 10 minutes.
In this period there isn't any action required. Only the previous value must be stored (your last post!) and the RTC must wake up the "lower MCU".

For your wind direction problem, I will PM you.

To host the webpage in deep sleep, I don't know if that can be done. The browser needs to have connection to the server at all times I guess?
Isn't Thingspeak something you can consider?

MJU20
Posts: 350
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 99 times
Been thanked: 69 times

Re: Esp32 Power management

Post by MJU20 »

Correction: the ULP (ultra low power MCU) has only certain tasks it can perform.

Not as programmable as the main MCU.
But still it looks like it can do good in low power designs.

It has a I2C function to read sensors and decide in a programmable threshold to wake up the MCU.

Hope this "hidden feature" can be added to the ESP32 chip in Flowcode.

Post Reply