Skip to main content

Drivers for ADCs, sensors, and other electronic chips.

Project description

NuMat Chips

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


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


pip install numat-chips


For testing, you can call directly.

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

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
    def get(self):
        """Returns the pressure reading, in torr."""
        return 10 ** (3 * self.read_voltage() - 6.125)

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

numat-chips-0.1.1.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

numat_chips-0.1.1-py2.py3-none-any.whl (20.4 kB view hashes)

Uploaded Python 2 Python 3

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