Skip to content

ncdcommunity/Raspberry_Pi_AD5252_2Channel_Digital_Potentiometer_Sensor_Python_library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

AD5252.

AD5252

The AD5252 (from Analog Devices) offers an ideal solution for most digital potentiometer applications. Learn how to use the AD5252 using our I2C Mini Module and take control of 2 on-board I2C controlled potentiometers, each with 256 taps. Choose from 1K, 10K, 50K, or 100K versions during ordering. The AD5252 supports wiper read-back, allowing you to easily read the current wiper settings. This Device is available from www.ncd.io

[SKU: AD5252]

(https://store.ncd.io/product/ads1114-16-bit-2-channel-precision-analog-to-digital-converter-i2c-mini-module/) This Sample code can be used with Raspberry Pi.

Hardware needed to interface AD5252 2Channel Potentiometer With Raspberry Pi :

  1. AD5252 2ChanneL Potentiometer

  2. Raspberry Pi I2C Shield

  3. I2C Cable

Python

Download and install smbus library on Raspberry pi. Steps to install smbus are provided at:

https://pypi.python.org/pypi/smbus-cffi/0.5.1

Download (or git pull) the code in pi. Run the program.

$> python AD5252.py

The lib is a sample library, you will need to calibrate the sensor according to your application requirement.

About

AD5252 2Channel Digital Potentiometer Sensor Interfacing With Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages