1 2
Flerbizky
Flerbizky GRM+ Memberand New Reader
1/26/24 1:28 p.m.
tfunder said:

In reply to APEowner :

Here's wiring diagrams and Arduino code (v.09x) for starts. 

https://github.com/tfunder/Corner-Weights

Sir,

Can you tell me exactly what HF711 library you used - version as well? There's a good 2 handfuls available, and with the ones I've tried, my readings are all over the place. I'm guessing I'm using a wrong library: started reading up on them all of them have small differences when it comes to timing and refresh rate etc. <- Those values could also have been changed in later versions of the same library you used I guess.

Also read that the load cell amplifiers can be a bit iffy when powered from the board, so I'm using an external 5v lab supply to power those - so that shouldn't be the issue with the readings. I'm aware I will have to play around with the calibration value, but at the moment I'm just looking for a steady value in the display. After that, we calibrate.

I'm a complete rookie when it comes to Arduino and i2Cs, so was a bit miffed until I figured out the address settings on the LCDs backpacks ( :   Apart from that, super easy to put together - Thank you!

tfunder
tfunder New Reader
1/29/24 7:35 a.m.

I have to admit I have not updated the software for the last 3 years (I'm still on v0.9 :-) as they've worked for my use - so with that in mind:

I used this library: https://circuits4you.com/wp-content/uploads/2016/11/HX711-master.zip as described in this link https://circuits4you.com/2016/11/25/hx711-arduino-load-cell/

Also please note I was very much "inspired" by this: https://github.com/bogde/HX711  where you can read this:
 

Deprecation warning

This library received some spring-cleaning in February 2019 (#123), removing the pin definition within the constructor completely, as this was not timing safe. (#29) Please use the new initialization flavor as outlined in the example above.

  In the latest example Bogde lists:

// 3. Initialize library

loadcell.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
loadcell.set_scale(LOADCELL_DIVIDER);
loadcell.set_offset(LOADCELL_OFFSET);

 

I don't use "loadcell.set_offset" in my code, that *may* be the reason you're seing inconsisten results? 

 

....final thoughts; you have calibrated the cell right? I seem to remember one of mine was 'all over the place' until calibrated?

1 2

You'll need to log in to post.

Our Preferred Partners
UZqGKhLtpsWs8Hgvn7VGNGlmwf11V8pKtOX3xekCgVvccGVrFMtmppB71GaCJBic