-
Replace
port="COM8"
with port number currently assigned to O2 Sensor inmodbus.py
. -
Run
pip3 install pymodbus
, if necessary in terminal. -
Run
python3 modbus.py
in the directorymodbus.py
is 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_3
repectfully with the values noted in previous step. -
Verify
Mapped Value
is as expected for the 3 calibration gases. -
If all is expected, inside
config.json
, update thecurrent_1,current_2,current_3
fields in theO2_sensor_calibration
object.
forked from faded-giant/MABR_data_logger
-
Notifications
You must be signed in to change notification settings - Fork 0
AlexSongh/MABR_data_logger
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 94.7%
- Shell 5.3%