Closed jlamperez closed 8 years ago
Solved.
When I was writing to the 16 bit config register with I2C, this was swapping the low 8 bit and the high 8 bits that I was sending to the register. So I was doing a differential reading betwean AIN0 and AIN1 instead of doing a single ended reading.
I'm having some trouble when I get the ADC value from the turnigy servo potentiometer to move the motor to the seek position.
When I move the potentiometer to one side I'm getting negative values and I reach to an adc 0 measure when I have 520mV and not 0V so I can not cover all the potentiometer range. Have you experimented this?
Here some photos of the osciloscope and raspy when I am in 520mV when I go down this voltage I get negative values.
My ADS configuration: