MP3V5004DP -how to make the pressure sensor give correct pressure

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

MP3V5004DP -how to make the pressure sensor give correct pressure

775 Views
martintegby
Contributor I

Hi, 

I am using this code and setup. But the pressure I get seems to be off when comparing to an other pressure sensor (that I trust to work good). 

Can you see any error in the code or setup?

I belive the problem has to do with the code (is the transfer function ok as stated in the code?). 

 

I am using microcontroller with 8 bit ADC and 3.3 V as VCC. 

//Martin

code in microcontroller:

code.png

transfer.jpg

0 Kudos
1 Reply

711 Views
reyes
NXP TechSupport
NXP TechSupport

Hi,

 

I understand the steps you followed in your code, but I do not understand how you get to the 1.515152 number in your transfer function, can you please clarify.

 

What you need to take in mind is that has mentioned in table 1 of the datasheet, the span at 3kPa is 1.8V using a supply voltage of 3V with a sensitivity of 0.6V/kPa. Taking this as example, you can tell that using 3V as supply, you should get around 2.4V at the max pressure of 4kPa and around 1.2V at 2kPa with a linear response.

 

Regards,

Jose

0 Kudos