Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 10:01 14 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Hi Accuract RTC for MuP, BP170 and others

Author Message
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2870
Posted: 08:54pm 28 Aug 2015
Copy link to clipboard 
Print this post

Hi All,

I have found a neat little RTC module that uses the High accuracy (quoted at less than 0.4sec per day) Real Time Clock Chip that `almost' looks as though it was designed with my `Mik-Standard' I2C layout in mind.. (as used in MuP and BackPack170)

Here is an ebay link to the modules.

eBay Link

At $1.87AUS that is really quite amazing, considering they use a DS3231 RTC chip which is the big brother to the DS3232 that I used in my SMDBackPack170 board (That chip alone in 1 off is around $12eaa)

All that is needed to plug into my `Mik-Standard' I2C bus is to run a short wire (red in the following pictures) from Pin 1 to Pin 4 of the 5 pin female header and offset the module when you plug it into the I2C 4pin header so that pin 1 is hanging over as shown below.







The Pinout of the Module is as follows:



As can be seen pin 4 has no connection and this mates up with `Mik-Standard' for I2C power (set to 3v3) and every other pin lines up... The short link transfers the power to where the module expects it to be on pin 1.


I have had it running now for about 2 weeks and (after synchronizing my PC to internet time) it had lost about 2seconds in 2 weeks.

Not a bad $2 investment and of course can be adapted to any other I2C pinout.

Regards,

Mick

Edited by bigmik 2015-08-30
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1328
Posted: 09:20pm 28 Aug 2015
Copy link to clipboard 
Print this post

Wow, how 'bout that Mik. Maybe Peter should use the layout for that module on his new board - battery is there too!
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 09:39pm 28 Aug 2015
Copy link to clipboard 
Print this post

Is that a 1992 week 6 chip?
Or does it mean something else?


Microblocks. Build with logic.
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2870
Posted: 09:46pm 28 Aug 2015
Copy link to clipboard 
Print this post

@Greg,

Yes I did think that .. Which is what prompted me to first post this thread.

@TZ,

I would have to look at the datasheet but my guess would be not that old.

Mick
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5922
Posted: 10:23pm 28 Aug 2015
Copy link to clipboard 
Print this post

My interpretation of the date code is week 26 of '09

Jim

VK7JH
MMedit   MMBasic Help
 
HankR
Senior Member

Joined: 02/01/2015
Location: United States
Posts: 209
Posted: 10:24pm 28 Aug 2015
Copy link to clipboard 
Print this post

The DS3231 I believe was introduced in 2005 by Dallas Semiconductor.
The DS company was already owned by Maxim at that time.

Hank
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 10:47pm 28 Aug 2015
Copy link to clipboard 
Print this post

Yes week 26 of year '09 makes more sense.

Lots of these modules on ebay have parts that are salvaged (recycled ) from old pcb's.
I have seen them do it here too in Thailand. Girls with heat guns.:) Just apply heat until the parts fall off is the criteria.
Not my favorite source, but for a few single parts it is fine.

Edited by TZAdvantage 2015-08-30
Microblocks. Build with logic.
 
HankR
Senior Member

Joined: 02/01/2015
Location: United States
Posts: 209
Posted: 11:12pm 28 Aug 2015
Copy link to clipboard 
Print this post

The original datasheets for the DS3231 and DS3232 were issued
January and September respectively, of 2005.
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 761
Posted: 05:57am 29 Aug 2015
Copy link to clipboard 
Print this post

Just got 10 of these RTC's

Have one running on the GCmicroboard2... Seems to be running fine...

I like this IC because the X-tal is inside... Add a battery, good to go...
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1328
Posted: 05:00pm 29 Aug 2015
Copy link to clipboard 
Print this post

Just ordered myself a few too - thanks for the link Mik.

Greg
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 911
Posted: 09:35pm 29 Aug 2015
Copy link to clipboard 
Print this post

Thanks for the heads up bigmik, just ordered some too
 
piclover
Senior Member

Joined: 14/06/2015
Location: France
Posts: 134
Posted: 01:36am 30 Aug 2015
Copy link to clipboard 
Print this post

  bigmik said  I have found a neat little RTC module that uses the High accuracy (quoted at less than 0.4sec per day)

