Hi all,
I purchased 2 of the followed Analog pressure sensors, need to measure a 2-3M column of water.
Please assist. I usually play with RPi's (with Python), but they don't natively have analog capabilities.
This (D1 platform and how it is programmed/imaged) is foreign to me so hoping someone can assist.
I am able to physical measure the water depth at say full, and then associate that voltage with a 100% value ... and say reduce the level some, measure again,
I have a D1 and D1 Mini. would eventually connect both sensors onto one board.
Output preferably via mqtt
It will not work they way you think. Read line 3 in the spec, it states: " * Output Voltage(Vout): DC 0.5~4.5V" not 5-5. That will make a big difference. To get 0-5 you need to precondition the signal possibly with an op amp circuit.
That sensor is a 5volt-logic ratiometric sensor, and won't work very well with a 3.3volt D1 mini.
Get a sensor with an I2C interface. Then you can use it with any processor, including the Pi.
Match the sensor rating to the pressure you're measuring (about 25kPa in your case).
If you don't, then you will have a poor resolution.
These 40kPa sensors could be nice to play with. They use a HX710B chip (not I2C),
which you can find a library for on the Arduino site.
Leo..
Just asking... don't shoot...
hmmm so the sensor want (input) 5V... can I not use a buck converter to step up the voltage ? re get I2C
... ye all way down here in SA thats easier said (to get) than done...
... found my problem, I originally added 1 bar to my water of .2 potential to end at 1.2bar... out of a potential range of 12bar... so was thinking, not perfect but it's at the 10% range.