Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display question
#24
Hi Jmcadsl, that is strange, it does sound like the RTC locks up in some form. I've been playing with mine and added some better troubleshooting code which I'm hoping verifies it's the RTC. Make the following changes to the controller sketch.

Go to line 1235 and you should see the following.

Code:
      Wire1.beginTransmission(80);
      error = Wire1.endTransmission();  
      if (error == 0) {}//Serial.println("found eeprom");   
      else i2cBusRecovery();      

Replace those 4 lines with the following 5 lines.

Code:
     Wire1.beginTransmission(104);
     error = Wire1.endTransmission();  
     if (error == 0) {Serial.println("found RTC");   }
     else if (error == 4) {Serial.println("found RTC but error reading");}
     else {Serial.println("RTC Missing"); i2cBusRecovery();}

With this change every 3 seconds it'll look for the RTC instead of eeprom, if it sees the RTC and no errors it'll print "found RTC" to serial monitor in Arduino IDE. If it finds it but doesn't get proper data it'll say "found RTC but error reading" and finally if it doesn't see the RTC it'll say "RTC missing" and will run the i2cBusRecovery function to try and fix the issue which obviously isn't working for you because the I2C bus is likely ok.

To test this open the serial monitor in Arduino IDE, once controller is running every 3 seconds you should see one of those lines above. I've been monitoring mine and noticed about every 20 to 30 tests it says "found RTC but error reading" but the next reading it'll go back to "found RTC" which is good. I'm wondering if yours will get stuck at "error reading" line which means the I2C bus still sees the RTC but it's not getting good data. If you unplug the RTC from controller you'll see it jumps to "RTC missing" and you'll get an email saying "I2C Recovery Ran". Plug it back in and it should go back to "found RTC" at least that's how its reacting for me.

Here's a change to make so you only get one email per controller restart, don't want to use up the quota from SMPT2GO so best to add this. 

Find line 2584 and you should see

Code:
void i2cBusRecovery()

just above that line add the following.

Code:
byte i2cEmailSent = 0;


Then find line 2609 and you should see

Code:
 i2cEmail();

replace that with the following.

Code:
 if (i2cEmailSent == 0) {i2cEmail(); i2cEmailSent = 1;}

Now you can upload changes and test it out.
Reply to top


Messages In This Thread
Display question - by jmcadsl - 04-17-2018, 11:54 AM
RE: Display question - by Rob F - 04-17-2018, 06:33 PM
RE: Display question - by jmcadsl - 04-18-2018, 12:17 PM
RE: Display question - by Rob F - 04-19-2018, 01:02 AM
RE: Display question - by jmcadsl - 04-19-2018, 01:05 AM
RE: Display question - by Rob F - 04-19-2018, 01:17 AM
RE: Display question - by jmcadsl - 04-20-2018, 02:13 AM
RE: Display question - by Rob F - 04-20-2018, 08:59 PM
RE: Display question - by jmcadsl - 04-21-2018, 01:10 AM
RE: Display question - by Rob F - 04-21-2018, 02:18 AM
RE: Display question - by jmcadsl - 04-23-2018, 11:54 AM
RE: Display question - by Rob F - 04-23-2018, 08:11 PM
RE: Display question - by jmcadsl - 04-24-2018, 08:12 AM
RE: Display question - by Rob F - 04-25-2018, 12:02 AM
RE: Display question - by jmcadsl - 04-25-2018, 05:00 AM
RE: Display question - by Rob F - 04-25-2018, 04:57 PM
RE: Display question - by jmcadsl - 04-26-2018, 04:34 PM
RE: Display question - by Rob F - 04-26-2018, 04:45 PM
RE: Display question - by jmcadsl - 04-27-2018, 01:58 AM
RE: Display question - by Rob F - 04-27-2018, 05:54 PM
RE: Display question - by jmcadsl - 05-06-2018, 02:29 AM
RE: Display question - by jmcadsl - 05-06-2018, 04:41 AM
RE: Display question - by jmcadsl - 05-06-2018, 09:11 AM
RE: Display question - by Rob F - 05-06-2018, 07:11 PM
RE: Display question - by jmcadsl - 05-13-2018, 12:57 PM
RE: Display question - by Rob F - 05-13-2018, 05:04 PM
RE: Display question - by jmcadsl - 08-19-2018, 12:44 PM
RE: Display question - by Rob F - 08-19-2018, 05:27 PM
RE: Display question - by jmcadsl - 08-20-2018, 01:54 AM
RE: Display question - by Rob F - 08-20-2018, 10:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Display Cable Right one Gordon Lehmann 2 4,470 03-02-2019, 03:55 AM
Last Post: Gordon Lehmann
  Troubleshoot display board Skwerl77 7 7,179 08-22-2018, 05:03 PM
Last Post: Rob F
  pH Probe Question aquaalgae 1 3,552 06-28-2018, 04:51 PM
Last Post: Rob F
Question Question before ordering philips 11 12,644 01-13-2018, 01:06 AM
Last Post: Rob F

Forum Jump:

Current time: 04-27-2024, 10:58 AM