Hey guys having trouble getting the pot to react to commands.
I have verified wiring about 3-4 times so I'm very confident its a coding issue.
Here is what I'm using to send the data which this code works for the other digi pots i'm using (mcp41010)
DryPotValue = DryPotValue / 4;
digitalWrite(DryCSPin, LOW);
SPI.transfer(DryPotValue);
digitalWrite(DryCSPin, HIGH);
Serial works fine with the mcp41010
Is there anything with this pot I should be specifically doing?
adjust divider etc?
Matthewseffects:
Hey guys having trouble getting the pot to react to commands.
I have verified wiring about 3-4 times so I'm very confident its a coding issue.
Here is what I'm using to send the data which this code works for the other digi pots i'm using (mcp41010)
DryPotValue = DryPotValue / 4;
digitalWrite(DryCSPin, LOW);
SPI.transfer(DryPotValue);
digitalWrite(DryCSPin, HIGH);
Serial works fine with the mcp41010
Is there anything with this pot I should be specifically doing?
adjust divider etc?
WHAT IS THE PROBLEM!!! do you expect us to read between the lines and figure out issue?
your post title says AD5290 but IN your post you say you using MCP41010! which one is it?!
in any case a quick google gives results for MCP41010. here's one
https://www.electroschematics.com/13126/learn-use-digital-potentiometers/
hope that helps...
Well i'm using two different digital pots.
The ad5290 isn't responding to the command I listen above so am i missing something in the data sheet?
Does the ad5290 need a command byte like the mcp41010?
Serial is working and the pot does seem functional but it seems to be the format of the serial communication that isn't working.
Matthewseffects:
Well i'm using two different digital pots.
The ad5290 isn't responding to the command I listen above so am i missing something in the data sheet?
Does the ad5290 need a command byte like the mcp41010?
Serial is working and the pot does seem functional but it seems to be the format of the serial communication that isn't working.
from the datasheet it appears that you just need to send the pot value for the ad5290 to set itself to that value.
Please share with us a working code (not a snippet!) as well as the output you would expect for that code.
without seeing your code and knowing what you are trying to achieve, it IS difficult to help...