š Datasheet PDF DOC HTML
š¦ Arduino IDE and PlatformIO library PDF DOC HTML
1.
š½ Get Arduino
Install the Arduino IDE
2.
š¦ Install the library
Start the Arduino IDE, press the Sketch menu, and then Include Library > Manage Libraries
- Search for
Microfire
and install the library calledMicrofire Mod-ORP
3.
š Connect everything
- Connect the probe
- Make the I2C connections:
- Mod-ORP SDA to controller SDA
- Mod-ORP SCL to controller SCL
- Mod-ORP GND to controller ground
- Mod-ORP VCC to controller 3.3 or 5-volt
4.
š° Write some code
Below is the Basic example. It can be found in File > Examples > Microfire_Mod-ORP > Basic
in the Arduino IDE.
// include the header file
#include <Microfire_Mod-ORP.h>
Microfire::Mod_ORP::i2c orp;
void setup()
{
// start Serial and I2C
Serial.begin(9600);
Wire.begin();
// start the sensor
orp.begin();
}
void loop()
{
// take an ORP measurement
orp.measureORP();
// display the results
Serial.println((String) orp.mV + " mV");
Serial.println();
delay(1000);
}
5.
ā”ļø Upload the code
- Tell the Arduino IDE what board you are using. Press
Tools > Board
and find yours in the menu - Press the upload button
6.
š View the output
- Open the Serial Monitor by pressing
Tools > Serial Monitor
- The measurements should be displayed in the monitor, with updates every second