Tutorial

int i;
int max,min;
double avg;
long amount=0;
if(number<=0){
Serial.println("Error number for the array to avraging!/n");
return 0;
}
if(number<5){ //less than 5, calculated directly statistics
for(i=0;i<number;i++){
amount+=arr[i];
}
avg = amount/number;
return avg;
}else{
if(arr[0]<arr[1]){
min = arr[0];max=arr[1];
}
else{
min=arr[1];max=arr[0];
}
for(i=2;i<number;i++){
if(arr[i]<min){
amount+=min; //arr<min
min=arr[i];
}else {
if(arr[i]>max){
amount+=max; //arr>max
max=arr[i];
}else{
amount+=arr[i]; //min<=arr<=max
}
}//if
}//for
avg = (double)amount/(number-2);
}//if
return avg;
}
Precautions
The electrode used for the first or long set without re-use, the electrode bulb and the sand core, immersed in the
3NKCL solution activated eight hours.
The electrode plug should be kept clean and dry.
Electrode reference solution is the 3NKCL solution.
Measurement should be avoided staggered pollution between solutions, so as not to affect the accuracy of
measurement.
Electrode blub or sand core is defiled which will make PTS decline, slow response. So, it should be based on the
characteristics of the pollutant, adapted to the cleaning solution, the electrode performance recovery.
The electrode should not be long-term immersed in acid chloride solution.
Electrode when in use, the ceramic sand core and liquid outlet rubber ring should be removed, in order to make salt
bridge solution to maintain a certain velocity.
Documents
Schematic
PCB Design layout
pH Electrode Manual
Arduino Sample Code
Zips For All Above
Go Shopping pH meter(SKU:SEN0161)
Category: DFRobot > Sensors & Modules > Sensors > Liquid Sensors
Categories: Product Manual SEN Series Sensors