Forum >Gravity: Turbidity Sensor - How to change voltage to NTU?
Gravity: Turbidity Sensor - How to change voltage to NTU?

Hi so I'm wondering if there is any way to convert the input signal (or voltage) from the Gravity: Turbidity Sensor to an actual NTU value rather than a voltage that gives a very rough gauge on the turbidity levels.
The code below was taken from the product wiki page; make_clickable_callback(MAGIC_URL_FULL, '(', 'https://www.dfrobot.com/wiki/index.php?title=Turbidity_sensor_SKU:_SEN0189', '', ' class="postlink"'))
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);
}
Any help on how to convert from the voltage value gained to an actual NTU value would be much appreciated.
The code below was taken from the product wiki page; make_clickable_callback(MAGIC_URL_FULL, '(', 'https://www.dfrobot.com/wiki/index.php?title=Turbidity_sensor_SKU:_SEN0189', '', ' class="postlink"'))
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);
}
Any help on how to convert from the voltage value gained to an actual NTU value would be much appreciated.
2020-06-06 02:40:24 I think equation shown in that diagram [1] is wrong.
NTU for clean water is 5NTU as shown in the wikipeadia.
Because according to this equation 3.81V it gives 1250.23 value.
But my sensor is in the drinking and clear water sample.
It would be appreciated if someone can suggest a equation.
Thank you!
[1] https://raw.githubusercontent.com/DFRob ... iagram.jpg
Njp
niroshansnj
NTU for clean water is 5NTU as shown in the wikipeadia.
Because according to this equation 3.81V it gives 1250.23 value.
But my sensor is in the drinking and clear water sample.
It would be appreciated if someone can suggest a equation.
Thank you!
[1] https://raw.githubusercontent.com/DFRob ... iagram.jpg
Njp

2020-02-03 15:20:41 https://wiki.dfrobot.com/Turbidity_sens ... 9#target_3
FAQ
The relationship between turbidity and voltage :
https://raw.githubusercontent.com/DFRob ... iagram.jpg
odsvegapomaloo
FAQ
The relationship between turbidity and voltage :
https://raw.githubusercontent.com/DFRob ... iagram.jpg

2019-12-26 22:57:37 I have followed the wiring on the DF Robot web, but the voltage value on the turbidity has not changed, in clean water and dirty water the voltage is the same, how to change the voltage?
wildanhifzy

2016-11-07 23:38:21 Hi furo0108,
Please check the probe connection cable, if you plug it with a wrong side, it won't work. Here is a link, you can make a reference:make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://www.dfrobot.com/wiki/index.php/Turbidity_sensor_SKU:_SEN0189#FAQ', '', ' class="postlink"')
Wendy.Hu
Please check the probe connection cable, if you plug it with a wrong side, it won't work. Here is a link, you can make a reference:make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://www.dfrobot.com/wiki/index.php/Turbidity_sensor_SKU:_SEN0189#FAQ', '', ' class="postlink"')

2016-11-07 23:36:13 Hi motgab and jbdeguzman327 ,
Sorry, due to the reason of the sensor accuracy, can only be used for qualitative analysis, can not be very accurate to do quantitative analysis.
Wendy.Hu
Sorry, due to the reason of the sensor accuracy, can only be used for qualitative analysis, can not be very accurate to do quantitative analysis.

2016-11-06 11:14:14 I have recently purchased a turbidity sensor. Initially, all the values were .04. Now, the values are 0.27. They do not seem to change according to water quality, but rather, appear to be random. Does anyone know how to fix this?
furo0108

2016-10-03 05:45:23 I have this problem as well. DFrobot's wiki doesn't provide the exact conversion.
jbdeguzman327
