I am uisng AD5280BRUZ20(20K ) with arduino to perform potentiometer operation. When i am using 5V as supply for VDD then its working perfectly. But when i change the power supply for VDD to 12V then its not showing the output at W pin of AD5280. I am attached the circuit diagram with 5V and 12V connection. What is wrong with the diagram?
Also, the Arduino code which i am using is-
#include <Wire.h> byte val = 0; void setup() { // put your setup code here, to run once: Wire.begin(); Serial.begin(115200); delay(500); } void loop() { // put your main code here, to run repeatedly: val += 50; // increment value if (val > 250) { // if reached 64th position (max) val = 0; // start over from lowest value } Wire.beginTransmission(44); // transmit to device #44 (0x2c) // device address is specified in datasheet Wire.write(byte(0x00)); // sends instruction byte 0x40 Wire.write(val); // sends potentiometer value byte Wire.endTransmission(); delay(5000); }