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 #4 - Calculations and Noise Reduction
  • 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: 27 Dec 2021 9:16 PM Date Created
  • Views 795 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 #4 - Calculations and Noise Reduction

guillengap
guillengap
27 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

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

Calculations

We are going to make use of the fact that the pressure sensor presents a linear measurement, as we could see it in its datasheet and in the graph above where it shows the voltage-pressure relationship. However, you can perfectly calibrate your sensor using linear regression. Based on the differential pressure equation that relates the height:

image

Where P is pressure, rho is gravity and h is the height or level of the tank.

image

The units we need to know here are Pascal's:

image

Water density (approx)

image

Gravity (approx) 9.8 m / s2

image

As we saw in the previous chapter, I used a pressure gauge to measure the pressures applied to the sensor. So to obtain the height of the liquid I did the following calculations:

P(mmhg) P(Pa) Height(cm)
100 13332 136
80 10665 108
60 7999 81
50 6666 68
40 5332 54
30 3999 40
20 2666 27
10 1333 13
0 0 0

image

Now, according to the calculated height, I make voltage measurements at the output of the operational amplifier or the input of the analog port AIN_32 of the Cmod S7 board.

Heighth(cm) V output(mV)
136 1957
108 1947
81 1937
68 1930
54 1926
40 1921
27 1917
13 1912
0 1905

Note: between the voltage reading of the multimeter and the Cmod S7 board there is an approximate difference of 50 millivolts. For example, if the AIN_32 serial port measures 1,905 volts, the voltmeter measures 1,851 volts approx.

image

Noise Reduction

Since I am working with very small voltages from the pressure sensor (0 to 40 mV), so I used an op amp to get an approximate range of 0 to 200 mV, which is still very small and I had to redesign my diagram. schematic for noise reduction.

image

Changes applied for noise reduction:

  • Place a 20 picofarad capacitor between ground and Vcc;
  • Power the LM386N-1 operational amplifier with 12 vols;
  • Remove the potentiometer that feeds the MPX2050DP pressure sensor and connect it to 12 volts from the source;
  • Remove the potentiometer connected to pin 5 of the LM386N-1 operational amplifier and put a voltage divider with resistors; and
  • Solder pins to the MPX2050DP pressure sensor, as these are very thin and make false contact.

The final system is shown below:

image

  • 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