-
Replace
port="COM8"with port number currently assigned to O2 Sensor inmodbus.py. -
Run
pip3 install pymodbus, if necessary in terminal. -
Run
python3 modbus.pyin the directorymodbus.pyis located. -
Script should display
Raw value: <RAW DEVICE CURRENT> mA, Mapped value: <O2 BASED ON CAL POINTS>%" -
Perform a 3 point calibration as follows:
- For 0% oxygen (
percent_1), apply pure nitrogen gas to O2 sensor, note raw device current after it is stable. - For 10.475% oxygen (
percent_2), apply a 50% nitrogren gas, 50% Air mixture to O2 sensor, note raw device current after it is stable. - For 20.95% oxygen (
percent_3), apply 100% air to to O2 sensor, note raw device current after it is stable.
- For 0% oxygen (
-
Replace
current_1,current_2,current_3repectfully with the values noted in previous step. -
Verify
Mapped Valueis as expected for the 3 calibration gases. -
If all is expected, inside
config.json, update thecurrent_1,current_2,current_3fields in theO2_sensor_calibrationobject.
AlexSongh/MABR_data_logger
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|