I will go through the code with suggestions made and see what I can eliminate to free up sram
for answers to questions
lcd shows time when it stops I know it has locked up and a reset brings it back to life
ground every thing is 5v so I have 1 common ground
components consist of 4 relays optically isolated, ds18b20 temp sensor, lcd on i2c, rtc on i2c, 2 float switches connected to ground and input pins I thought these where the problem because this started when I installed them but stayed after I took them out, and a bluetooth serial board (hc-06).
I did auto format does this just organize spacing etc what does this do
if (menustate > 6) save(), menustate = 0; this would be the same as the following as I understand it or am i wrong
if (menustate > 6){
save()
menustate = 0;
}
(!sensors.getAddress(Sump, 0)); this is a copy of someone elses work and I incorporated it into my own not sure how it works but it defines Sump as the first sensor it gets a address for
PH = sum/15/46; not used I can take it out I havent got PH yet this was the way I was going to do it but now I found a i2c circuit and will need to change the code anyways
save(); is called up anytime I do something in the menu after I get back to the main menu it compares what is in the eeprom to what the controller has if I changed anything it notices and writes my new value to the eeprom
timer.setInterval(1000L, SecondPulse);
timer.setInterval(3600000L, hourpulse); I have timed this and it was working without the long or L and wouldnt it be the hourpulse that you are saying is out of range because second pulse of 1000 is in the range of (?32768 to 32767) or am I reading you wrong
THANKS FOR THE HELP!!!!! I appreciate it this is my first time doing anything more complex then blink