04-01-2019, 02:25 PM
Hi Mike, yeah this behavior does seem strange, I don't know how the ATO timer doesn't time out, that seems to say the code is ok but maybe a hardware issue. Add that line as you are trying, it will tell us a lot. This is done on the controller but first go to the ATO.h tab and scroll to the bottom of it. In v5.10 on line 254 you will have /* and on line 266 will see */, delete both of these lines which will uncomment all the lines between.
Now find line 98 you'll see "serialPrintln5(_sensorValue[i]);" below this line add a new line and paste in the following.
Serial.print(F("_sensorValue: ")); for (int t = 0; t < 21; t++){Serial.print(_sensorValue[t]); Serial.print(F(","));} Serial.println(F(""));
After you upload open the serial monitor and when it startups up you should see a bunch of data from the bottom lines and every second the line above will print the ATO analog value being read.
Now find line 98 you'll see "serialPrintln5(_sensorValue[i]);" below this line add a new line and paste in the following.
Serial.print(F("_sensorValue: ")); for (int t = 0; t < 21; t++){Serial.print(_sensorValue[t]); Serial.print(F(","));} Serial.println(F(""));
After you upload open the serial monitor and when it startups up you should see a bunch of data from the bottom lines and every second the line above will print the ATO analog value being read.