The μFire ISE Probe Interface is an I²C sensor that can read a pH probe. Attach a waterproof temperature sensor for temperature compensation with the attached connector.
You can find an example in the sample directory.
It is possible to read the basic value (Electric Potential) from the probe.
using (UFireIse uFireIse = new UFireIse(device))
{
Console.WriteLine("mV:" + uFireIse.ReadElectricPotential().Millivolts);
}
To read the ORP (OxidationReductionPotential) value use this example
using (UFireOrp uFireOrp = new UFireOrp(device))
{
if (uFireOrp.TryMeasureOxidationReductionPotential(out ElectricPotential orp))
{
Console.WriteLine("Eh:" + orp.Millivolts);
}
else
{
Console.WriteLine("Not possible to measure pH");
}
}
Calibration of the probe using a single solution. Put the probe in a solution where the pH (Power of Hydrogen) value is known (in this example we assume it is 7). The calibration are saved in μFire ISE Probe Interface, until you call ResetCalibration. It is possible to run without calibration.
using (UFirePh uFire_pH = new UFirePh(device))
{
uFire_pH.CalibrateSingle(7);
}
To read the Ph (Power of Hydrogen) value use this example
using (UFirePh uFire_pH = new UFirePh(device))
{
Console.WriteLine("mV:" + uFire_pH.Measure().Millivolts);
if (uFire_pH.TryMeasurepH(out float pH))
{
Console.WriteLine("pH:" + pH);
}
else
{
Console.WriteLine("Not possible to measure pH");
}
}