Hello,
I am using the ADS1232 to measure weight with two load cells. This all works well so far.
To improve the load measurements, I'd like to compensate for temperature changes and therefore use the onboard temperature sensor.
Unfortunately, I am not able to make any temperature readings.
I set the channels as following:
void setChannel(Channel channel) { switch(channel) { case AIN1: { digitalWrite(TEMP, LOW); digitalWrite(A0, LOW); break; } case AIN2: { digitalWrite(TEMP, LOW); digitalWrite(A0, HIGH); break; } case TEMP: { digitalWrite(TEMP, HIGH); digitalWrite(A0, LOW); break; } }
When I read DOUT, (as I do successfully for the load measurements), DOUT is always high for the TEMP:
// Read 24 bits for(i=23 ; i >= 0; i--) { digitalWrite(SCLK, HIGH); value = (value << 1) + digitalRead(DOUT); digitalWrite(SCLK, LOW); }
My schematic looks as following:
Any help would be greatly appreciated!
Best regards,
Stefan