Other Parts Discussed in Thread: ADS114S06
Hello,
I am not sure I understand the proper way to take single ended input measurements. Here is how I have tried:
byte addr, data, aux; addr = CMD_WREG | REF_R; aux = B00001010; // bypass both reference buffers; 2.5V internal ref; internal ref always on SPI.transfer16((uint16_t) (addr << 8 | aux)); addr = CMD_WREG | INPMUX_R; aux = B01011100; // set input P AIN5 and input N AINCOM SPI.transfer16((uint16_t) (addr << 8 | aux));
AINCOMM is not tied to anything (GND ?) so I figured that for my [ 0.5 ~ 4.5 ] V signal I could use the 2.5V bias:
addr = CMD_WREG | VBIAS_R; aux = B01000000; // V bias to AINCOM SPI.transfer16((uint16_t) (addr << 8 | aux));
This last setting to VBIAS_Register made no difference though. I have stuck a wire on the AIN5 input and -
Result:
yesterday night input was quite noisy around some fixed value, a fixed value that would depend on how the wire was bent, my finger on it, etc. Left it running overnight and now the read data only alternates between 32767 and 32768 no matter what. Where are the problems here ?
thank you