Skip to main content

GP8XXX-IIC

The GP8XXX-IIC module provides an interface for controlling DAC (Digital to Analog Converter) devices over the I2C protocol. This module supports various DAC models with different resolutions and output voltage ranges.

Features

  • I2C Communication: Utilizes the smbus2 library for communicating with DAC devices over the I2C bus.
  • Output Ranges: Supports different output voltage ranges including 0-5V, 0-10V.
  • Support Multiple DAC Models:
    • GP8503: 12-bit DAC Dual Channel I2C to 0-2.5V/0-VCC
    • GP8211S: 15-bit DAC I2C to 0-5V/0-10V
    • GP8512: 15-bit DAC I2C to 0-2.5V/0-VCC
    • GP8413: 15-bit DAC Dual Channel I2C to 0-10V
    • GP8403: 12-bit DAC Dual Channel I2C to 0-5V/0-10V
    • GP8302: 12-bit DAC Dual Channel I2C to 0-5V/0-10V

Installation

You can install the GP8XXX module from PyPI using pip:

pip install GP8XXX-IIC

Example

import time
from GP8XXX_IIC import GP8403

GP8403 = GP8403(i2c_addr=0x5F, auto_range=True)

while GP8403.begin():
    print("init error")
    time.sleep(1)

# Optional
# GP8403.set_dac_outrange(GP8403.OUTPUT_RANGE_10V)

# Chanel 1: 6.721V
GP8403.set_dac_out_voltage(voltage=6.821, channel=0)

time.sleep(3)

# Chanel 2: 2.774V
GP8403.set_dac_out_voltage(voltage=2.774, channel=1)

time.sleep(3)

# Chanel 1 & 2: 0.253V
GP8403.set_dac_out_voltage(voltage=0.253, channel=2)

Tested devices

DAC Module Tested
GP8503 ❌
GP8211S ❌
GP8512 ❌
GP8512 ❌
GP8413 ❌
GP8403 ✅
GP8302 ❌

Metadata

Release files for GP8XXX-IIC 0.0.4

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

Source distribution (sdist)

Source distribution for GP8XXX-IIC 0.0.4
File Size Uploaded Provenance
GP8XXX_IIC-0.0.4.tar.gz 4.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for GP8XXX-IIC 0.0.4
File Interpreter ABI Platform
GP8XXX_IIC-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / GP8XXX_IIC-0.0.4.tar.gz

Download URL GP8XXX_IIC-0.0.4.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7d84bedaa1303565b91f91a3e852c63ffa2bb59167e3531bfa35a98d738b52a2
BLAKE2b-256 checksum
How to use checksums
5dc269c4376f70e8523a54fc2f6d6588fd23587a24b3f6eba7ec00332731c22e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.17

Release files / GP8XXX_IIC-0.0.4-py3-none-any.whl

Download URL GP8XXX_IIC-0.0.4-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
228dfb0342f26edf091866763c1223a645f00509137f79e8e75f0a5b2f7e427a
BLAKE2b-256 checksum
How to use checksums
e2448d1eb063096ef60facabc330fdec18f2aed4203e9e885de17e3e01fbbe79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.17

Security for GP8XXX-IIC 0.0.4

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.

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