Alarm with Mémoire ?

Alarm with Mémoire ?

Message non lude John Murray » Jeu 15 Déc 2011 16:22

I have an Arduino Uno and a Memoire RTC / SD card. Can I get the RTC alarm section on the Memoire card to generate a hardware interrupt for the Uno? If not, how can the Uno tell when the alarm has activated?

Thanks

John (UK)
John Murray
 
Messages: 7
Inscription: Jeu 15 Déc 2011 16:15

Re: Alarm with Mémoire ?

Message non lude Lionel » Jeu 15 Déc 2011 17:09

Hello,

the RTC chip used for real time backup doesn't have this alarm output hardware implemented,

So, if you want this function, you'll have to program it by yourself.
For example you could ask the program to read the actual time every minut or second (depending what accuracy you need) and compare to an alarm time you previously decide.
I think you'll be able to find some existing alarm clock using DS1307 and arduino
there is one here : http://hacks.ayars.org/2010/01/alarm-cl ... rkill.html

hope it helps,
Image - Distributeur officiel Arduino - Conception de shields
Avatar de l’utilisateur
Lionel
 
Messages: 734
Inscription: Mar 21 Déc 2010 09:52
Localisation: Toulouse

Re: Alarm with Mémoire ?

Message non lude John Murray » Jeu 15 Déc 2011 21:32

Thanks, Lionel. Perhaps I'll try using an edge of the 1Hz square wave to generate an interrupt on the Uno, and program an alarm from that.

John
John Murray
 
Messages: 7
Inscription: Jeu 15 Déc 2011 16:15


Retourner vers Support for Snootlab Products

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité

cron