Git Product home page Git Product logo

leandrolimapro / pressure Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 44 KB

library for reading differential pressure / gauge sensors from the manufacturer NXP. With pressure return in KPA, PSI, BAR, CMH2O quantities.

License: GNU General Public License v2.0

C++ 100.00%
arduino-library arduino pressure-sensor covid-19 arduino-sensors coronavirus nxp-pressure mxp-pressure nxp-mxp mpxv5010 mpx5700 sensor sensor-mpx kpa cmh2o-quantities pressure gauge-sensors manufacturer-nxp pressure-sensing pressure-sensors

pressure's Introduction

๐Ÿ’ป๐Ÿ˜ท Library for NXP differential pressure sensors

project resulting from the hidden pandemic, by the MakersMA group. Released for use, provided that it assigns the copyright to the repository dententor.

Summary

library for reading differential pressure / gauge sensors from the manufacturer NXP. With pressure return in KPA, PSI, BAR, CMH2O quantities.

https://www.nxp.com/products/sensors/pressure-sensors:DRSNSPRSSR

Basic Library step-by-step

  • Call the library and create a Pressure object, containing at least the address of the analog port to which the sensor is located.
#include "Pressure.h"

Pressure Sensor(A0,MXP5010);

Or with the help of a multimeter take the operating voltage from the microcontroller to calibrate the sensor:

#include "Pressure.h"

Pressure Sensor(A0, MXP5010, 4.85);
  • Insert the Init () function in the arduino setup
void setup(){
Sensor.Init();
}
  • Use Get(MODEL,TYPE OF PRESSURE MEASUREMENT) to obtain the pressure value. Do this by entering two information 1- Sensor model and 2 - response magnitude.
void loop(){
float value = Sensor.Get(BAR);
}

Reference

Constants

MODELS TYPE OF PRESSURE MEASUREMENT OBS
MPX5010 ๐Ÿ‘ KPA ๐Ÿ‘ Default
MPX5050 ๐Ÿ‘ BAR ๐Ÿ‘
MPX5700 ๐Ÿ‘ PSI ๐Ÿ‘
- CMH2O ๐Ÿ‘
legend:
๐Ÿ‘ is runing,
๐Ÿ‘Ž removed, 
๐Ÿ’ป in development

AUTHORS

  • Leandro L. (library developer)
  • Jessica Santos (mathematical modeler)
  • Valdioleno (electronic validation)
  • Rafael (insert TF of sensors)

By Leandro L. N.

pressure's People

Contributors

faelsant avatar leandrolimapro avatar per1234 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.