This non-contact turbidity sensor detects water quality by measuring the level of turbidity. Based on optics principle, it is capable of detecting light transmittance and scattering rate of the liquid in transparent cylinder containers with a diameter of 40-50mm, which then will be output as an analog value within a certain range that reflects the level of liquid turbidity.
The turbidity sensor comes with two infrared probes, which should be oppositely installed on a container. And it starts to detect when the liquid level inside is higher than the two probes. The sensor can do measuring without contacting liquid, thus means less prone to damage caused by water or chemical corrosion.
Operating Voltage: 5V
Operating Current: <10mA(Max)
Response Time: <1s (VDD=5V Ta=25℃)
Operating Temperature: 5-60℃
Storage Temperature: 0-65℃
Service Life: 50000h (VDD=5V Ta=25℃)
Communication Mode: TTL
1.Baud rate: 9600
2.Data bit: 8bit
3.Parity bit: none
4.Stop bit: 1bit
Controller(Master) Protocol Format: | Frame Header | Data Length | Write Command | Read Command | Frame Trailer |
---|---|---|---|---|---|
Peripheral(Slave) Protocol Format | Frame Header | Data Length | Write Command Response | Data | Frame Trailer |
Controller reads dirty data | 0X18 | 0X05 | 0X00 | 0X01 | 0X0D |
Peripheral sends data | 0X18 | 0X05 | 0X00/0XAA | 0X00-0XFF | 0X0D |
Peripheral reads AD data | 0X18 | 0X05 | 0X00 | 0X02 | 0X0D |
Peripheral sends AD value | 0X18 | 0X05 | 0X00/0XAA | 0X00-0X0F/0X00-0XFF | 0X0D |
Controller Calibration | 0X18 | 0X05 | 0X55 | 0X00 | 0X0D |
Calibration transmitting succeeded | 0X18 | 0X05 | 0XAA | 0X00 | 0X0D |
Controller clears calibration | 0X18 | 0X05 | 0X5A | 0X00 | 0X0D |
Calibration clearing succeeded | 0X18 | 0X05 | 0X00 | 0X00 | 0X0D |
The sensor communicates with MCU via TTL and transmits the data through serial port after detecting different turbidity data.
Black=GND Blue=TX Red=VCC White=RX
Recommended connection diagram
Here we connect the sensor to the UNO board using 4Pin Sensor Adapter and 4P Cable (PH2.0 to 2.54 DuPont female). The connections are as shown in the table below.
Sensor | Adapter | UNO |
---|---|---|
GND | GND | GND |
VCC | VOUT | VCC |
RX | IO1 | 11(TX) |
TX | IO2 | 12(RX) |
The two probes should be oppositely fixed on a transparent container.