Author Topic: Test results for some DS3231 clock modules.  (Read 1703 times)

0 Members and 1 Guest are viewing this topic.

Offline lmesterTopic starter

  • Regular Contributor
  • *
  • Posts: 143
  • Country: us
    • My page
Test results for some DS3231 clock modules.
« on: February 25, 2018, 03:56:25 am »
I'm planning on using a DS3231 clock module to provide a battery backed clock option for an open source project.

I've purchased two different styles of these clock modules. The first includes a 24C32 EEPROM and has a battery holder for a LIR2032 rechargable battery. Some of these are labeled "ZS-042" others labeled "DS3231". The second module has a CR1220 battery solderd in place and no EEPROM. These are labeled "DS3231 For PI".

I had nothing better to do this weekend so I decided to test all of them and see if they meet timekeeping specifications. I used a frequency counter with A GPSDO reference to measure the 32KHz output.

I have four of each style module but had only powered up one of each type.

Some of these have the DS3231SN (Crystal osc.) and some have the DS3231M (MEMS osc.) chip. The DS3231SN is rated for +-2ppm 0 to 40 deg. +-3.5ppm -40 to +85 deg and the DS3231M for +-5ppm -45 to +85 deg.

Some of these are definitely China's finest!

Two are D.O.A., Two are out of tolerance, and the other four meet specifications.

One of the D.O.A.'s did not respond to I2C commands. The other D.O.A. unit killed the I2C bus.

The out of tolerance units also have a non functional oscillator trim register (Aging Offset 0x10). You can write a value to the register and read it back. It has no effect on the output frequency. This register is functional on all of the good units. Also, both of the out of tolerance units are the DS3231M version.

Finally, the battery charger circuit on the ZS-042 modules is poorly designed. It's just a resistor and diode from the 5V supply to the battery. Unfortunately, the diode is not dropping quite enough voltage. After 24 hours of operation the battery voltage was 4.43v. The LIR2032 has a maximum voltage of 4.2V. It's overcharging the battery. If you plan on using this module I would suggest disabling the charge circuit and use a CR2032 battery instead of the LIR2032. The CR2032 is also much cheaper.

 Attached are some pictures of the modules and graphs of frequency data.

Graphs DS3231g-3 and DS3231g-5 are the out of tolerance units. DS3231g-5z and Ds3231g-6z are zomed tighter on the Y axis. You can see that 5z, a bad module has a very noisy unstable frequency. 6z is much better.



 
The following users thanked this post: Blue

Offline floobydust

  • Super Contributor
  • ***
  • Posts: 6979
  • Country: ca
Re: Test results for some DS3231 clock modules.
« Reply #1 on: February 25, 2018, 04:16:11 am »
Interesting findings.
The DS3231 price is hugely different - IC is ~USD $9.00 and entire PCB +IC $1.50 on eBay or Ali, so I would expect some rejects or fakes.
Look at DS3231 errata but I hear gossip of the IC sometimes giving bad reads.

Also note the datasheet says do not run traces underneath the IC, many DS3231 boards are crap for this. This might be why you have 32.768Hz osc. issues and noise.
I just ended up making my own PCB and module.




« Last Edit: February 25, 2018, 04:17:50 am by floobydust »
 

Offline lmesterTopic starter

  • Regular Contributor
  • *
  • Posts: 143
  • Country: us
    • My page
Re: Test results for some DS3231 clock modules.
« Reply #2 on: February 27, 2018, 04:02:07 am »
Here's an interesting plot.

This part normally does a temperature measurement and oscillator adjust every 64 seconds. I put it in the refrigerator and let it cool down.  I then logged the frequency while it warmed back up to room temp.  You can clearly see the frequency adjustment.
 

Offline TechieTX

  • Contributor
  • Posts: 41
  • Country: us
Re: Test results for some DS3231 clock modules.
« Reply #3 on: October 19, 2019, 02:15:56 pm »
I picked up 10 of those ZS-042 modules some time ago for 50 cents each... they're complete junk, but I couldn't pass at that price!  Luckily all 10 worked the first time, so I had a bargain buy.

The battery circuit was designed by a moron, and has to be fixed.  All of mine had a CR2032 battery installed, and the charging circuit will kill the battery in very short order.  The simplest solution was to remove the 200 ohm resistor and run Vbat solely from the CR2032.  I'll likely get 5+ years with that configuration, depending on the quality of the no-name CR2032.  I looked at other solutions (correcting the design for the optional LIR2032, supercap, etc.) and couldn't come up with a cheaper fix than 5 seconds with a soldering iron.  Replacing the batteries 5+ years from now is chump change, although 1 battery from US stock is more than I paid for 10 of the modules!  If I could have found supercaps with 20mm lead spacing for a couple of bucks each, I'd have replaced the battery holder with a supercap.


The 200 ohm resistor is merely rotated off of the pad
"No matter where you go, there you are." ~BB
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf