ufire-ise-device

justind000/ufire-ise/ufire-ise-device

Measure pH or ORP, and temperature with the uFire ISE device.
ufire-ise-device
@/ufire-ise-device
Measure pH or ORP, and temperature with the uFire ISE device.
STARTpulse
ufire-ise-device
PH
TEMP
MV
START
MVnumber
Measured mV from probe.
TEMPnumber
Temperature in Celsius
PHnumber
Measured pH
To use the node in your project you should have the justind000/ufire-ise library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

#pragma XOD require "https://github.com/u-fire/Isolated_ISE"

{{#global}}
#include <ISE_pH.h>
{{/global}}

struct State {
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) {
    if (!isInputDirty<input_START>(ctx))
        return;

    ISE_pH pH;
    float temp = pH.measureTemp();
    emitValue<output_PH>(ctx, pH.measurepH(temp));
    emitValue<output_TEMP>(ctx, temp);
    emitValue<output_MV>(ctx, pH.mV);

}