All Projects → bluerobotics → BlueRobotics_MS5837_Library

bluerobotics / BlueRobotics_MS5837_Library

Licence: MIT license
Arduino library for the MS5837 pressure sensor.

Programming Languages

C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to BlueRobotics MS5837 Library

bme280
Arduino and CMake library for communicating with the Bosch Sensortec BME280 environmental sensor.
Stars: ✭ 21 (-43.24%)
Mutual labels:  pressure
BME680
Arduino Library to access the Bosch BME680 - temperature, pressure, humidity and gas sensor
Stars: ✭ 30 (-18.92%)
Mutual labels:  pressure
arduino-bme280
💧 Arduino library for Bosch Sensortec BME280 – combined temperature, pressure, humidity sensor. The library allows using the sensor over I2C or SPI on any board that supports Arduino.
Stars: ✭ 25 (-32.43%)
Mutual labels:  pressure
react-pressure
React HOC that enables 3D Touch on other components, available via npm
Stars: ✭ 13 (-64.86%)
Mutual labels:  pressure
PeakPo
X-ray diffraction data analysis for high pressure and high temperature experiments
Stars: ✭ 14 (-62.16%)
Mutual labels:  pressure
programmable-air
A hardware kit to experiment with inflatable and vacuum based soft robotics.
Stars: ✭ 54 (+45.95%)
Mutual labels:  pressure
pyXSteam
Python library for calculating properties of Steam and Water
Stars: ✭ 32 (-13.51%)
Mutual labels:  pressure
TempRa
Monitors the temperature, the humidity and the pressure in your room on Raspberry Pi.
Stars: ✭ 16 (-56.76%)
Mutual labels:  pressure
ArduinoWeatherOS
Arduino Uno, 433MhzRx and OS WMR86 Weather Station
Stars: ✭ 69 (+86.49%)
Mutual labels:  pressure
Ardupilot
ArduPlane, ArduCopter, ArduRover, ArduSub source
Stars: ✭ 6,637 (+17837.84%)
Mutual labels:  rov
bluerobotics.github.io
Blue Robotics product documentation site.
Stars: ✭ 34 (-8.11%)
Mutual labels:  rov

BlueRobotics MS5837 Library Test

Arduino library for the MS5837 pressure sensor. The MS5837 is a tiny SMT pressures sensor from Measurement Specialties that can measure pressure of up to 30 Bar (300m depth) with resolution of 0.2 mbar.

This library also supports the MS5837-02BA which has a much smaller measurement range and is better suited for altitude measurement in air.

Documentation

Please see the examples for normal operation. Below are the available functions used in the library.

MS5837();

/** Must be called before attempting to operate the sensor.
 * Returns true if the sensor was initialized successfully.
 * wirePort is optional and defaults to Wire.
 * You can select a different port by calling (e.g.) init(Wire1)
 */
bool init(TwoWire &wirePort);

/** Calls init.
 * Returns true if the sensor was initialized successfully.
 */
bool begin(TwoWire &wirePort);

/** Set model of MS5837 sensor. Valid options are MS5837::MS5837_30BA (default)
 * and MS5837::MS5837_02BA.
 */
void setModel(uint8_t model);

/** Provide the density of the working fluid in kg/m^3. Default is for
 * seawater. Should be 997 for freshwater.
 */
void setFluidDensity(float density);

/** The read from I2C takes up for 40 ms, so use sparingly if possible.
 */
void read();

/** Pressure returned in mbar or mbar*conversion rate.
 */
float pressure(float conversion = 1.0f);

/** Temperature returned in deg C.
 */
float temperature();

/** Depth returned in meters (valid for operation in incompressible
 *  liquids only. Uses density that is set for fresh or seawater.
 */
float depth();

/** Altitude returned in meters (valid for operation in air only).
 */
float altitude();

Versions

1.0.0 - First release, included in Arduino Library Manager

Reference

You can find the MS5837-30BA datasheet here.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].