Hi, i'm trying to set up a simple RTC module. I've got 2 Uno's and a whole bunch of mini's, and 4 of the RTC modules. I've tried the example code
and
The result is the same, when the arduino is powered up with the RTC module connected it hangs instantly and needs to be reset.
If the battery is removed from the RTC the arduino will start and I can get the "RTC is NOT running!" error in the serial monitor. I have one DS1307 module from adafruit and 3 more from eBay and they all display the same fault. I've tried powering the module from a separate 3v supply instead of the battery as mentioned elsewhere but any positive voltage on the battery terminal will hang the arduino.
Can anyone shed any light on how to troubleshoot this? (or recommend a better RTC than the DS1307, apparently the DS3231 keeps time more accurately, but is it more reliable?)
thanks in advance
EDIT: Turns out even connecting the I2C pins without the power pins will hang the arduino.
I've got a 12v/5A power supply connect to the arduino's barrel jack. The voltage on the actual jack is 12.12v. The arduino's 5v rail measures~4.94v, and the RTC module has 4.94v on its Vcc pin and on pin 8 of the DS1307 chip.
I've got 2 Uno's and a whole bunch of mini's, and 4 of the RTC modules.
I tried the Adafruit one and a Tiny RTC one and they do the same thing.
Do all Arduino's and all modules display the same behaviour with the scanner program? --- the scanner finds 0x50 and not 0x68 but does not hang when there is no battery installed?
Yes all four modules behave exactly the same, I've never seen 0x68 with any combination. I've ordered some DS3231 modules in the meantime to see if they work any better.
EDIT: The four modules also show the correct supply voltage, I'm using very short jumpers and I've checked them for continuity.