Adding RTC to my project

I was able to find a DS3231 in a junk box that was given to me by a friend (that just retired). Looks just like the one in the pic and its still sealed in the anti-static pkg. So I am assuming its good.

Can I get a pointer on where I can download the library and directions to wire it up ?

Thank you.

Try a Google search on;

'Arduino DS3231 Library'
'Arduino DS3231 Tutorial'

Which Arduino board do you have ?

If you have a 5V Arduino such as the Uno or Nano, then connect the 5v pin to an Arduino 5V pin, GND to an Arduino GND pin, SDA to the Arduino A4 pin and SCL to the Arduino A5 pin

There are example sketches with the library

Buy one from a reputable supplier... there are a lot of cheap fakes around.

Really? DS3231 fakes? New to me. I know about the DS1302 fakes...

For completeness:

When you check the cost of a DS3231 IC from a reputable supplier versus an assembled board from China it does raise suspicions.

I do seem to recall that some so called DS3231s were not as accurate time keepers as the data sheet suggests.

From the manufacturer...

...and that's 10 years ago.

I'm sure the dodgy guys have got better since then at creating something that looks almost like the original... and almost functions like it.

Speculation. That is a general warning that is not founded on the same IC. I doubt that they've done the DS3231 because of the complexity of the internal crystal, and also because it's produced legitimately in such huge quantities that the price is already very low. I want to see evidence of that before I cry foul.

I have also not seen any user reports of any problems with the DS3231, and none of the many IC's that I've obtained from diverse sources has had any problem.

I'm not saying it doesn't happen. I'm just saying we shouldn't be pointing fingers where there isn't actually any fraud.

Which means you should read reply #5 above.

a7

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.