DS3231 RTC: freezes all the time


hello,

i trying wire ds3231 real time clock (labelled zs-042) using arduino nano v3 (atmega328).

the thing is, tried couple libraries , if code seems simple, don't work.

for instance, followed tutorial used library made rinky-dink electronics, , when run it, arduino nano freezes. seems piece of code trigers crash is:
code: [select]
serial.print(rtc.getdowstr()); below won't processed.

and well, other examples have similar fate: either freeze nano or show wrong date.

since rtc uses i2c interface, tried "i2c scanner" script, correctly detected attached device:
code: [select]
i2c scanner. scanning ...
found address: 79 (0x4f)
found address: 87 (0x57)
done.
found 2 device(s).


so i'm pretty sure rtc wired correctly (using a4 , a5 sda , scl, , 5v , gnd power , ground), reason, doesn't work @ all. tried arduino nano, in case.

what's going on? rtc module faulty? there way test that?

thanks in advance.

edit: btw, when used rtc.getdata(); command, obtain 2165-165-165 45:165:85 result.

quote
since rtc uses i2c interface, tried "i2c scanner" script, correctly detected attached device:
why scanner see 2 i2c devices when rtc connected? have o2c device connected, too?

if so, have tried running scanner , sketch (that don't post) without other device connected?


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > DS3231 RTC: freezes all the time


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'