The DFRobot EC Sensor is a specialized electronic component designed to measure the electrical conductivity (EC) of a solution. This sensor is widely used in applications such as water quality monitoring, hydroponics, aquaculture, and environmental testing. By providing accurate EC measurements, it helps in determining the concentration of dissolved salts and other conductive substances in a solution, which is crucial for maintaining optimal conditions in various systems.
Parameter | Value |
---|---|
Operating Voltage | 3.3V - 5V |
Operating Current | < 10mA |
Measurement Range | 0 - 20 mS/cm |
Accuracy | ± 2% |
Temperature Range | 0°C - 60°C |
Output Signal | Analog Voltage |
Interface | PH2.0-3P |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V - 5V) |
2 | GND | Ground |
3 | AOUT | Analog output voltage proportional to EC value |
// DFRobot EC Sensor Example Code for Arduino UNO
// This code reads the analog output from the EC sensor and converts it to an EC value.
const int EC_PIN = A0; // Analog pin connected to AOUT of the EC sensor
float voltage; // Variable to store the sensor output voltage
float ecValue; // Variable to store the calculated EC value
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud rate
pinMode(EC_PIN, INPUT); // Set the EC_PIN as an input
}
void loop() {
voltage = analogRead(EC_PIN) * (5.0 / 1023.0); // Convert analog reading to voltage
ecValue = voltage * 1000; // Convert voltage to EC value (example conversion factor)
Serial.print("Voltage: ");
Serial.print(voltage);
Serial.print(" V, EC Value: ");
Serial.print(ecValue);
Serial.println(" uS/cm");
delay(1000); // Wait for 1 second before taking the next reading
}
By following this documentation, users can effectively utilize the DFRobot EC Sensor in their projects, ensuring accurate and reliable EC measurements for various applications.