leomil72 / swRTC

swRTC is a library that implements a software-RTC on an Arduino board or an Atmel microcontroller
35 stars 16 forks source link

Calendar based Hardware Interrupt Function #7

Open designomind opened 6 years ago

designomind commented 6 years ago

Is there a way to use the internal rtc to put the entire mcu to hard-sleep and keep only the timer and memory functions running so as to wake it up at a specific time and date?

leomil72 commented 6 years ago

There's a way, in the past I did something similar for my "Micrologio" (a mix between "Micro" and "orologio", watch). http://www.leonardomiliani.com/en/2012/micrologio-un-micro-orologio-con-un-atmega328p/ In that project, I didn't used the whole swRTC but instead I extracted the code needed for the MCU I used in. Also, you'll find power saving settings to keep the power as low as possible. It won't be too difficult to insert an "alarm" to wake up the micro. I did this for a project published on an Italian magazine. ( https://www.elettronicain.it/prodotto/n-174-marzo-2013/ )