Skip to main content

Python module to use the MCP4725 DAC with the Raspberry Pi

Project description

A Python module for the Raspberry Pi to interface with the MCP4725 I²C Digital-to-Analogue Converter.

Compatibility

Tested on Python 3.9 on a Raspberry Pi Zero W v1.1, but should be compatible with most Raspberry Pi models running the latest version of Python.

Module works with Microchip's MCP4725 DAC.

Pre-requisites

  • smbus2 library

    The MCP4725 module uses the Raspberry Pi's built-in I²C driver to communicate with the chip. This is done on Python using the SMBus protocol. However, due to SMBus incorporating only a subset of I²C features, it is not fully compatible with I²C commands. This is fixed by using smbus2, a drop-in replacement of the smbus module with extra functionality permitting the extra I²C features. It can be imported as smbus to be backward compatible. See below for more details.

    The module must be imported within the main code (it is not imported within the module).

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

pi_MCP4725-0.1.3.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file pi_MCP4725-0.1.3.tar.gz.

File metadata

  • Download URL: pi_MCP4725-0.1.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pi_MCP4725-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f42f54045d41cad010605b17019047f993f7e5bd82a3fa55dc25f5abd22dc656
MD5 d1f955fc7cb9f55c19433c9c46a8cdd4
BLAKE2b-256 ca02f8a8289b76c4d79c38cac040f0fc2c831a61cc3108570e154b3ecfa6a5d9

See more details on using hashes here.

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