Definition
Pressure is defined as force per unit area that a fluid exerts on its surroundings. You can measure this force by detecting the amount of deflection on a diaphragm positioned inline with the fluid. Given the known area of the diaphragm, pressure can then be calculated. Pressure sensors are packaged with a scale that provides a method to convert to engineering units. The SI unit for pressure is the Pascal (N/m2), but other common units of pressure include psi, atmospheres, bars, inches of mercury, millimeters of mercury.
Pressure Measurement Methods
There are three methods for measuring pressure: absolute, gauge, and differential. Absolute pressure is referenced to the pressure in a vacuum, whereas gauge and differential pressures are referenced to another pressure such as the ambient atmospheric pressure or pressure in an adjacent vessel.
Air Pressure Measurement using MPX5010DP
The MPX5010 series piezo-resistive transducer is a state-of-the-art monolithic silicon pressure sensor designed for a wide range of applications, but particularly those employing a microcontroller or microprocessor with A/D inputs. This patented, single element transducer combines advanced micromachining techniques, thin-film metallization, and bipolar processing to provide an accurate, high level analog output signal that is proportional to the applied pressure.
MPX5010 can measure 10kPa pressure and MPX5100 can measure 100kPa (14.5psi) Pressure. It give linear output over the range as shown in figure.
MPX5010 Pinout
Arduino Air Pressure measurement Circuit MPX5010
Arduino code for air pressure measurement
/* Air Pressure Measurement usning MPX5010 or MPX5100 Pressure Sensor www.circuits4you.com */ const float SensorOffset = 102.0; // the setup routine runs once when you press reset: void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin 0: float sensorValue = (analogRead(A0)-SensorOffset)/100.0; //Do maths for calibration // print out the value you read: Serial.print("Air Pressure: "); Serial.print(sensorValue,2); Serial.println(" kPa"); delay(1000); // delay in between reads for stability }
Air Pressure measurement result
Open serial monitor and blow some air in pressure sensor input to see variations in pressure. This sensor can be used for water level measurement.
I am trying the same wiring with an arduino pro mini and it doesnt seem to be working, is there a different wiring for the pro mini?
Please share your code and circuit on steps2make.com