How To Use a Turbidity Sensor
Vložit
- čas přidán 31. 12. 2022
- Supported Me :
/ mellow_labs
www.buymeacoffee.com/mellowfire
Written version:
www.mellowfire.com/post/how-t...
Turbidity Sensor:
www.dfrobot.com/product-1394....
Code examples:
github.com/FireMarshmellow/Tu...
socials:
www.mellowfire.com/
/ fire-marshmallow
/ mellow_fire - Věda a technologie
Nice demo! Very thorough
THANKS YOU SO MUCH MRRR
The mechanism is similar to a speed sensor except instead of turbidity it measures breaks in light.
I was expecting a full solution since Iam trying to use a Pico with DFRobot's Turbidity sensor, BUT this is what I found out, The DF RObot sensor is designed for +5 Volt (which you can get from VBUS on the Pico) but the A/D input channel should not be driven above 3.3 volts ? how did you wire up your signal pin? with a pull up or pull down resistor? or jerry up a voltage limiting circuit and then there is a question calibration. Good Job but would like more info
I just run it at 3.3 volts and I've not had any issues. calibration is pretty easy just take a reading with nothing between the senso, and then take another one with something that fully blocks the sensor.
@@Mellow_labs thank you for quick reply . I will follow up.
@@Mellow_labs I am wondering if I have a bad sensor, I have both LEDs on all the time, either Digital or Analog position +5 volts or 3.3 volts Dout led never goes out, out of 10 sensors received for the class,, half have both Leds on continusiouly not matter what condition. Also line 11 of your code show ADC(26) which is actual pin 31 GP26 ADC0 (confusing ughh) but please explain line 16 in_pin.read_16 what is that 16 bits?? this is my output - Raw: 4417 Voltage 0.2V Percentage: 10%
Raw: 4257 Voltage 0.2V Percentage: 10%
Raw: 4273 Voltage 0.2V Percentage: 10%