Hello, I have the following problem:
I am testing two AD5293 digital potentiometers, and when cycling through all bit values to set the resistance, one of them behaves strangely. At some points, it shows out-of-range values, such as 180kΩ (which I assume is an open circuit). Then, it starts working normally, varying between approximately 50kΩ and 100Ω.
However, when I try to set values manually, the readings are inconsistent. For example, at a setting of 0, it measures 166Ω; at 512, it measures 30kΩ; and at 1023, it measures 220Ω.
Meanwhile, the other potentiometer, which behaves more consistently, gives these values at 0, it measures 37.3kΩ; At 512, it measures 20.5kΩ; At 1023, it measures 180Ω.
Does anyone know what might be causing this? Is there a way to calibrate it, or could the potentiometer be damaged?
This is the code i'm using:|