Grove - Turbidity Sensor Meter for Arduino V1.0
The Grove turbidity sensor can measure the turbidity of the water (the number of suspended particles).
The optical sensor of this module can measure the density of turbid water and the concentration of extraneous matter using the refraction of wavelength between photo transistor and diode. By using an optical transistor and optical diodes, an optical sensor measures the amount of light coming from the source of the light to the light receiver, in order to calculate turbidity of water.
The output mode can be selected by adjusting the switch on the board. Supports analog and digital output. The sensitivity can be adjusted by the on-board knob.
Features
- Low power consumption
- Small size: 2.0cm x 4.0cm Grove module
- Only 3 pins needed, save I/O resources
- Easy to use: Grove connector, plug and play
- Output mode optional, support analog output and digital output
More details about Grove modules please refer to [Grove System](https://wiki.seeedstudio.com/Grove_System/)
Specification
Parameter | Value/Range |
---|---|
Operating Voltage | 3.3V/5V DC |
Output Interface | Analog / Digital |
Connector | 1 Grove / 1 Power interface |
Size | 20*40mm |
Typical applications
- Measure the water pollution degree of washing machines such as dishwashers to determine the optimal washing time and rinsing times.
- Industrial site control.
- Environmental wastewater treatment.
Hardware Overview
- **Digital to Analog Switch**- "D" is the digital output, the threshold of high and low level can be adjusted by on-board knob.
- "A" is the analog output, the output value will decrease with the increase of liquid turbidity.
Platforms Supported
Arduino | Raspberry Pi | BeagleBone | Wio | LinkIt ONE |
---|---|---|---|---|
The platforms mentioned above as supported is/are an indication of the module's software or theoritical compatibility. We only provide software library or code examples for Arduino platform in most cases. It is not possible to provide software library / demo code for all possible MCU platforms. Hence, users have to write their own software library.
Getting Started
Play With Arduino
If this is the first time you work with Arduino, we firmly recommend you to see [Getting Started with Arduino](https://wiki.seeedstudio.com/Getting_Started_with_Arduino/) before the start.
Materials required
Seeeduino V4.2 | Grove - Turbidity Sensor | Base Shield |
---|---|---|
Get One Now | Get One Now | Get One Now |
**1** Please plug the USB cable gently, otherwise you may damage the port. Please use the USB cable with 4 wires inside, the 2 wires cable can't transfer data. If you are not sure about the wire you have, you can click [here](https://www.seeedstudio.com/Micro-USB-Cable-48cm-p-1475.html) to buy.
**2** Each Grove module comes with a Grove cable when you buy. In case you lose the Grove cable, you can click [here](https://www.seeedstudio.com/Grove-Universal-4-Pin-Buckled-20cm-Cable-%285-PCs-pack%29-p-936.html) to buy.
Analog Output
Hardware Connection
Step 1. The switch on the sensor selects A.
Step 1. Connect Grove - Turbidity Sensor to port A0 of Grove-Base Shield.
Step 2. Plug Grove - Base Shield into Seeeduino.
Step 3. Connect Seeeduino to PC via a USB cable.
If we don't have Grove Base Shield, We also can directly connect Grove - Turbidity Sensor to Seeeduino as below.
Seeeduino | Grove - Turbidity Sensor |
---|---|
5V | Red |
GND | Black |
Not Conencted | White |
A0 | Yellow |
Software
- Step 1. Copy the code below into Arduino IDE and upload. If you do not know how to upload the code, please check how to upload code.
void setup() {
Serial.begin(9600); //Baud rate: 9600
}
void loop() {
int sensorValue = analogRead(A0);// read the input on analog pin 0:
float voltage = sensorValue * (5.0 / 1024.0); // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):
Serial.println(voltage); // print out the value you read:
delay(500);
}
- Step 2. Open the Serial Monitor of Arduino IDE by click Tool-> Serial Monitor or tap the Ctrl+Shift+M key at the same time. Set the baud rate to 9600.
- Step 3. Now you can use this sensor, and the output will be like this:
Digital Output
Hardware Connection
Step 1. The switch on the sensor selects D.
Step 1. Connect Grove - Turbidity Sensor to port D2 of Grove-Base Shield.
Step 2. Plug Grove - Base Shield into Seeeduino.
Step 3. Connect Seeeduino to PC via a USB cable.
If we don't have Grove Base Shield, We also can directly connect Grove - Turbidity Sensor to Seeeduino as below.
Seeeduino | Grove - Turbidity Sensor |
---|---|
5V | Red |
GND | Black |
Not Conencted | White |
D2 | Yellow |
Software
- Step 1. Copy the code below into Arduino IDE and upload. If you do not know how to upload the code, please check how to upload code.
int ledPin = 3;
int sensor_in = 2; // Turbidity sensor on Digital Pin 2
void setup(){
Serial.begin(9600);
pinMode(ledPin, OUTPUT); // Set ledPin as output mode
pinMode(sensor_in, INPUT); //Set Turbidity sensor pin to input mode
}
void loop(){
int sensorValue = digitalRead(sensor_in);
Serial.println(sensorValue);
if(sensorValue==HIGH){ //Read sensor signal
digitalWrite(ledPin, HIGH); // if sensor is LOW, then turn on
}else{
digitalWrite(ledPin, LOW); // if sensor is HIGH, then turn off the led
}
delay(500);
}
- Step 2. We use digital output and raise or lower the trigger by adjusting the potentiometer to make the LED turn on and off.
Schematic Online Viewer
Resources
[ZIP] Schematic Diagram
[PDF] LMV358 Datasheet
[PDF] MPX5700AP Datasheet
Tech Support & Product Discussion
Upgradable to Industrial Sensors
With the SenseCAP S2110 controller and S2100 data logger, you can easily turn the Grove into a LoRaWAN® sensor. Seeed not only helps you with prototyping but also offers you the possibility to expand your project with the SenseCAP series of robust industrial sensors.
The IP66 housing, Bluetooth configuration, compatibility with the global LoRaWAN® network, built-in 19 Ah battery, and powerful support from APP make the SenseCAP S210x the best choice for industrial applications. The series includes sensors for soil moisture, air temperature and humidity, light intensity, CO2, EC, and an 8-in-1 weather station. Try the latest SenseCAP S210x for your next successful industrial project.