change
getAtlasAvg(phdata[1])
to
ph[1]->getAvg()
We posted at the same time, thanks I figured it out
change
getAtlasAvg(phdata[1])
to
ph[1]->getAvg()
you either define an I2C address or a Serial port in config.h and the code will handle the rest.
Did you switch your stamp to i2c mode?
The LED light must be blue if it is in I2C mode.
I like the way they allow you to switch mode by shorting PRB and TX pins.
One of the reasons I now just leave the LED light on is so I can tell what mode the stamp is in.
I can now really get back to working on this with world series now over, what a great series with an sf giants win.
If I go to Controller Setup and Sensors in Orp in the Sensor Reading I'm getting the correct reading and then it add other numbers to the correct reading back and forth.
is the reading shown in the main page correct?
You don't mean the orp and ph numbers are getting mixed up right?
Try running your orp probe on a serial program and send the c command or a series of r commands to see if you consistently get the correct reading.
d0ughb0y, This is now the 3rd time during my build that I am switching controllers lol. Yours has absolutely everything I need from one and your Web access looks brilliant so thank you for sharing what you have done.
Now to the questions lol, I had already built my atlas circuit around a multiplexer chip mc74hc4052n. Will this work with your code using one set of tx/rx or will I need to take that off?
Also, can you use it remotely or do you need to be on the same network as the controller?
Thanks again, I can't wait to upload the code and try it out
No it can be different readings
No the pH readings are Ok.
I done that and the reading are constant.
Look at the screen shots as of right now the reading on the main screen is correct, but later it could jump up to any number
if you have 3 or less atlas stamps, then it will be simpler to just connect directly to the 3 serial ports of the mega.
if you want to keep using the multiplexer, you will need to modify the code to make it work with the multiplexer, it will not work as is. I don't think it will be too complicated to get it to work.
wgraham,
what is that phone browser you are using? it does not look like safari on iphone or chrome on andriod phone.
wgraham,
I just updated github to fix what I described in my previous post. I am not sure if it will fix the problem you are seeing.