跳到主要内容

Grove - EC Sensor Kit

pir

pir

With the development of technology,our environments face large challenge.We need a tool to preliminary test whether the water quality are reach the standard.Grove EC Sensor is a analog electrical conductivity meter.The electrical conductivity sensor (EC sensor) measures the electrical conductivity in a solution which usually used for aquaculture and water quality testing. The Grove - Electrical Conductivity Sensor is specially designed for a low-cost system with a relatively high accuracy which can cover most applications. The Grove connector and BNC probe interface make it easy to use and very suitable for Arduino and Raspberry Pi project. This Kit includes an EC probe and a driver board, and the driver board support both 3.3V and 5V system.

备注
This product is non-RoHS certified.

Feature

  • Widely used for most applications of aquaculture and water quality testing
  • Compact size for easy deployment
  • Support with both Arduino and Rasberry Pi
  • Cost-effective

Specification

ItemsValues
Operating voltage3.3V/5V
EC Range0-2000us/cm
Resolution±5%(STP)
Response time<10sec
Probe InterfaceBNC
Operating temperature5-80℃

Platform Supported

ArduinoRaspberry Pi

pir

pir

Getting Started

Materials Requied

Arduino unoGrove-EC Sensor kitbase shield

pir

pir

pir

Get ONE NowGet ONE NowGet ONE Now

Hardware Connection

pir

:::tip Please plug the USB cable, Grove-EC Sensor Interface into Arduino Uno board Interface gently, otherwise , you may damage the port. ::: - **Step 1.** Plug Grove-EC Sensor into Interface **A1** of a base shield with a Grove Cable.
  • Step 2. Connect a base shield to Arduino Uno.

  • Step 3. Connect Arduino Uno to PC via a USB cable.

  • Step 4. Download the code, please refer to the software part.

  • Step 5. Run the code and the outcome will display on the screen of Serial Monitor in your Arduino IDE.

Software

备注
    If this is the first time you work with Arduino, we strongly recommend you to see [Getting Started with Arduino](https://wiki.seeedstudio.com/Getting_Started_with_Arduino/) before the start.
  • Step 1. Download the Demo code.

  • Step 2. Add the whole DFRobot_EC_master.zip file to your Arduino IDE library file. You can refer to How to install an Arduino library

  • Step 3. Open the DFRobot_EC_Test example file with your Arduino IDE.

pir

  • Step 4. Upload the demo. If you do not know how to upload the code, please check How to upload code.

Software Code

#include "DFRobot_EC.h"
#include <EEPROM.h>

#define EC_PIN A1
float voltage,ecValue,temperature = 25;
DFRobot_EC ec;

void setup()
{
Serial.begin(115200);

ec.begin();
}

void loop()
{
static unsigned long timepoint = millis();
if(millis()-timepoint>1000U) //time interval: 1s
{
timepoint = millis();
voltage = analogRead(EC_PIN)/1024.0*5000; // read the voltage
//temperature = readTemperature(); // read your temperature sensor to execute temperature compensation
ecValue = ec.readEC(voltage,temperature); // convert voltage to EC with temperature compensation
Serial.print("temperature:");
Serial.print(temperature,1);
Serial.print("^C EC:");
Serial.print(ecValue,2);
Serial.println("ms/cm");
}
ec.calibration(voltage,temperature); // calibration process by Serail CMD
}

float readTemperature()
{
//add your code here to get the temperature from your temperature sensor
}
备注
 - Before detecting the target solution, the sensor **MUST** be calibrated by conductivity solutions, and it also **MUST** be put into clean water before detecting a new kind of solution and swiped.

- Before being measured, the electrode must be calibrated with a standard buffer solution. In order to obtain more accurate results, the known conductivity solutions value should be reliable, and closer to the measured one.

- Do not immerse in liquid for a long time. Otherwise this will shorten the life of the probe.The platinum black layer is attached to the surface of the sheet metal in the probe. It should avoid any object touching it. It can only be washed with distilled water, otherwise, the platinum black layer will be damaged, resulting in an inaccurate measurement.

- The sensor **MUST NOT** be dipped in the detecting liquid for a long time.

To ensure accuracy, the probe needs to be calibrated for its first use and after not being used for an extended period of time. The following steps use two-point calibration and therefore require standard buffer solutions of 1413us/cm and 12.88ms/cm. The following steps show how to operate two-point calibration.

  • Step 5. After you have upload the code to Arduino, open the serial monitor,you can see the temperature and electrical conductivity like below picture.

pir

- **Step 6.** Use distilled water to wash the probe ,then absorb the residual water-drops with paper. Insert the probe into the 1413us/cm standard buffer solution, stir gently, until the values are stable. Input enterec command in the serial monitor to enter the calibration mode.

pir

- **Step 7.** Input calec commands to start the calibration. The program will automatically identify which of the two standard buffer solutions is present: either 1413us/cm and 12.88ms/cm. In this step, the standard buffer solution is 1413us/cm.

pir

  • Step 8. When the calibration is successful,input exitec command to save the relevant parameters and exit the calibration mode.

pir

After you finished the above steps, the first point calibration is completed. The second point calibration is the same procedure. Here we use the 12.88ms/cm standard buffer solutions. The calibration process is not repeated here.

After completing the above steps, the two-point calibration is completed, and then it can be used for actual measurement. The relevant parameters in the calibration process have been saved to the EEPROM of the main control board.

Schematic Online Viewer

Resources

Tech Support

Please do not hesitate to submit the issue into our forum.


Loading Comments...