Catalog PyPI
PACKAGE EXPLORERView in registry

ADS1219-lib

PyPI

Lib to use ADS1219 with Python on Raspberry

Versions collected1
Direct dependencies2From release 0.0.2
Last observed20 Oct, 19:51 UTC

README

Version 0.0.2 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.222 Nov 20202

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
mickaelv/ads1219-python

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:51 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:e170193000786fadc07f2a20a96a1e26d58849b9b3f824b9ce5b3ebd1b424318