Calibration - TheRealFalseReality/aquapi GitHub Wiki
AquaPi Sensors & EZO Circuits Calibration Instructions
This guide provides step-by-step instructions to calibrate various AquaPi EZO circuits. Refer to official Atlas Scientific Documentation for detailed probe specifications and additional commands.
[!NOTE]
- These instructions assume you are using the Home Assistant UI or the ESPHome Web Server.
- Use entities under AquaPi Device Integrations in Home Assistant for easier calibration. Calibration commands can be sent using selector entities or the "Actions" feature under Developer Tools.
- Proper probe handling is critical: Always rinse each probe with RO or distilled water after use, shake gently to remove air bubbles, and allow readings to stabilize for at least 30 seconds prior to calibration.
- Check that the white connector is securely attached to EZO circuits, as loose connections can prevent detection.
- Consider adding custom cards (see example at the end) for easy access to relevant calibration entities in Home Assistant.
Dallas Temperature
Calibrating the temperature sensor is optional but can improve accuracy.
Calibration Materials
- Ice water (use a cup with plenty of ice).
- Boiling water (exercise caution to prevent burns).
Calibration Steps
- Boiling Water Calibration:
- Place the temperature probe in boiling water.
- Wait 1–2 minutes for stabilization.
- Record the temperature, which should read close to 100°C (adjust for altitude if necessary).
- Freezing Water Calibration:
- Submerge the probe in ice water (ensure good ice coverage).
- Position the probe in the middle of the cup, not touching the sides or bottom.
- Wait 1–2 minutes for stabilization.
- Record the temperature, which should read close to 0°C.
- Configure ESPHome Offsets:
- Edit your ESPHome configuration file to adjust the recorded offsets:
substitutions: cal_0: "Recorded Freezing Temp (e.g., 2.0)" cal_100: "Recorded Boiling Temp (e.g., 97.0)" - Restart the AquaPi and compare readings with an analog thermometer.
- Edit your ESPHome configuration file to adjust the recorded offsets:
EZO-EC - Conductivity
Calibration Steps
- Set Output Units:
Use the entityEC - Command Selectto selectOutput Units - All (Default)and press the "Send Command" button. - Dry Calibration @ 0 µS/cm:
Select and send theCalibrate @ DRYcommand. This will reset all previous calibrations. - Low Calibration @ 12,880 µS/cm:
Select and send theCalibrate @ LOW = 12880command. Note: Readings do not change after this step. - High Calibration @ 80,000 µS/cm:
Select and send theCalibrate @ HIGH = 80000command. Readings will update after this step. - Verify Calibration:
SelectCheck Calibration. Confirm thatsensor.aquapi_XXXXXX_ec_command_resultoutputs2if both points are calibrated. - TDS Value Adjustment (Recommended):
Select and sendSet TDS Value to NaCl - 0.48for more accurate results when measuring Total Dissolved Solids.
EZO-PH - pH
Calibration Steps
- Midpoint Calibration (7.0 pH solution):
- Use
pH - Command Select. - Select and send the
Calibrate @ MID = 7command.
- Use
- Low Calibration (4.0 pH solution):
- Select and send the
Calibrate @ LOW = 4command.
- Select and send the
- High Calibration (10.0 pH solution):
- Select and send the
Calibrate @ HIGH = 10command. - Alternatively, you may use a
10.01solution and corresponding command if available.
- Select and send the
- Verify Calibration:
- Select and send the
Check Calibrationcommand. - Verify that
sensor.aquapi_XXXXXX_ph_command_resultoutputs:2for a two-point calibration (Low + Mid).3for a three-point calibration (Low, Mid, High).
- Select and send the
EZO-DO - Dissolved Oxygen
Calibration Steps
- Set Output Units:
Use theDO - Command Selectentity to selectOutput Units - All (Default)and press the "Send Command" button. - Air Calibration (9.09 mg/L):
- Select and send the
Calibrate @ DRYcommand (in the open air, at sea level). This will reset all previous calibrations.
- Select and send the
- Low Calibration (0 mg/L or 0% O₂):
- Submerge the sensor probe in 0 mg/L solution.
- Select and send
Calibrate @ 0%command for the circuit to recognize the zero-point calibration.
- Verify Calibration:
- Select and send the
Check Calibrationcommand. - Confirm that
sensor.aquapi_XXXXXX_do_command_resultoutputs2after both calibration steps.
- Select and send the
- Saltwater Compensation (Recommended):
- Select and send the
Salinity Compensation @ 35pptcommand for saltwater tanks. - Verify this setting using the
Salinity Compensation Valuecommand; the output will include the salinity inppt.
- Select and send the
EZO-ORP - Oxidation Reduction Potential
Calibration Steps
- Single-Point Calibration (225 mV Solution):
- Use the
ORP - Command Selectentity. - Select and send the
Calibrate @ 225 mVcommand. This will reset previous calibrations.
- Use the
- Verify Calibration:
- Select and send the
Check Calibrationcommand. - Confirm that
sensor.aquapi_XXXXXX_orp_command_resultoutputs1.
- Select and send the
EZO-PMP - Peristaltic Dosing Pump
[!TIP] Set up the dosing pump with tubing and a graduated cylinder. Prime the pump with the
Dose Continuouslybutton before starting calibration.
Calibration Steps
- Set Initial Volume:
- Enter a specific value (e.g.,
10) into theVolume to Doseinput field. - Use the
Dose Volumebutton to dispense the liquid into the graduated cylinder.
- Enter a specific value (e.g.,
- Measure Dispensed Volume:
- Measure the actual dispensed volume (e.g., it might be 8.4 mL).
- Input the measured value (e.g.,
8.4) into theVolume to Dosefield. - Press the
Set Calibration Volumebutton to save this calibration.
- Test Calibration:
- Enter a value into
Volume to Dose(e.g.,10) and test the pump using theDose Volumebutton. - If the dispensed amount is inaccurate, repeat the steps above to refine calibration.
- Enter a value into
Sensors Disabled by Default
The following EZO circuits are disabled by default in Home Assistant. Ensure you enable them in the Home Assistant UI before using them:
- EZO-CO₂ Circuit (Carbon Dioxide)
- EZO-HUM Circuit (Humidity)
- EZO-O₂ Circuit (Dissolved Oxygen)
- EZO-RTD Circuit (Temperature)
To enable them:
- Navigate to Settings > Devices & Services > Entities in Home Assistant.
- Filter by
disabled_by_default. - Enable the required entity.
Example Home Assistant Calibration Cards
Provide easy access to calibration commands and sensor values directly in Home Assistant.
Generic Sensor Calibration Card:
type: entities
entities:
- entity: sensor.aquapi_XXXXXX_conductivity
name: Conductivity Value
- entity: sensor.aquapi_XXXXXX_ec_raw_value
name: Raw Sensor Value
- entity: sensor.aquapi_XXXXXX_ec_command_result
name: Command Output
- entity: select.aquapi_XXXXXX_ec_command_select
name: Calibration Command Selector
- entity: button.aquapi_XXXXXX_ec_command_send_selected
name: Send Command
- entity: button.aquapi_XXXXXX_ec_read
name: Start Continuous Reading
header:
type: graph
entity: sensor.aquapi_XXXXXX_salinity
title: AquaPi - EC Sensor Calibration
Need More Help?
- Check the AquaPi Wiki or consult the official Atlas Scientific Documentation for advanced calibration and configuration options.