How to convert voltage from analog sensor into human readable data?

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

How to convert voltage from analog sensor into human readable data?

3,094 Views
nitish1
Contributor I

Hello,

I am kind of new to the electronics world.

I recently bought two MPXV7002DP. They are working fine.

I supply it with 5 volts and it's output is:

At idle, it's 2.42 volts.

At maximum pressure (2000 Pa) it's 4.75 volts.

At lowest pressure (-2000 Pa) it's 0.03 volts.

My question is that, how do I convert this voltage into pascals?

What is the formula I should use?

I am sure it's available in the data sheet but I was not able to figure it out.

Could someone please help me out?

Labels (1)
0 Kudos
1 Reply

3,046 Views
reyes
NXP TechSupport
NXP TechSupport

Hi,

Its is simple to convert the voltage read from the sensor into pascals, in page 5 of the device datasheet (https://www.nxp.com/docs/en/data-sheet/MPXV7025.pdf), you can find the ‘Transfer Function’ formula used to convert the voltage to kPa. Figure 2 of the datasheet on page 4 shows the results of this formula in output voltage vs kPa.

 

Basically, the formula is : Vout = VS (P x 0.018 + 0.5), where VS = voltage supply.

Regards,

Jose

NXP Semiconductors

0 Kudos
%3CLINGO-SUB%20id%3D%22lingo-sub-1049572%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20convert%20voltage%20from%20analog%20sensor%20into%20human%20readable%20data%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1049572%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3EHello%2C%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3EI%20am%20kind%20of%20new%20to%20the%20electronics%20world.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3EI%20recently%20bought%20two%20MPXV7002DP.%20They%20are%20working%20fine.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3E%20I%20supply%20it%20with%205%20volts%20and%20it's%20output%20is%3A%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3EAt%20idle%2C%20it's%202.42%20volts.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3EAt%20maximum%20pressure%20(2000%20Pa)%20it's%204.75%20volts.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3EAt%20lowest%20pressure%20(-2000%20Pa)%20it's%200.03%20volts.%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3EMy%20question%20is%20that%2C%20how%20do%20I%20convert%20this%20voltage%20into%20pascals%3F%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3EWhat%20is%20the%20formula%20I%20should%20use%3F%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3EI%20am%20sure%20it's%20available%20in%20the%20data%20sheet%20but%20I%20was%20not%20able%20to%20figure%20it%20out.%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%20data-aura-rendered-by%3D%22312%3A289%3Ba%22%3E%3CSPAN%20class%3D%22%22%20data-aura-class%3D%22uiOutputTextArea%22%20data-aura-rendered-by%3D%22302%3A289%3Ba%22%3ECould%20someone%20please%20help%20me%20out%3F%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1049572%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EPressure%20Sensors%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1049573%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20convert%20voltage%20from%20analog%20sensor%20into%20human%20readable%20data%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1049573%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EIts%20is%20simple%20to%20convert%20the%20voltage%20read%20from%20the%20sensor%20into%20pascals%2C%20in%20page%205%20of%20the%20device%20datasheet%20(%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fdata-sheet%2FMPXV7025.pdf%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fdata-sheet%2FMPXV7025.pdf%3C%2FA%3E)%2C%20you%20can%20find%20the%20%E2%80%98Transfer%20Function%E2%80%99%20formula%20used%20to%20convert%20the%20voltage%20to%20kPa.%20Figure%202%20of%20the%20datasheet%20on%20page%204%20shows%20the%20results%20of%20this%20formula%20in%20output%20voltage%20vs%20kPa.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBasically%2C%20the%20formula%20is%20%3A%20Vout%20%3D%20VS%20(P%20x%200.018%20%2B%200.5)%2C%20where%20VS%20%3D%20voltage%20supply.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EJose%3C%2FP%3E%3CP%3ENXP%20Semiconductors%3C%2FP%3E%3C%2FLINGO-BODY%3E