I just updated github with all the fixes, so you can just use that and see if it works. I think the orp reading part will work now.
Please let me know what other problem you see after loading the latest code.
thanks.
No problem I will test later today
void serialEvent1() {
atlasHandler(phdata[0]);
}
void serialEvent2(){
atlasHandler(phdata[1]);
}
void serialEvent3() {
atlasHandler(orpdata);
}
make sure to edit the end part of Sensors.ino to enable the SerialEvent2 and SerialEvent3 and pass the "data" variable for the sensor connected to the corresponding serial port.
I have to figure a way to automatically do this from #define so all edits are just done in config.h.
in your case, if Serial1 is connected to ph0, Serial2 to ph1, Serial3 to ORP
Code:void serialEvent1() { atlasHandler(phdata[0]); } void serialEvent2(){ atlasHandler(phdata[1]); } void serialEvent3() { atlasHandler(orpdata); }
Ok, now come to think of it, if the serialevents are not enabled, that will also cause the sensor reading to not update (Ph2 and ORP). You basically get the initial reading upon initialization. I think it should all work now.
Ok, now come to think of it, if the serialevents are not enabled, that will also cause the sensor reading to not update (Ph2 and ORP). You basically get the initial reading upon initialization. I think it should all work now.
if (client.connect("host",port)==1)
if (client.connect("host",port))
I received my Atlas and probe...got them working so far. My next question is about the ATO. I have the ultra sensor working and just one float switch which i see change open/closed. Now how can I get this to change an outlet state to turn on a pump. Is there a outlet name that should be used?
void checkATO(){
if (conf.outletRec[ATO].mode == _auto) {
if (!getATO2()&& !getATO1() && isOutletOn(Return)
&& sonaravg < conf.sonalertval*10) {
_outletOn(ATO);
return;
}
_outletOff(ATO);
}
}
<conf.sonaralertval*10
<conf.sonalertval*10) {
Make sure you defined the ph sensors like this
#define PHDEF {{"pH",_ph,Serial1},{"CalRX",_ph,Serial2}}
#define PHALERT {{7.5,9.0},{6.0,7.0}}
is the reading the same in the lcd and in the web page?
I have them define like you have it and I don't have a lcd hook up, it showing it in the web