Hi,
I'm using this ADC to measure a strain gauge, and it has always been working as expected.
Lately I encountered something strange, every other second there was 1 measurement way off.
I converted the readings to HEX, and apparently there are some extra bits in the beginning (FF8).
These are some readings; (format: counter - milliseconds - data)
82 6529 BDC27
83 6579 FF8BDCD3
84 6628 BDC76
...
109 7879 BDC3B
110 7929 FF8BDC45
111 7980 BDC03
This error is rather predictable, so I suppose could program my way around it, but I would like to understand what is happening.
I first came across this when I added a SD card reader to my setup.
Both SD card and ADS1220 are connected with the same SPI lines, and the following code causes the problem;
digitalWrite(SDchipSelect, LOW);
digitalWrite(ADS1220_CS_PIN, HIGH);
delayMicroseconds(10);
if (myFile)
{
myFile.println("v = " + outpur);
}
digitalWrite(SDchipSelect, HIGH);
delayMicroseconds(10);
If I remove the line "myFile.println", all data readings are correct,
with datalogging on SD, I have a periodic error.
Anybody an idea?
Thanks in advance,