I'm having trouble reading two ADC channels in quick succession, or even in slow succession. Values from one channel bleed over into another channel. And it's not just my code, it's also the Technologics' test7400ADC. If you run it like this:
while ./test7400ADC; do echo -n ''; done
then sooner or later it craps out, and when it does, it prints a value that clearly came from a different channel. I've tried reading twice and discarding the first. inserting a 100ms delay betweeen these two reads, and it still happens. How can I fix this?
I need to measure both voltage and current consumed, and I have the two sensors hooked up to ADC channels.