Skip to main content

Python library for MS5803-14BA pressure sensor for Raspberry Pi

Project description

MS5803-14BA

ms5803py

Python 3 library for MS5803-14BA pressure sensor for Raspberry Pi

Based off of the Adafruit Arduino Library and the Control Everything Python Library. Some of the math is complicated when correcting raw readings to actual temperatures and pressures, that math can be verified from the MS5803-14BA datasheet.

Installation

This should be on pypi soon, and so you can install on your RPi using

pip3 install ms5803py

Usage

The MS5803 and the RPi use the I2C protocol to communicate, so you need to have I2C set up on your pi, as explained in this Adafruit tutorial. After that, the MS5803 needs to be hooked up to the Raspberry Pi as described in this Adafruit tutorial.

After doing that, you must find the I2C address of your MS5803. To do this, run the following command both before and after plugging in the MS5803. Whatever address shows up is the one you want:

sudo i2cdetect -y 1

It should be either 0X76 or 0x77, as described in the MS5803-14BA datasheet, depending on if the CSB (Chip Select) pin on the MS5803 is high or low. On the Sparkfun breakout board the I2C address is 0x76, so I have that set as the default if you don't specify an address when initializing the sensor.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ms5803py-0.1.5.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

ms5803py-0.1.5-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file ms5803py-0.1.5.tar.gz.

File metadata

  • Download URL: ms5803py-0.1.5.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4

File hashes

Hashes for ms5803py-0.1.5.tar.gz
Algorithm Hash digest
SHA256 710b363129ffb7cf74e12de560eb820cb38078c598451879588f29ac0f9ef756
MD5 5f0f1e47f4246a50b63a9d60e3a059ea
BLAKE2b-256 9e9db03df0783359908d08834a7103b5eaa2ffd3cb7eb19273e95c3d3df3e444

See more details on using hashes here.

File details

Details for the file ms5803py-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: ms5803py-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4

File hashes

Hashes for ms5803py-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7ef04f8425eb6dad3740c405099ae6a83a08847ed47197894c11bfddaa4909e1
MD5 c0b62a42ed363fb2eb7de0f9d7b867f3
BLAKE2b-256 9a36e387b95f5c3c43407869aa1bac715464956f2f79a02b70a7f218e39d297a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page