element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Summer of FPGA
  • Challenges & Projects
  • Design Challenges
  • Summer of FPGA
  • More
  • Cancel
Summer of FPGA
Blog Liquid-Level Monitoring Using a Pressure Sensor #3 - Calibrating the MPX2050DP Pressure Sensor
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: guillengap
  • Date Created: 22 Dec 2021 12:09 AM Date Created
  • Views 2779 views
  • Likes 1 like
  • Comments 0 comments
  • pressure sensor
  • Digilent Cmod S7
  • Liquid level monitoring
  • summer of fpga
Related
Recommended

Liquid-Level Monitoring Using a Pressure Sensor #3 - Calibrating the MPX2050DP Pressure Sensor

guillengap
guillengap
22 Dec 2021

Table of Contents

  1. Project Introduction
  2. Getting Started
  3. Calibrating the MPX2050DP Pressure Sensor
  4. Calculations and Noise Reduction
  5. Using Vivado and Testing the System
  6. Project Report Updated

**********************************************************************************************************************

Calibrating the MPX2050DP Pressure Sensor

There are different differential pressure sensors on the microcontroller market known as MPX type pressure sensors. Depending on our application, we must select the appropriate sensor, remembering that many of these sensors will need to be coupled to voltage amplifier circuits in order to be read by a microcontroller. In my case, I use the MPX2050DP which delivers up to 40mV which will require an op amp to handle its signal.

image

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 ADC inputs. This patented single element transducer combines advanced micromachining techniques, thin film metallization, and bipolar processing to provide a high-level, accurate analog output signal that is proportional to applied pressure. MPX2050 can measure a pressure of 50 kPa (375 mmHg). It gives linear output over the range as shown in the figure extracted from the datasheet.

image

Of course, the applications of this sensor are not limited only to level measurement, which is the objective of this post. As we see in the previous graph, the equation to obtain the sensor pressure is given by:

image

Vs is the supply voltage (Vs = 3.3v) and V {out} is the voltage delivered by the sensor (that is, the one we read on the microcontroller board in bytes and transform it to voltage) and Tol is the tolerance, an adjustment that we must make to the sensor to calibrate the measurement.

Cmod S7-25 XADC Demo

In my case, I used this project with the Cmod S7-25's Spartan 7 FPGA's analog-to-digital core with a Microblaze processor, and the link is: https://github.com/Digilent/Cmod-S7-25-XADC

In summary, I emphasize the steps shown below:

I opened the project in read-only mode.

image

I have selected File -> Launch SDK.

image

I have verified the serial port of my board.

image

Next I have configured pUTTY as shown below.

image

Select Xilinx -> Program FPGA

image

 Leave all fields as their defaults and click "Program".

image

In the Project Explorer pane, right click on the "Cmod-S7-25-XADC" application project and select "Run As -> Launch on Hardware (System Debugger)"

image

The schematic diagram used is shown below:

image

How does it work?

  1. The MPX2050DP pressure sensor is powered with 10 volts and at the output it gives very small voltage values (0-40 mV), so an operational amplifier is necessary;
    I have used the LM386N-1 op amp as an amp with gain of 20;
  2. I obtained at the output of the LM386N-1 voltages over 3.3 volts, so I used a voting divider to lower the signal a few tenths of voltage;
  3. This voltage is connected to the analog port AIN_32 of the Cmod S7-25 board;
  4. At the output of the serial port we have the readings of the MPX2050DP sensor in volts;
  5. For the calibration of the pressure sensor MPX2050DP I have used a pressure gauge;
  6. I have also used a manual air pump to input the air pressure onto the MPX2050DP pressure sensor. I also release the air leak with a knob valve;
  7. Finally I have compared the voltage readings with the pressure in mmHg.

The video with the tests is shown below:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

The calibration obtained is shown in the images below:

image

300 mmHg -> 2.45V

image

240 mmHg -> 2.41V 

image

180 mmHg -> 2.38V

image

120 mmHg -> 2.37V

image

60 mmHg -> 2.33V

image

0 mmHg -> 2.30V

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube