Skip to main content

ADS1219_lib

ADS1219_lib is a Python library to use a ADS1219 with a Raspberry Pi. Development funded by INRAE (REVERSAAL research unit, Villeurbanne, France)

Github of the project : https://github.com/mickaelv/ADS1219-Python

Installation

You can use this command to install ADS1219_lib easily :

git clone https://github.com/mickaelv/ADS1219-Python && cd ADS1219-Python && python3 setup.py install

Soon on pip Use the package manager pip to install ADS1219_lib :

pip install ADS1219_lib 

Usage

from ADS1219_lib import ADS1219
#
#Create a new object with interupt pin on GPIO 4
ads =  ADS1219( 1, 0x40, 4 )
#
#Set an external voltage reference of 2V
ads.setExternalReference( 2 )
#
#Define the gain to 4
ads.setGain( 4 )
#
#read inputs :
print( ads.convertToV( ads.readSingleEnded( 0 ) ) )
print( ads.convertToV( ads.readSingleEnded( 1 ) ) )
print( ads.convertToV( ads.readSingleEnded( 2 ) ) )
print( ads.convertToV( ads.readSingleEnded( 3 ) ) )
#
#
#Print the value of voltage between input 0 and 1
print( ads.convertToV( ads.readDifferential_0_1() ) )
#
#Print the value of voltage between input 2 and 3
print( ads.convertToV( ads.readDifferential_2_3() ) )
#
#Print the value of voltage between input 1 and 2
print( ads.convertToV( ads.readDifferential_1_2() ) )

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Metadata

Release files for ADS1219-lib 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ADS1219-lib 0.0.2
File Size Uploaded Provenance Actions
ADS1219_lib-0.0.2.tar.gz 5.2 kB Without provenance Details for ADS1219_lib-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ADS1219-lib 0.0.2
File Interpreter ABI Platform Actions
ADS1219_lib-0.0.2-py3-none-any.whl Python 3 none any Details for ADS1219_lib-0.0.2-py3-none-any.whl

Total release size: 12.4 kB

Release files / ADS1219_lib-0.0.2.tar.gz

Download URL ADS1219_lib-0.0.2.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
81a030e96807dd4d885c2b180c855fb162bee92edf666aca83b6e97049ec11ff
BLAKE2b-256 checksum
How to use checksums
0a176bf3fe24fafce0c5b54d1a3744e61a94985ae841d511b68c25ecd2bbfd00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.7.3

Release files / ADS1219_lib-0.0.2-py3-none-any.whl

Download URL ADS1219_lib-0.0.2-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfd50ec1fd0a8d4e2d27a0d056c30e044564201a238198266dd6db5934c9b7c5
BLAKE2b-256 checksum
How to use checksums
68864b066552ea37dd7f76fc9bf25ebda99214a520fec4aa5c30326a67cfbf02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.7.3

Security for ADS1219-lib 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page