MPS20N0040D - Lib in micropython to use this sensor. #14028
-
Hello everyone. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 30 replies
-
The MPS20N0040D sensor itself is just a passive resistor bridge. It requires additional circuitry for connecting it to a ESP32. There are breakout boards available which use this sensor. Do you use such a board? Then the type of this board and the interface chip is important. |
Beta Was this translation helpful? Give feedback.
-
I made two test series comparing the MPS20N040D sensor and a calibrated DLV0105D sensor attached to the same pressure volume. The volume has a small leak, so the pressure falls within a suitable time, giving a nice range test. I used two variants of the MPS20N04D sensor: a) raw sensor attached to a HX710B, b) Sensitivity reduced sensor by attaching a 1.5k resistor across pins 4 and 6 attached to a HX710B. a) Raw sensor: The resulting conversion factor of MPS20N04D at HX710B reading to kPa was 710000. The pressure range is about +/- 12 kPa. A second MSP20N040D sensor had a conversion factor of 710000. In the test, the MPS20N040D was sampled first, then the DLV015D. Some diagrams of the test series below. The diagrams show, that both sensors run pretty synchronous. a) Raw sensor: Detail at the low pressure end of the test: b) Wider range sensor using a 1k5 resistor across the sensor output. Detail at the low pressure end of the test: |
Beta Was this translation helpful? Give feedback.
-
By the way: the data sheet of the MPS20N040D is inconsistent. It mentions 540PSI and 40kPa, but 40kPa is equivalent to about 5.4 PSI, or the other way around: 540PSI is equivalent to about 4000 kPa or 40bar. |
Beta Was this translation helpful? Give feedback.
-
I got samples of the MPS20N0040D sensor and wired them up to a) and ADS1115 A/D converter in the +/-256mV range, and b) an HX711 at the B inputs with a gain of 32. Both variants cover the full range of the pressure sensor, and the results show good tracking with the DLV-015D sensor, as above, with higher resolution than the DLV-015D. |
Beta Was this translation helpful? Give feedback.
-
Maenwhile I made another test using the raw MPS20N004D sensor connected to a ADS1115 ADC at a pressure up to 100kPa. Diagram below, as always compared to the DLB015d. Since the pressure falls almost in a e**-t/T series, a log/lin scaling for the results should be close to a straight line. The output of the mps20N0040D is shown as mV. The yellow line the is ratio between the output of MPS20N0040D and the DLV015D. It should be mostly constant. Since the DLV015D has a lower resolution, about 10.5 digits, the results at low pressure get worse. |
Beta Was this translation helpful? Give feedback.
Some figures of the sensor with the voltage at 1.25V.
Full test series:
Detail at the lower range: