Skip to main content

NuMat Chips

Python drivers for circuit board components. Intended for use with Raspberry Pis.

Why?

Many of the components supported here come with drivers. However, their code quality is mixed and many important chipset features can be missing or misconfigured. It's your chip and you should be able to use all of it.

These drivers were built ground up from the appropriate datasheets, making sure that all useful features are exposed or set to sensible defaults. The code is concise and linted, and this library works as a dependency.

Supported Chips

  • ADS1115
  • ADS8344
  • MAX31855
  • MAX31856
  • MAX31865
  • MCP3008
  • MCP3202
  • MCP3208

Installation

pip install numat-chips

Usage

For testing, you can call directly.

import chips
adc = chips.ADS1115(channel=0)
print(adc.read_voltage())

For production, consider subclassing to provide space to document the circuit and improve code reusability.

class PiraniGauge(MCP3202):
    """Reads from an Edwards APG100 vacuum pressure transmitter.

    The gauge is a 0-10V signal, split into a 0-3.3V range by three 10-kiloohm
    resistors.
    """
    def get(self):
        """Returns the pressure reading, in torr."""
        return 10 ** (3 * self.read_voltage() - 6.125)

Metadata

Release files for numat-chips 0.1.1

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

Source distribution (sdist)

Source distribution for numat-chips 0.1.1
File Size Uploaded
numat-chips-0.1.1.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for numat-chips 0.1.1
File Interpreter ABI Platform
numat_chips-0.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 27.2 kB

Release files / numat-chips-0.1.1.tar.gz

Download URL numat-chips-0.1.1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9d8c6ea5e74d2ee09fbedf1562739088c5ff79825188cd9619bd6238195c4684
BLAKE2b-256 checksum
How to use checksums
e5cc902bd2476501617717eecf159f37cac091211d8dba65218575173e8ad191
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Release files / numat_chips-0.1.1-py2.py3-none-any.whl

Download URL numat_chips-0.1.1-py2.py3-none-any.whl
Size 20.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2fecbdb0a0d7635ae42e8bb4f5f0b8e4c3172f923c335402938c1c610dc1e863
BLAKE2b-256 checksum
How to use checksums
1e70cdb50be20bd8db0cc712f5ae9a68b8dc8b1b9a4eb68921c60de00b25bc61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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