Pages: [1] 2   Go Down
Author Topic: Energy saving question and RTC DS3234 Alarms  (Read 1183 times)
0 Members and 1 Guest are viewing this topic.
Zaragoza
Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello I need to wake up the arduino every 10 or 15 minutes, I have the DS3234 RTC, but I don't understand how set the alarm,somebody can help me?

Best regards.
« Last Edit: February 02, 2013, 01:39:36 pm by xload » Logged

NE PA
Offline Offline
Full Member
***
Karma: 5
Posts: 156
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Try searching google for the timealarm library.
Logged


East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 89
Posts: 3453
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

When you say "wake up the arduino" what state is it in at the time and how does it get in that state ?
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Zaragoza
Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, a lot of thanks to all, the problem in the time alarm library is that the arduino is always on, I need that the arduino go to sleep and wake up each 15 minutes to save battery, I think that the DS3234 RTC have internal alarms to do this, but I don't understand how to set up to activate each 15 minutes.
Logged

Offline Offline
Edison Member
*
Karma: 31
Posts: 1417
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't think you can make the DS3234 alarm every 15 minutes. You would have to set an alarm to go off every minute and then, when the alarm does go off, read the minutes register to see if it is 0, 15 , 30 or 45.

Pete
Logged

Where are the Nick Gammons of yesteryear?

Zaragoza
Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't think you can make the DS3234 alarm every 15 minutes. You would have to set an alarm to go off every minute and then, when the alarm does go off, read the minutes register to see if it is 0, 15 , 30 or 45.

Pete

A lot of thanks Pete, do you know if there is any RTC that I can program to wake up the arduino each 15 minutes? I really need save battery.

Best regards.
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 548
Posts: 46020
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I really need save battery.
How much battery are you going to save by not waking up, seeing that the time is not right, and going back to sleep. Those few milli-micro-amps aren't going to matter all that much.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12428
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The best description I know about sleep modes of Arduino is here - http://www.gammon.com.au/forum/?id=11497 -

Better change the title of your thread to "Sleep mode (how)" or "energy saving mode question" because that is the question.

The current title reflect a solution (or not smiley-wink

« Last Edit: February 02, 2013, 01:09:53 pm by robtillaart » Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12428
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


search for different sleep modes on the page mentioned
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Edison Member
*
Karma: 31
Posts: 1417
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've used the DS3231 (I2C similar to DS3234) to wake up every minute and do a task once every ten minutes. The time spent awake when not performing a task is negligible.

Pete
Logged

Where are the Nick Gammons of yesteryear?

Zaragoza
Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, the problem is not how to sleep the arduino, the problem is how to wake up each 10 or 15 minutes,if there is not another way i will try the el_supremo solution, waking up each minute smiley-sad
« Last Edit: February 02, 2013, 01:31:00 pm by xload » Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12428
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Some sleep modes keep the timers active,
These timers can be programmed to trigger an ISR.
This ISR can wake the system when appropriate

Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Zaragoza
Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Some sleep modes keep the timers active,
These timers can be programmed to trigger an ISR.
This ISR can wake the system when appropriate


Hello robtillaart, do you have an example? I don't found it.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12428
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That info Is on the same page - http://www.gammon.com.au/forum/?id=11497 - search for "Waking from sleep with a timer"
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Zaragoza
Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That info Is on the same page - http://www.gammon.com.au/forum/?id=11497 - search for "Waking from sleep with a timer"

Hello robtillaart, I understand that in the example the arduino is waking up each 8 seconds, the maximum that you can set up a watchdog, but I need wake up each 10 or 15 minutes, how can I do this?
Logged

Pages: [1] 2   Go Up
Jump to: