Giter Site home page Giter Site logo

cedargrovestudios / circuitpython_ad5293 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.41 MB

A CircuitPython driver for the AD5293 digital potentiometer.

License: MIT License

Python 100.00%
ad5293 circuitpython digital-potentiometer spi circuitpython-community-bundle

circuitpython_ad5293's Introduction

Introduction

Discord Build Status Code Style: Black

A CircuitPython driver for the AD5293 digital potentiometer.

The AD5293 Digital Potentiometer is an SPI, 10-bit, 100K-ohm device. The device operates with a digital logic power source of 2.7v to 5.5v and a dual analog power source of +/-9v to +/-16.5v. The potentiometer pins act similarly to a passive resistive potentiometer, but requires that voltages placed on any of the three pins not exceed the analog power supply voltage.

The CircuitPython driver supports a single SPI potentiometer device per instance. Connecting the SDO pin to the SPI host input pin is not required nor recommended since the SDO pin could interfere with other SPI-connected devices.

This driver does not work with daisy-chained devices.

The Cedar Grove AD5293 custom breakout board provides power and signal connections for SPI and the potentiometer chip. The AD5293 is also used in the AD9833-based Cedar Grove Precision VCO Eurorack module.

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle or individual libraries can be installed using circup.

Installing to a Connected CircuitPython Device with Circup

Make sure that you have circup installed in your Python environment. Install it with the following command if necessary:

pip3 install circup

With circup installed and your CircuitPython device connected use the following command to install:

circup install cedargrove_ad5293

Or the following command to update an existing version:

circup update

Usage Example

import board
import cedargrove_ad5293

ad5293 = cedargrove_ad5245.AD5293(spi=board.SPI(), select=board.D9)

ad5293.wiper = 1023
print("Wiper set to %d"%ad5293.wiper)

ad5293_simpletest.py and other examples can be found in the examples folder.

Documentation

AD5293 CircuitPython Driver API Class Description

CedarGrove AD5293 Breakout OSH Park Project

CedarGrove AD5293 Breakout PCB Repository

https://github.com/CedarGroveStudios/CircuitPython_AD5293/blob/main/media/ad5293_glamour.png

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

circuitpython_ad5293's People

Contributors

cedargrovestudios avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.