Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Time and TimeAlarms Libraries – Ask here for help or suggestions on: January 29, 2013, 06:42:28 pm
Thank you Mem.  It was very helpful. 

I have been successfully use Alarm.timerRepeat(1, DisplayTime) and it seems to work correctly. Showing "millies" is a great idea, thank you.  I will add that to my code. 

Within my routine, it fetches something from the network, Reading some huge file, and parse and filter what it receives.  I have this done every one minute with Alarm.timerRepeat(60, ReadData).  The problem is when the data is being read, the DisplayClock does not seem to be executed (Clock stops), for 10~20 seconds.  When its done with the ReadData code, it goes back and show the clock every second and the time seems to be correct. 

With in ReadData code, I am using Alarm.delay, client.connect and some other functions from Ethernet library. 

The PulsePattern works on Timer1.  I will give that a try. 

Thanks again. 
2  Using Arduino / Programming Questions / Re: Time and TimeAlarms Libraries – Ask here for help or suggestions on: January 29, 2013, 05:01:16 pm
What will happen if you have the following:
  Alarm.alarmRepeat(8,30,0, AlarmA);
  Alarm.alarmRepeat(8,30,0, AlarmB);
  Alarm.alarmRepeat(8,30,0, AlarmC);

Will AlarmA get executed 1st, and then AlarmB and then AlarmC? 

Does the accuracy of the time, depends on other program running, or it has to be idle?  In another words, Do I need to add delay(1) or something like that in my loop? 

Does the time accuracy changes when used with other libraries like PulsePattern?
http://playground.arduino.cc//Main/PulsePattern

Thank you.
Sia
Pages: [1]