How does air pressure sensor (mpx5700dp) works? How to read the data from the sensor? Using pin 1 (Vout)? Does port 1 give output at pin 4 (V1) and port 2 give output at pin 5 (V2)?
Attachments
-
120.9 KB Views: 24
Yes but i dont really understand the datasheet. Can you please explain, does data port 1 read from pin 4 (V1)?hi 28,
These clips are from the datasheet, which part are you querying.?
E
So does it mean my raw data from the sensor at pin 1(Vout) only if i connect to arduino? Why pins 4, 5 & 6 cannot used?hi 28,
The output voltage is between pin #1 Vout and pin #2 Gnd.
You have the the power supply connected to pin #3 +5vin and 0V also on pin #2 Gnd.
OK.?
Pins 4,5,6 are NOT used.
E
Why do you say only 0 to 1v? Output will depend on the pressure differential, could be almost 5 volts.The 0v to 1Vout could be connected to an Arduino analog input pin.
Can you suggest the best way to test the sensor to ensure it work correctly?You cant read the ports separately.
Remember that relative pressure is less that ~14.7 PSI at sea level and the actual value depends on altitude. The weather bureau report barometric pressure normalized to sea level in your local unit. In the US mm of mercury. Put mercury in a dish, add a capilary tube and measure how far it went up the tube.
Absolute pressure is where 0 is a perfect vacuum. The air in out tires is referred to as gauge pressure or the difference in the absolute pressure of the air minus the absolute pressure of the tire. It's done, by exposing one side of the sensor to the outside air, not electrically.
Absolute pressure is a wierd concept. KiloPascals is a wierd unit.
I always wondered why there were so many bolts on say an 8" port on a vacuum system. With like 1e-5 torr on one side and atmospheric pressure on the other, your looking at something like 800 lbs of force on that flange. So, don;t check for a vacuum with your finger.
I'm trying to connect the sensor to arduino but i don't know whether my coding is correct to do conversion from analogRead to kPa. Can you please check the coding?hi 28,
Pins 4,5,6 are probably used by the manufacturer in calibrating the device.
The 0v to 1Vout could be connected to an Arduino analog input pin. or if required a OPA amplifier of a Gain of 5, to give 5V to the Arduino analog pin.
E
View attachment 226533
int rawADC;
float sensorValue;
float pressureValue;
void setup ()
{
Serial.begin(9600);
}
void loop()
{
rawADC = analogRead(A0); // raw data
sensorValue = (float) rawADC * 5.0 / 1024.0; // raw data convert to volt
pressureValue = (sensorValue - 0.2) / 4.5 * 700.0; // sensor-offset = 0.2V, voltage range = 4.5V, pressure range = 700kPa, pressure = mV/kPa
// print out the value you read:
Serial.print("Raw value:");
Serial.println(rawADC);
Serial.print("Sensor value:");
Serial.print(sensorValue);
Serial.println ("V");
Serial.print("Air pressure: ");
Serial.print(pressureValue);
Serial.println(" kPa");
delay (1000);
}
hi 28,
Running your Arduino code , I get this plot.
It is varying because I need to attach a pot to the Analog pin. [ later ]
Is this the data from the sensor by running my codes in the arduino? If yes, why I get a small values for my data, sometimes the kpa reach until negative values & what does pot means?
by Jake Hertz
by Duane Benson
by Jake Hertz