ERR_IMU_COMM PCB1.3 | Azurit1.0a7

I dont understand what you mean. Where did you bought your working RTC? Maybe I have luck too. But what library can you recommend me to test the RTC outside of the PCB.
 
Be sure when you test on the PCB1.3 that the Battery (12 or 24V) is connected on P43 and all the Fuse are OK (Also F1 the very small one)
Because the RTC is powered by +5VP and not by +5V of the arduino. (+5V and +5VP are not the same).

You can use the ADAFRUIT RTCLib (easy to find on the net) normaly it work on the PCB1.3 with the DUE.
If it not work on PCB1.3 try directly connect the RTC on MEGA or UNO with the same Library.(NEVER CONNECT THE RTC DIRECTLY TO THE DUE AT 5V).

I buy the RTC at ELECTRO--WORLD on EBay (Don't understand why but i can't put the link on the forum)


Can you take a picture of your board powered to verify the LED, the 5VP need to be ON.
 
Code:
RTC is NOT running!
2165/165/165 (Saturday) 165:165:85
 since midnight 1/1/1970 = 978738385s = 11327d
 now + 7d + 30s: 2001/1/13 12:16:31

2165/165/165 (Saturday) 165:165:85
 since midnight 1/1/1970 = 978738385s = 11327d
 now + 7d + 30s: 2001/1/13 12:16:31

This is on the PCB.

20171029_102924.jpg


Please try to send me the link somehow I can't find the shop.
Attachment: https://forum.ardumower.de/data/media/kunena/attachments/3881/20171029_102924.jpg/
 
Zuletzt bearbeitet von einem Moderator:
Maybe into texte ?
http://www.ebay.fr/itm/Tiny-RTC-I2C-DS1307-AT24C32-Horloge-Temps-Réel-Module-Pour-Arduino-AVR/262974347997?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649
or Code

Code:
 [URL]http://www.ebay.fr/itm/Tiny-RTC-I2C-DS1307-AT24C32-Horloge-Temps-Réel-Module-Pour-Arduino-AVR/262974347997?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649[/URL]
 
Did you test the RTC into the PCB with Mega and adafruit Library ?
For the BT modul try into the console to do a factory reset .
 
Okay I now tested the RTC with the DUE in the PCB with an modified RTCLib, wich works with the due. And the RTC worked for at least 15 minutes without problems. https://pastebin.com/9ZCmAcyi
But then I uploaded the Azurit and set the Time and Timer with the arduremote app and directly got this error. ERR_RTC_DATA
https://pastebin.com/3n9Zj1P7
 
Try to remove the adderrorcounter and verify that the EEprom and RTC work.

Code:
// DS1307 real time driver
boolean readDS1307(datetime_t &dt){
  byte buf[8];  
  if (I2CreadFrom(DS1307_ADDRESS, 0x00, 8, buf, 3) != 8) {
    Console.println("DS1307 comm error");    
    //addErrorCounter(ERR_RTC_COMM);
    return false;
  }      
  if (   ((buf[0] >> 7) != 0) || ((buf[1] >> 7) != 0) || ((buf[2] >> 7) != 0) || ((buf[3] >> 3) != 0) 
      || ((buf[4] >> 6) != 0) || ((buf[5] >> 5) != 0) || ((buf[7] & B01101100) != 0) ) {    
    Console.println("DS1307 data1 error");    
    //addErrorCounter(ERR_RTC_DATA);
    return false;
  }
  datetime_t r;
  r.time.minute    = 10*((buf[1] >>4) & B00000111) + (buf[1] & B00001111);
  r.time.hour      = 10*((buf[2] >>4) & B00000111) + (buf[2] & B00001111);
  r.date.dayOfWeek = (buf[3] & B00000111) - 1;
  r.date.day       = 10*((buf[4] >>4) & B00000011) + (buf[4] & B00001111);
  r.date.month     = 10*((buf[5] >>4) & B00000001) + (buf[5] & B00001111);
  r.date.year      = 10*((buf[6] >>4) & B00001111) + (buf[6] & B00001111);
  if (    (r.time.minute > 59) || (r.time.hour > 23) || (r.date.dayOfWeek > 6)  
       || (r.date.month > 12)  || (r.date.day > 31)  || (r.date.day < 1)         
       || (r.date.month < 1)   || (r.date.year > 99) ){
    Console.println("DS1307 data2 error");    
    //addErrorCounter(ERR_RTC_DATA);
    return false;
  }  
  r.date.year      += 2000;
  dt = r;
  return true;
}

boolean setDS1307(datetime_t &dt){
  byte buf[7];
  if (I2CreadFrom(DS1307_ADDRESS, 0x00, 7, buf, 3) != 7){
    Console.println("DS1307 comm error");    
    //addErrorCounter(ERR_RTC_COMM);
    return false;
  }
  buf[0] = buf[0] & B01111111; // enable clock
  buf[1] = ((dt.time.minute / 10) << 4) | (dt.time.minute % 10);
  buf[2] = ((dt.time.hour   / 10) << 4) | (dt.time.hour   % 10);
  buf[3] = dt.date.dayOfWeek + 1;
  buf[4] = ((dt.date.day    / 10) << 4) | (dt.date.day    % 10);
  buf[5] = ((dt.date.month  / 10) << 4) | (dt.date.month  % 10);
  buf[6] = ((dt.date.year % 100  / 10) << 4) | (dt.date.year % 10);
  I2CwriteToBuf(DS1307_ADDRESS, 0x00, 7, buf);
  return true;
}
 
Value for IMU are present, did you connect the IMU??
It's better to have the Console Output from the beginning with a just downloaded and no modified last AZURIT 1.08 DEV.
 
Yes it's normal the the RTC test don't work if the IMU is connected.
So normaly your DS1307 is working , now try with the azurit and verify that the eeprom work without pluging the IMU.
 
Oben