Hi
Im running simple code to check PH and ORP on my UNO and leonardo boards and Im getting good values .
when Im loading the same code to my Yun board the numbers that Im getting from the analog ports are different ( higher values ) from the Leonard and UNO boards .
As far as i know the Yun should work the same as the other board analogRead() dose it ?
this is my code:
#include <OneWire.h>
delay(1000); //just here to slow down the output so it is easier to read
analogRead(A0); // pH Level equation
float PHprobe = analogRead(A0); // pH Level equation
float PHLevel = (0.0178 * (PHprobe) - 1.889); //PHprobe -26 //-14
float HOT_pH = -1.9 - (((2.5 - PHprobe)/200) / (0.257179 + 0.000941468 * temperature)); // - 1.9
Serial.println(PHLevel);
Serial.println("Request sent PH");
delay(1000); //just here to slow down the output so it is easier to read
int mV;
analogRead(A1);
float ORPprobe = analogRead(A1);
mV = ((2.5 - ORPprobe / 200) / 1.037)* 1000;
Serial.println(mV);
Serial.println("Request sent ROX");