Skip to content

Latest commit

 

History

History
75 lines (57 loc) · 1.83 KB

README.md

File metadata and controls

75 lines (57 loc) · 1.83 KB

μFire ISE Probe - pH, ORP and temperature sensor

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.

Documentation

Usage

You can find an example in the sample directory.

Basic

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);
}

Orp

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

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);
}

Ph

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");
    }
}