Hello everyone,
i am using two MCP4651 dual digital potentiometers, i also attached PCB schematic, which i want to control from arduino uno thru I2C. Here's datasheet for MCP4651, so you don't have to look for it: http://www.farnell.com/datasheets/1789212.pdf
I am trying to write my value into the wiper 1 register like on page 49 of datasheet. But every command i try, i get not acknowledged. I also attached screenshot of oscilloscope.
Here's my code:
#include <Wire.h>
void setup()
{
Wire.begin();
}
void loop()
{
Wire.beginTransmission(40);
Wire.write(0b10010000);
Wire.write(0b10000000);
Wire.endTransmission(40);
delayMicroseconds(500);
}
The I2C protocol clearly works, or i would not get acknowledged address and i tried both potentiometers, both wipers, writing, incrementing and decrementing. Not a single success. If anyone knows what am i doing wrong, i would be grateful.
