Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
AtTiny85 sleep + counter
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Shival Wolf  
View profile  
 More options Sep 5 2012, 7:56 pm
From: Shival Wolf <shivalw...@gmail.com>
Date: Wed, 5 Sep 2012 16:56:36 -0700 (PDT)
Local: Wed, Sep 5 2012 7:56 pm
Subject: AtTiny85 sleep + counter

Hi All.
Looking for some info/advise if  anyone knows the details.

I want to build a little medication reminder.
All i want it to do is turn and hold on a bright LED every 24 hours.
I will be shutting off the LED by checking if the box that all the stuff is
in has been opened(either using a LDR or just a contact plate on the edge
of the box).

Does anyone know how accurate the attiny85's sleep watchdog timer is?
If i was to put the chip to sleep at its max watchdog timer setting of 8
seconds.
if each time i woke it up i added 8 seconds to the counter and check if its
been 24 hours would this end up being accurate over 24 hours?
i don't need 100% accuracy but would it end up drifting more then 10
minutes?

I plan on testing this but if anyone knows the details or has any
suggestions that would be great.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Muraca  
View profile  
 More options Sep 5 2012, 8:11 pm
From: James Muraca <jmur...@gmail.com>
Date: Thu, 6 Sep 2012 10:11:33 +1000
Local: Wed, Sep 5 2012 8:11 pm
Subject: Re: [CCHS] AtTiny85 sleep + counter

I think over time it will drift an unacceptable amount (i havent check the
numbers but id assume an internal crystal would drift a fair bit over this
time).
Another option would be to use a real time clock with an alarm interrupt?
Check out the ds3232 real time clock module at jaycar stores, this should
suffice and be fair more accurate with a lot less drift
On Sep 6, 2012 9:56 AM, "Shival Wolf" <shivalw...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Penrose  
View profile  
 More options Sep 5 2012, 9:19 pm
From: Scott Penrose <sco...@dd.com.au>
Date: Thu, 6 Sep 2012 11:19:03 +1000
Local: Wed, Sep 5 2012 9:19 pm
Subject: Re: [CCHS] AtTiny85 sleep + counter

My experience recently with sleeping, using maximum watchdog of about 8 seconds, on a Atmega 2560 is that it is very roughly somewhere between 7.6 and 8.1 seconds !!! Very inaccurate.

Easy but more expensive solution would be a RTC. Or if power isn't an issue leave the external crystal on, which is far more accurate. Or use a crystal to trigger a counter - which is really how an RTC works anyway.

BTW. The way I solved my issue, where I needed to sleep for 2.5 hours, was to wake up after about 2.1 hours, and recheck the GPS, adjust my 8 seconds time and re-sleep until closer. This meant on average I only had to check my GPS 2 or 3 times each 3 hours period, and due to the VBAT connection (about 100 uA) it would often only take about 10 seconds to get an accurate fix.

Scott

On 06/09/2012, at 10:11 AM, James Muraca <jmur...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Stürzbecher  
View profile  
 More options Sep 5 2012, 10:57 pm
From: Robert Stürzbecher <grobsch...@gmail.com>
Date: Wed, 5 Sep 2012 19:57:28 -0700 (PDT)
Local: Wed, Sep 5 2012 10:57 pm
Subject: Re: AtTiny85 sleep + counter

The sleep timer is not all you need to think about, you also need to
account for the program execute time (between sleeps)
For 24 hours you will need about 10800 sleeps so over this number of loops
per day even a few ms will turn into minutes.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken Ihara  
View profile  
 More options Sep 6 2012, 8:38 am
From: Ken Ihara <ken.ih...@thepianomaestro.com>
Date: Thu, 06 Sep 2012 22:38:05 +1000
Local: Thurs, Sep 6 2012 8:38 am
Subject: Re: [CCHS] AtTiny85 sleep + counter

Another idea:

Hack a $1.50 alarm clock from Ikea.    
http://www.ikea.com/au/en/catalog/products/60196594/     Take off the
face and make a contact with the hour hand.

Connect that to a flip flop from Jaycar ($1).  
http://www.jaycar.com.au/productView.asp?ID=ZC4027

Attached is a schematic that should enable you to make LED turn on every
24 hours (instead of 12 hours)

Not a pretty solution, but perhaps an alternative to a $30 RTC module.

Cheers,
Ken

On 6/09/2012 9:56 AM, Shival Wolf wrote:

  24hrclock.JPG
226K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »