I've posted very recently about my trouble with load cells. Baffled at how poor my results are. Huge drift to the point that I wouldn't even call it drift. Very noisy readings, too, but I don't know what could be the noise source.
I'm posting again, this time with a simpler, isolated setup:
Here, I have some readings taken shortly after power on.
Here, I have some readings taken maybe two minutes later. I am aware temperature plays an effect, but not like this.
Here is my code. It couldn't be much simpler.
#include "HX711.h" //https://github.com/bogde/HX711
#include "BufferedOutput.h" //https://github.com/PowerBroker2/SafeString
// #include "MovingAverageFloat.h"
// HX711 circuit wiring
#define LOADCELL_DOUT_PIN A0
#define LOADCELL_SCK_PIN A2
HX711 scale;
createBufferedOutput(BufferedOut, 80, DROP_UNTIL_EMPTY); //for non-blocking printing
void setup() {
Serial.begin(9600);
while(!Serial) {}
BufferedOut.connect(Serial);
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
delay(500);
}
void loop() {
// if (scale.wait_ready_timeout(500)) { //nonblocking?
if (scale.is_ready()) BufferedOut.println(scale.read());
// }
delay(500);
}
I've swapped out my ADS1232 strip board module from earlier for Sparkfun's reputable HX711 module. Here is its circuit schematic:
I've grounded the load cell's aluminum body--I've checked that there is continuity. Here is its datasheet: link. 100g load cell because I am looking for 10mg accuracy or better (I found this scholarly article saying they've gotten to 5mg accuracy without temperature compensation and using the same components I'm using, so I'm not being unreasonable with my expectations for the hardware).
I have checked my excitation voltage with an oscilloscope. 100MHz bandwidth, AC coupling. Apparently, 27mV ripple peak-to-peak. Not good. I was expecting a (few) hundred microvolts.
Not sure what else to do here. I know I could order some braided copper sheath for the cables to help with radiative noise, but I consider that a final touch.
I'd really, really appreciate help here. I'm afraid I've reached my limit.
Edit: Load cell impedance between red and black is 1088Ω and between green and white is 1000Ω, in agreement with the datasheet.
Edit 2: I put the thing in a faraday cage.
I removed radiated noise from the equation.
I tried with a different laptop.
I'm just laughing now. Giving it a rest. Need to catch up on other work. Thanks anyways, good people.