Hello everyone, I start playing with Arduino, and came across the first issue.
After connecting the module and uploading the RTC TIME libraries, DS130RTC I have a strange messages:
TimeRTCset example:
Unable to sync with the RTC
0:00:06 1 1 1970
0:00:07 1 1 1970
0:00:08 1 1 1970
example
Time
Time set
DS1307 Communication Error: - {
Please check your circuitry
or Can someone help me?
I use a clone SainSmart Mega2560 R3 + 3.2 "TFT LCD Touch SD Card + TFT Shield but I have disconnected shield and TFT
hajtaler:
Unable to sync with the RTC
DS1307 Communication Error: - {
Please check your circuitry
Sounds like it is wired wrong. How did you wire it?
this way ,i look on youtube
Run this i2c scanner program, and see if the ds1307 module is found on the i2c bus at address 0x68.
First, run the program with no module attached to the Arduino and confirm that it returns with "Found 0 devices". The code should not hang up at "I2C scanner. Scanning ..." but should report a finding. Then attach the module and run the scanner again. What does it report.
// I2C Scanner
// Written by Nick Gammon
// Date: 20th April 2011
#include <Wire.h>
void setup() {
 Serial.begin (115200);
 // Leonardo: wait for serial port to connect
 while (!Serial)
  {
  }
 Serial.println ();
 Serial.println ("I2C scanner. Scanning ...");
 byte count = 0;
Â
 Wire.begin();
 for (byte i = 8; i < 120; i++)
 {
  Wire.beginTransmission (i);
  if (Wire.endTransmission () == 0)
   {
   Serial.print ("Found address: ");
   Serial.print (i, DEC);
   Serial.print (" (0x");
   Serial.print (i, HEX);
   Serial.println (")");
   count++;
   delay (1); // maybe unneeded?
   } // end of good response
 } // end of for loop
 Serial.println ("Done.");
 Serial.print ("Found ");
 Serial.print (count, DEC);
 Serial.println (" device(s).");
}Â // end of setup
void loop() {}
after starting the scanner gets some strange characters
ÒZþÖ-ÿ every time other
ok i need change Serial.begin (9600)
and I2C scanner. Scanning ...
Done.
Found 0 device(s).
The ds1307 module is not being seen on the i2c bus.
Is there a battery installed in the module? If not, install one, even a dead one, as the module may require a battery present to work.
Then, replace the four wires going to the module. One of them could be defective. Also check on the module and see if there is anything which could explain an open or shorted lead.
I would think that the Mega has internal pullup resistors on SDA/SCL which are enabled with the Wire library, and are usually sufficient for these modules. But, in your case, they may not be strong enough, and you could try some external pullups of 4.7K ohms to a 5v rail.
It possible that the module itself is defective.