Atlas Analog Dissolved Oxygen Sensor Calibration

A walkthrough of the Atlas Analog Dissolved Oxygen Sensor calibration procedure.

Materials

1x Arduino Zero 1x Laptop 1x USB to micro-USB cable 3x M-F Jumper Wires 1x Arduino Micro Jumper 1x Bottle of Atlas Science Electrolyte Solution 1x Bowl of Tap Water

Calibration Procedure

  1. Grab the Arduino Zero that’s being deployed in the field

  2. Attach the micro jumper to the debugger chip enable wires

  3. If the dissolved oxygen sensor has not been serviced in over a month, replace / fill the Electrolyte solution in the sensor membrane

  4. Wire the dissolved oxygen sensor to the Arduino Zero board

Untitled

  1. Connect the laptop to the Arduino Zero using a USB - micro-USB cable.

Untitled

  1. Open the Visual Studio Code IDE

Untitled

  1. Open the device-firmware project

Untitled

  1. Open the Command Palette

Untitled

  1. Open the CMake Cache Editor by entering the command “CMake: Edit CMake Cahce (UI)” into the Command Palett

Untitled

  1. Check the EMA_BUILD_TESTS to ON, to set the program to run the test tasks

Untitled

  1. Enter CALIBRATE_DO_SENSOR into the EMA_TEST field to set the conditional compilation for the ifdef CALIBRATE_DO_SENSOR task

Untitled

  1. Click the Save button to save the updates to the CMake Cache Editor

Untitled

  1. Press “F7” to flash the device with the new code

  2. Run the program in debug mode

  3. Add a debug point to the vtask delay after the sensor measure command

  4. Verify that measurements are being received

  5. If successfully receiving measurements, continue, else check the sensor wiring

  6. Dip the probe into water

  7. Remove the probe from the water and twirl it around in the air

  8. Twirl the probe for a few minutes and start debugging the program

  9. Once the sensor measurements have stabilized, record the millivoltage of the measurement

  10. Edit the calibration variable to successfully calibrate the sensor

  11. Repeat steps 14 - 16

  12. If successfully calibrated the sensor should show the dissolved oxygen percentage of around 100%