pH Measurement

The following functions are slight modifications that use pH units rather than mV, all the other class functions are available.

measurepH

Starts a pH measurement. Temperature compensation is available by passing the temperature.

Parameters

The function can be overloaded with the following parameters:

  • temperature the temperature of the solution.

Usage

uFire_pH::measurepH();
uFire_pH::measurepH(20.1);

Example

#include <uFire_pH.h>
uFire_pH pH;

pH.measurepH();
#include <uFire_pH.h>
uFire_pH pH;

pH.measurepH();

Related

Returns

the measured result in pH, or -1 on error. If the probe is unconnected, the value will float.

calibrateSingle

Calibrates the probe using a single point using a pH value.

Usage

uFire_pH::calibrateSingle(4.0);

Example

#include <uFire_pH.h>
uFire_pH pH;

float offset = pH.calibrateSingle(4.0);

Related

getCalibrateOffset

Returns

calibration offset

calibrateProbeLow

Calibrates the dual-point values for the low reading and saves them in the devices's EEPROM.

Dual point uses two measures for low and high points. It needs the measured value (reading value) and the known value (reference value). Calling calibrateProbeLow saves both the reading and reference value.

Parameters

  • solution_pH the pH of the calibration solution

Usage

uFire_pH::calibrateProbeLow(4.0);

Example

#include <uFire_pH.h>
uFire_pH pH;

float lowCalibration = pH.calibrateProbeLow(4.0)

Related

Returns

dual-point low calibration offset

calibrateProbeHigh

Calibrates the dual-point values for the high reading and saves them in the devices's EEPROM.

Dual point uses two measures for low and high points. It needs the measured value (reading value) and the known value (reference value). Calling calibrateProbeHigh saves both the reading and reference value.

When there are high and low calibration points, the device will automatically use them to adjust readings. To disable dual-point adjustment, call reset to remove all calibration data.

Parameters

  • solution_pH the pH of the calibration solution

Usage

uFire_pH::calibrateProbeHigh(10.0);

Example

#include <uFire_pH.h>
uFire_pH pH;

float highCalibration = pH.calibrateProbeHigh(10.0)

Related

Returns

dual-point high calibtration offset