cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L475 Multiple wake up interrupts for stop2 mode.

ambinabhi
Associate II

Hi Community,

I am working on deveoping applications on STM32 IoT Doscovery kit. I am interested in the lowe power design aspects as far as the sensor reading is concerned. This is my first time working with sleep modes / reducing power consumption.

Cosnidering i have 3 sensor , thanks to stm32 IoT node, all the sensors are available onboard.

  1. sensor A - polling interval set to every 15mins
  2. sensor B - polling interval set to every 30min
  3. sensor C - polling interval 45mins

Polling interval referes as to how often the sensor reading should taken, I have implemeted entering stop2 mode and wake up using wake up timer interrupt. So far its working fine.

How can i implement a mechanism where the mcu wake up at different regular intervals and reads the specific sensor data and goes back to sleep. How can one diffrentiate which interrupt was triggered (After 30mins i would have to read both sensor A and B's data, similarly after 45min for all sensors A, B and C ) ? .Is there any way to fulfill all the reading intervals keeping the wake up time as low as possible?

Any guide link or examples in this regard would be much appreciated.

0 REPLIES 0