Python library for MS5803-14BA pressure sensor for Raspberry Pi
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ms5803py-0.1.4.tar.gz
.
File metadata
- Download URL: ms5803py-0.1.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.6.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2b7152377825deeee1d5d3dad7ef951cc199034ddceae4e074c6dfbe8434cb1 |
|
MD5 | 1e3a44df9fd97a2444c5536014017205 |
|
BLAKE2b-256 | 47ae5b0857682d03707636896a27626be72d1926999b099b5aa7004846b9bb73 |
File details
Details for the file ms5803py-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: ms5803py-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.6.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1ff185a87c22f3ec820cd29e3f01b3b2ea2bed29118ebd593f974e8c71c6f38 |
|
MD5 | 75f9b2524867f9277215c8241667340b |
|
BLAKE2b-256 | 6ee71589e6365544bf1e8f3cd7eb67e0e107106b48c89c165fbfeea9ec041b93 |