I connected HX711 24bit module to MPS20N0040D (wheat stone pressure sensor) and arduino mega2560 and used sample library for HX711. In the serial monitor, I had acceptable number from 1 to around 10kp and more than 10kp just display 0. My sensor should display to 40kp. I changed my sensor and HX711, but this problem repeated.
I need help to solve this problem.
I used example library in IDE. I connected air compressor and manual gauge to sensor and checked it for calibration. When I increased pressure more than around 10kp (in manual gauge), serial monitor displayed 0! How I can solve this problem?
pylon:
Start by printing out the raw value you get from hx711.read(). Try again and post the output of your sketch under different loads.
These are raw value from serial monitor (with arduino UNO and HX710B module) with above mentioned library (more than 70mmHg, all data s are same=167772.15
0 mmHg~ 95168
10 mmHg~ 103177
20mmHg~ 114620
30mmHg~ 126821
40mmHg~ 136783
50mmHg~ 148332
60mmHg~ 160200
70mmHg= 167772.15
80mmHg= 167772.15
90mmHg= 167772.15
...
I tested with different amplifier such as HX710B and HX711, also with different pressure sensors such as MPS20N0040D and SPD005G but in all cases, results are around same (with different raw values)!!!
The HX711 might be clipping (out of range).
Max range of the HX711 is 20, 40, or 80mV, depending on PGA gain setting (code) and channel (a or b).
Sensor offset could already be 25mV, and pressure adds another 50-100mV.
Start by measuring output voltage of the sensor (<25mV), without pressure. Post it.
You might have to use channel B (32x gain.
Would have been a lot easier if you had bought a sensor with buildin instrumentation amp.
Leo..
Wawa:
The HX711 might be clipping (out of range).
Max range of the HX711 is 20, 40, or 80mV, depending on PGA gain setting (code) and channel (a or b).
Sensor offset could already be 25mV, and pressure adds another 50-100mV.
Start by measuring output voltage of the sensor (<25mV), without pressure. Post it.
You might have to use channel B (32x gain.
Would have been a lot easier if you had bought a sensor with buildin instrumentation amp.
Leo..
I tested with 2 different Amp (HX710B & HX711) and changed sensor, but both have same result!
I changed to channel B but problem not solve!
Finally, I ordered new pressure sensor with internal Amp (MPXV5050GP). After test, I'll share results.
So what voltage did you measure on A+ and A- without pressure?
And what voltage with max pressure.
You'll never going to learn anything by just moving on to the next thing.
Leo..
imi1937:
It is 0V.
In 70mmHg~ 15mv
In 300mmHg~ 65mv
Exactly 0mV?
15mV is at the edge of the range with a default PGA gain of 128.
I would try dropping the gain of channel A to 64 (in code). Or switching to channel B.
Not sure how to. Maybe someone who has done that could chime in.
Leo..
i got same problem, and what solution here?
i tried 32, 64,128
with 32 value alway const not change when pressure change
64,128: max 8388607 raw, and 80mmHg real pressure ~10kPa