GithubHelp home page GithubHelp logo

bolderflight / ms4525do Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 1.0 1.64 MB

Arduino and CMake library for communicating with MS4525DO pressure transducers.

License: MIT License

CMake 25.27% C++ 74.73%
arduino arduino-library cpp drone drones pressure pressure-sensor robotics sensor

ms4525do's People

Contributors

flybrianfly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

devshpak

ms4525do's Issues

Explanation of method for determining pres_cnts_ and temp_cnts_?

I understand that the formula used to determine the pressure in PSI and temperature is from the "PRESSURE AND TEMPERATURE TRANSFER FUNCTION" section of the datasheet, rearranged to solve for the pressure or temperature, but I can't tell how you determined the pres_cnts_ and temp_cnts_, or where you derived the formula from. Could you please help me with this? Thank you!

My code reurn negatives values

Hello,

Thanks for this library.
I try to build a telemetry for my RC plane and my MS4525DO return me negatives values.
My code is:

void MS4525DO_Init() {
  pres.Config(&Wire1, 0x28, 1.0f, -1.0f);
  if (pres.Begin())
    MS4525DOAvailable = true;
  else
    MS4525DOAvailable = false;
}

float MS4525() {
  /* Read the sensor */
  if (pres.Read()) {
    pressionMS4525 = pres.pres_pa();//*3.6 for km/h
    if (printPITOT == true)
    {
      /* Display the data */
      Serial.print(pressionMS4525, 2);
      Serial.print("\t");
      Serial.print(pres.die_temp_c());
      Serial.println("°C\r\n");  
    }
  }
  return pressionMS4525;
}

The sensor don't move and this code return me:
-140.46 27.67°C

It's normal ?

Thanks for your help,

Pierre

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.