Connect dual channel AD5242 (I2C-Compatible, 256 Position Digital Potentiometers)
to Arduino ATMega 2560 and control with LabView Interface for Arduino LIFA.
Steps to implement or Executable Code
1) Connect Arduino and Digital Potentiometer AD5242:
AD5242 PIN Reference
1 9 Ad0
2 A1 10 Ad1
3 W1 11 Gnd
4 B1 12 Vss
5 Vdd 13
6 Shdn 14 B2
7 Scl 15 W2
8 Sda 16 A2
AD5242 Arduino AT Mega
7 SCL Pwm SCL
8 SDA Pwm SDA
2) Open Dir Sql_dB and attach "DIGITAL_POT" database to Sql Server Express.
This dB contains two table with step resistance, in according with Data sheet of AD5242.
RDAc was created by this expression: RWB = RAB/256 + RW
3) Create Connection String to Sql Server Express (.udl)
4) Connect Digital Multimeter to pin W1/B1 (RDAC1) and 14/15 (RDAC2)
5) Execute AD5242_Lifa.vi
Software
- Digital Potentiometer AD5242
- Arduino ATMega 2560
- LabView 2009
- LabView interface for Arduino LIFA
- Microsoft SQl Server Express 2008
Ciao
Antonio