0.4s per day is 12s a month... Not that good an accuracy (it's the base accuracy of any low cost quartz watch).

With a PCF8563, a 32KHz quartz and a 30pF adjustable capacitor, I managed accuracies better than 3s a month in several projects I made. Of course, you need to manually tune the capacitor, but it results in a 4 times better accuracy (which could further be increased, with a temperature monitoring and computed correction according to the measurements).
 
Chris Roper
Senior Member

Joined: 19/05/2015
Location: South Africa
Posts: 280
Posted: 02:10am 30 Aug 2015
Copy link to clipboard 
Print this post

  piclover said   Of course, you need to manually tune the capacitor, but it results in a 4 times better accuracy (which could further be increased, with a temperature monitoring and computed correction according to the measurements).


Or just add a Rubidium atomic timebase.
It may increase the cost slightly above the $2 mark, however

Cheers
Chris

http://caroper.blogspot.com/
 
f1fco

Senior Member

Joined: 18/03/2012
Location: France
Posts: 154
Posted: 04:36am 30 Aug 2015
Copy link to clipboard 
Print this post

just to laugh, a little calculus :

$2 : DS3231 : 0.4 / 86400 ~ 4 x 10-6 accuracy
it is the "reference"

$3 to 5 : PCF8563 + xtal + ajustable : 0.1 / 86400 ~ 10-6 accuracy
price x2 for x4 of accuracy

$150 to 200 : Rubidium frequency standart(on ebay) ~ 10-10 to 10-11 accuracy
price x100 for x10000 to x100000 of accuracy

I use also a GPSDO (from DF9NP, a German hamradio)
http://www.df9np.de/page3.html
a VERY HIGH accuracy : the atomic clock of GPS sats... (Cesium ?)

Pierre, F1FCO, from Nimes, south of France
73s de F1FCO
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 09:12am 30 Aug 2015
Copy link to clipboard 
Print this post

  bigmik said  
I have had it running now for about 2 weeks and (after synchronizing my PC to internet time) it had lost about 2seconds in 2 weeks.


Mick, If you want better accuracy than that, it is probably possible. Register 16 (&H10) of the DS3231, DS3232, & DS3234 can be used for trimming the accuracy. It adds or removes trimmer caps to the onboard timing capacitance. Because it's onboard it is also temperature compensated. Below is a partial quote from page 14 of the datasheet.

[quote]
The crystal aging offset register provides an 8-bit code to add to the codes in the capacitance array registers. The code is encoded in two’s complement. One LSB represents one small capacitor to be switched in or out of the capacitance array at the crystal pins.

. . . . . . .

Positive aging values add capacitance to the array, slowing the oscillator frequency. Negative values remove capacitance from the array, increasing the oscillator frequency.

The change in ppm per LSB is different at different temperatures. The frequency vs. temperature curve is shifted by the values used in this register. At +25°C, one LSB typically provides about 0.1ppm change in frequency.
[/quote]
I experimented with it and found it did the job but you would only use it in situations of need for great accuracy. I've never found it to be necessary but it sounds like your one is a slight bummer. You should ask for your money back.
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1139
Posted: 04:05am 31 Aug 2015
Copy link to clipboard 
Print this post

Just for information purposes (regarding accuracy):
I use a 1$ DS3231 module from china and compared with a radio controlled clock is there a difference of one second after four month.
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2794
Posted: 04:45am 31 Aug 2015
Copy link to clipboard 
Print this post

  twofingers said   Just for information purposes (regarding accuracy):
I use a 1$ DS3231 module from china and compared with a radio controlled clock is there a difference of one second after four month.


. . . but where did you buy the clock from?
I had a 'cheap' radio tuned clock once that never latched onto any signal no matter what you did with the aerial. Realised this after only two days when it had drifted by over 1 minute (from the TV news broadcast).

As a potential solution to others out there; I now use a GPS module connected to a RF Tx module to act as a local timer-server in the house. Then each MM clock I have around the house simply has a RF Rx to pick up this time signal. Using UK licence exempt 868MHz to get better range than 433MHz.

WW
For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1139
Posted: 05:40am 31 Aug 2015
Copy link to clipboard 
Print this post

  WhiteWizzard said  
  twofingers said   Just for information purposes (regarding accuracy):
I use a 1$ DS3231 module from china and compared with a radio controlled clock is there a difference of one second after four month.


. . . but where did you buy the clock from?

[...]

WW


I don't know. It is a very old clock (I have more than ten). I guess I've bought the clock 20-30 years ago. Maybe from "Conrad Electronics" (a german company).





Do you think there could be any influence on the DS3231 module?
(The older the radio controlled clock the better the accuracy of the DS3231?)

... just kidding.

Regards
Michael
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024