! This project is currently (2019/09/24) under construction.
! Currently only the pH, ORP and the RTD EZO™ device are supported.
Open source UWP library for communication with Atlas Scientific EZO™ devices. This library covers all I2C commands. You can trigger measurements, set temperature compensation, get device info and state, due the calibration, import/export calibration data, etc.
This library targets UWP IoT projects! Download directly from NuGet Rca.EzoDeviceLib on NuGet.
- Support for EZO™ pH device
- Support for EZO™ ORP device
- Support for EZO™ RTD device
Download the source from GitHub or get the compiled assembly from NuGet Rca.EzoDeviceLib on NuGet.
Some basic usage examples
In this example is the I2C address of conneted EZO™ device set to default (0x63 for EZO™ pH Circuit):
var myEzoPhSensor = new PhSensor();
await myEzoPhSensor.InitSensorAsync();
Or create an instance with custom parameters:
var myEzoPhSensor = new PhSensor(0x1A, I2cBusSpeed.FastMode) //set specific I2C address (0x1A) and bus speed
await myEzoPhSensor.InitSensorAsync();
Or create an instance with timed (1 sec. in this case) firing event. Note: Not supported for all sensors/devices!
static EzoRtd myEzoRTDSensor = new EzoRtd(0x66, new TimeSpan(0, 0, 1), ReadingMode.Continuous);
//...
double ph = myEzoPhSensor.GetMeasValue();
With tempreature compensation:
double temperature = 23.5; //temperature in °C
double phCompensated = myEzoPhSensor.GetMeasValue(temperature);
If your event is firing from BackgroundTask you can access it from anywhere:
myEzoRtdSensor.ValueChanged += TempIn_ValueChanged;
Dont forget to unsubscribe:
myEzoRtdSensor.ValueChanged -= TempIn_ValueChanged;
For fast hardware integration there is a cool project from Whitebox. The Tentacle T3 HAT accepts three Atlas Scientific EZO™ devices, two of them are electrically isolated.
This library is made possible by contributions from:
- Elias Rümmler (@rmmlr) - core contributor
- Vlad (@tvlada73) - Add
EzoTimedBase
Rca.EzoDeviceLib is licensed under MIT. Refer to LICENSE.txt for more information.
Contributions are welcome. Fork this repository and send a pull request if you have something useful to add.
- Rca.Sht85Lib - Another sensor library for the Sensirion humidity sensor SHT85.
- EzoGateway - UWP App to bring your EZO™ devices in the IoT.