mMPXV7002DP Airspeed measurement

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mMPXV7002DP Airspeed measurement

1,035 Views
nadi_abumahfouz
Contributor I

Hello,

 

I'm using mMPXV7002DP and I'm trying to convert the output to measure airspeed. I'm not sure I'm converting the voltage to pressure in a right way or not. based on the data sheet the minimum output voltage is 0.5 equal -2kPa and the maximum is 4.5 equal 2kPa. so based on this I have this equation

 

pressure = ((voltage - Vmin) * (Pmax- Pmin) / (Vmax- Vmin)) + Pmin

Vmin = 0.5

Vmax = 4.5

Pmin = -2

Pmax = 2

I have 3.3V refrence and 14bit ADC and I'm converting the ADC to Voltage

voltage = (((ADC * 3.3) / 2^14)) - 2.5; 

the "- 2.5" based on the datasheet is the offset value of the sensor.

my last step, I'm calculating the Airspeed, 

pressure = 0.5 x density x velocity x velocity
density  = 1.225kg/m3 for sea level air density.

my problem is I'm not sure am I calculating everything in a right way or am I missing something? because I'm trying to measure inside a closed room also the room has AC and I'm getting negative pressure all time.

Thanks,

Nadi

0 Kudos
0 Replies
%3CLINGO-SUB%20id%3D%22lingo-sub-877488%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EmMPXV7002DP%20Airspeed%20measurement%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-877488%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EHello%2C%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EI'm%20using%26nbsp%3BmMPXV7002DP%20and%20I'm%20trying%20to%20convert%20the%20output%20to%20measure%20airspeed.%20I'm%20not%20sure%26nbsp%3BI'm%20converting%20the%20voltage%20to%20pressure%20in%20a%20right%20way%20or%20not.%20based%20on%20the%20data%20sheet%20the%20minimum%20output%20voltage%20is%200.5%20equal%20-2kPa%20and%20the%20maximum%20is%204.5%20equal%202kPa.%20so%20based%20on%20this%20I%26nbsp%3Bhave%20this%20equation%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3Epressure%20%3D%20((voltage%20-%20Vmin)%20*%20(Pmax-%20Pmin)%20%2F%20(Vmax-%20Vmin))%20%2B%26nbsp%3BPmin%3C%2FP%3E%3CP%20style%3D%22border%3A%200px%3B%22%3EVmin%20%3D%200.5%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EVmax%20%3D%204.5%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EPmin%20%3D%20-2%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EPmax%20%3D%202%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3EI%20have%203.3V%20%3CSPAN%3Erefrence%20and%2014bit%20ADC%20and%20I'm%26nbsp%3B%3C%2FSPAN%3Econverting%20the%20ADC%20to%20Voltage%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3Evoltage%20%3D%20(((ADC%20*%203.3)%20%2F%202%5E14))%20-%202.5%3B%26nbsp%3B%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3Ethe%20%22%3CSPAN%3E-%202.5%3C%2FSPAN%3E%22%20based%20on%20the%20datasheet%20is%20the%20offset%20value%20of%20the%20sensor.%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3Emy%20last%20step%2C%20I'm%20calculating%20the%20Airspeed%2C%26nbsp%3B%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3CSPAN%3Epressure%20%3D%200.5%20x%20density%20x%20velocity%20x%20velocity%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%3CSPAN%20style%3D%22background-color%3A%20%23ffffff%3B%22%3Edensity%26nbsp%3B%20%3D%26nbsp%3B%3C%2FSPAN%3E1.225kg%2Fm3%26nbsp%3Bfor%20sea%20level%20air%20density.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3CSPAN%3Emy%20problem%20is%20I'm%20not%20sure%20am%20I%20calculating%20everything%20in%20a%20right%20way%20or%20am%20I%20missing%20something%3F%20because%20I'm%20trying%20to%20measure%20inside%20a%20closed%20room%20also%20the%20room%20has%20AC%20and%20I'm%20getting%20negative%20pressure%20all%20time.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3CSPAN%3EThanks%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%20border%3A%200px%3B%22%3E%3CSPAN%3ENadi%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E