AD7705 analog-to-digital woes
kolyur
Posts: 43
Has anyone successfully interfaced the Prop to an Analog Devices AD7705 chip using the AD7705.spin object from the Obex?
My system will ultimately include a load cell to channel 1 (0-30mV) and a linear pot to channel 2 (0-2.5V, also the reference voltage). Just focusing on the pot for now, I am observing the following behavior:
1. With the pot connected to channel 1, and channel 2 disabled, I get a good reading.
2. With the pot connected to channel 2, and channel 1 disabled, I get a good reading.
3. With both channels enabled, and the pot connected to either channel (other channel connected to the load cell or left unconnected), I get zero readings on both channels. :frown:
At startup I am configuring the used channel(s) for unipolar buffered operation with an internal self calibration (gain of 1 for now). I'm displaying the readings on an LCD and I believe that communications between all devices are working properly. What it boils down to is that I don't understand why the channels seem to affect each other. Shouldn't they be completely independent? I have not seen anything in the datasheet that would indicate what could cause this.
Thanks for any suggestions.
My system will ultimately include a load cell to channel 1 (0-30mV) and a linear pot to channel 2 (0-2.5V, also the reference voltage). Just focusing on the pot for now, I am observing the following behavior:
1. With the pot connected to channel 1, and channel 2 disabled, I get a good reading.
2. With the pot connected to channel 2, and channel 1 disabled, I get a good reading.
3. With both channels enabled, and the pot connected to either channel (other channel connected to the load cell or left unconnected), I get zero readings on both channels. :frown:
At startup I am configuring the used channel(s) for unipolar buffered operation with an internal self calibration (gain of 1 for now). I'm displaying the readings on an LCD and I believe that communications between all devices are working properly. What it boils down to is that I don't understand why the channels seem to affect each other. Shouldn't they be completely independent? I have not seen anything in the datasheet that would indicate what could cause this.
Thanks for any suggestions.
Comments
In its current state (configuring and reading both channels) it doesn't work--returns zero for both channels. If I comment out the ConfigureChannel and GetChannel methods for one channel, the other channel works.
Here's my schematic showing the AD7705 and connections to the Propeller. J3 is to the load cell and J4 is to the pot (pin 2 is wiper). During my testing I haven't been using the load cell, just moving the pot back and forth between AIN1 and AIN2.
So, I will either need to use two AD7705's or continually switch back and forth between channels. Just an FYI for others who may be considering this chip.