i'm absolutely newby in arduino and plan to create my every first project. As a full projecty is quite complicated for beginner level i thought to start step by step. So in first step i would like to have a clock with non limited
hourly, daily or weekly repeatable alarms. Unfortunately i wasnt lucky to find any working project covering this stack fully or at least partialy. Probably i wasnt groundy on the search but gave my best =)
I thought to use arduino MEGA with RTC3231 nd 2,4' TFT Touch display as these parts i have already. However im also open to redesign with push buttons, since this probably makes thins easier as managing via touch.
Could someone please adwise with basic how to achieve setting of non limited number of repeatable alarms?
Q: How many alarms can be created?
A: Up to six alarms can be scheduled.
The number of alarms can be changed in the TimeAlarms header file (set by the constant dtNBR_ALARMS,
note that the RAM used equals dtNBR_ALARMS * 11)
In that header file:
#if !defined(dtNBR_ALARMS )
#if defined(__AVR__)
#define dtNBR_ALARMS 6 // max is 255
#elif defined(ESP8266)
#define dtNBR_ALARMS 20 // for esp8266 chip - max is 255
#else
#define dtNBR_ALARMS 12 // assume non-AVR has more memory
#endif
#endif
So you can have up to 255, which will consume almost 3K of the Mega's 8K RAM memory.
Also, because of the way the header file is written, you don't need to change it, just put
Thanks for quick reply, i will check check the library. But as absolutely newby as in arduino so in programming im still keep looking for working projects for any kind of repeatble alarm clock as reference.
im still keep looking for working projects for any kind of repeatble alarm clock as reference.
There is an example with the library that illustrates repeating alarms, albeit without the ability to change the alarm time via a user interface but it will show you the principles of using the library.