Wiki

This version (27 Jan 2021 22:33) was approved by Robin Getz.The Previously approved version (03 Jan 2021 22:04) is available.Diff

Electrochemical Water Quality Measurement Demo

General Description/Overview

The CN0428_example is a demo using the EVAL-CN0428-EBZ, the EVAL-M355-ARDZ-INT and the Arduino Uno board as a system to detect several important parameters that affect water quality, including chemical indicators, biological and bacteriological indicators and even some low level contaminants like heavy metals.

The CN0428 circuit shown is a modular sensing platform that allows the user to design a flexible electrochemical water quality measurement solution. Its high level of integration enables an electrochemical measurement platform applicable to a variety of water quality probes including pH, oxidation reduction potential (ORP), and conductivity cells.

This example uses three types of boards:

  • The EVAL-CN0428-EBZ Water Sensor Board

  • The EVAL-M355-ARDZ-INT Arduino Shield Board
  • The Arduino Uno Board

Using the specified setup the system is capable of measuring pH, Conductivity, Temperature and ORP of a solution. It can be configured for customized measurements such as Dissolved Oxygen (DO) measurement, Ion Concentration measurement, i.e., Ion Selective Electrode (ISE) measurement and many other water quality factors. Up to 4 sensor boards can be connected for measurements simultaneousl and temperature can be measured on one or all sensor boards.

General Setup

Demo Requirements

The following is a list of items needed in order to replicate this demo.

Setting up the Hardware

  1. Before plugging all boards together, user should ensure the switch S2 is set to “I2C” on the EVAL-M355-ARDZ-INT shield board.
  2. Connect up to 4 EVAL-CN0428-EBZ to the EVAL-M355-ARDZ-INT and secure them with the included hardware as shown in the pictures. This mounting should include two bolts, two standoffs and two nuts for each of the EVAL-CN0428-EBZ board. Use of the hardware mount for the EVAL-CN0428-EBZ board is strongly recommended to ensure mechanical stability and to protect the Samtec connector on the bottom of the board.

  3. Connect the system to the Arduino connectors DIGITAL (PWM~), POWER, ANALOG IN and ICSP of the Arduino Uno board.
    • Note, the boards should only plug together one way, preventing reverse connections.
  4. Choose the desired measurement probes and connect them to the EVAL-CN0428-EBZ boards.
  5. Plug in the Type B USB cable into the USB port on the Arduino Uno, and the other end into the PC or laptop.

Obtaining the Source Code

We recommend not opening the project directly, but rather make a local copy in your workspace and open it using Arduino/Genuino IDE.

The source code and include files of the CN0428_example can be found here:

Project Structure

The CN0411_example is a C Arduino sketch. All files are in the same folder as the .ino file and include the source and header files.

Compiling, Verifying, and Programming

  1. Once the project has been imported and the software parameters have been appropriately configured, you must Compile/Verify the project within the Arduino IDE. You can do this by clicking on the Sketch menu, and then on the Compile/Verify option.
  2. Once the project is compiled and free of errors, you can now upload the project to the Arduino Uno. Click on the Sketch menu item, and then click Upload.

These two steps can also be done using the quick buttons on the Arduino sketch. Check out the image below for locations of the quick buttons.

Outputting Data

Data is output using the USB cable from the Arduino to the PC. The USB port acts as a serial terminal to display the data being transmitted via UART. Opening the serial terminal window from the Arduino IDE is very easy, simply click on the button shown in the picture below.

Serial Terminal Output

You may need to configure the serial terminal depending on the current settings of the Arduino IDE. Make sure the settings are as follows:

  Select COM Port
  Baud rate: 115200
  Data: 8 bit
  Parity: none
  Stop: 1 bit
  Flow Control: none


Tools Download and Help

The Arduino tools are easy to use, and there are many tutorials and users guides to help learn how to use the Arduino IDE.

For more information on how to use the tool basics, please check out the Arduino tutorials page.

To download the Arduino tools, check out the Arduino software page.

End of Document

resources/eval/user-guides/arduino-uno/reference_designs/demo_cn0428.txt · Last modified: 27 Jan 2021 22:32 by Robin Getz