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 :
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.