stm32duino / STM32LowPower

Arduino Low Power library for STM32
183 stars 52 forks source link

sketch using the Rtc mix mode with value in milliseconds #103

Closed FRASTM closed 8 months ago

FRASTM commented 11 months ago

This sketch shows how to configure the RTC alarm in MIX mode and go to sleep

Requires https://github.com/stm32duino/STM32RTC/pull/102

FRASTM commented 11 months ago

Running the AlarmTimedWakeup on the nucleo_wl55jc in RTC BIN or MIX mode: give a deepSleep period of 600ms one message displayed each 1.2s

14:32:24.179 ->  Start !
14:32:24.179 -> Alarm Match: 0 times.
14:32:26.254 -> Alarm Match: 2 times.
14:32:27.475 -> Alarm Match: 4 times.
14:32:28.630 -> Alarm Match: 6 times.
14:32:29.852 -> Alarm Match: 8 times.
14:32:31.041 -> Alarm Match: 10 times.
14:32:32.232 -> Alarm Match: 12 times.
14:32:33.419 -> Alarm Match: 14 times.
14:32:34.609 -> Alarm Match: 16 times.
14:32:35.828 -> Alarm Match: 18 times.
14:32:37.019 -> Alarm Match: 20 times.
14:32:38.208 -> Alarm Match: 22 times.
14:32:39.411 -> Alarm Match: 24 times.
14:32:40.586 -> Alarm Match: 26 times.
FRASTM commented 11 months ago

STM32PowerMonitor when nucleo_wl55jc goes to stop2 low power mode and wakes Up from RTC alarm (LED is blinking)

STM32Power_nucleo_wl55_lowpower_RTC