-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HX711 Drift #51
Comments
Drift is pretty normal with load cells, due to temperature and mechanical settling, but that seems excessive. |
Actually, I say that seems excessive because you're showing a movement of just under 4% (2500/67000), but I've got nothing really to go against. You're not tareing or scaling the readings. |
Thanks for the quick replay. This is the plot for about an hour read, with 20Kg on. For my understanding , if all parameters are fixed - load, power source, temperature, code side - isn't the read suppose to be basically the same over time (lets say an hour)? |
I suspect you have a faulty load cell or incorrect wiring. That works out at over 0.5kg drift. Not as bad as 4% of 200kg, but still awful. |
BTW, you didn't really try any of my initial suggestions. Do you have a multimeter? |
Its a 3 wires load cells. and I do have a multimeter, what kind of tests can I do to isolate the problem? Thanks for you help electrokean! |
As I suspect a wiring issue, I recommend starting there. The ESP8266 runs from 3.3V, but the HX711 can run from 2.4V to 5.5V. What voltage are you running the HX711 at? |
I'm guessing my own wiring can cause this issues, I will start it over. BTW - my project has to deal with 5KG up to 40KG loads, is it better to use 4 load cells (50Kg each) in a Wheatstone bridge, or maybe just one or two? Thanks! |
OK, just confirm that you've got the 3 wire load cells wired correctly - the correct wiring configuration isn't obvious. See http://electronics.stackexchange.com/a/196064 for another wiring example that I think is clearer. I've only used the HX711 at 5V. Running it at 3.3V should be OK, but may make it more succeptible to noise. I actually stopped using the HX711 and went to another chip for my own design, but this library was really helpful to me when I first started. You'll get better results if you limit your combined load cells to a bit above your maximum, otherwise you're wasting the range of the ADC. But don't get too close as the load cells can become non-linear close to their limits. The 4x50kg load cells are typically used in cheap scales for weighing people. The 3 wire load cells will work best in a set of four, but you can wire them up as single or doubles. I now always use a 6 wire "beam style" load cell when I want accurate measurements, or 4 wire for testing. I've have actually never used a 3 wire load cell on my own projects, but I have helped rewire them for friends. |
Thanks electrokean, I will take a look on the beam style load cell |
@electrokean Curious - what chip did you switch to for your project? How do you like it compared to the HX711? Cheers! |
I'm seeing the exact same issue listed here -- I bought four of this load cell, and wired them up with a Sparkfun Combinator and a Sparkfun HX711 Breakout board. I wired them up so that red (supply +) goes to '+', yellow (output +) goes to 'C', and black (supply -) goes to '-'. The white wire (output -) is current left unattached. The HX711 is outputting a steady 4.35 Volts, so it doesn't seem to be a power issue. I've tried adding 0.1 uF (for power noise) and a 10 nF (for RF suppression) to the sensor leads, but this doesn't seem to be the issue. I'm under the impression this is the correct wiring for the part; if so, then the HX711 chip itself or library are the only things I can imagine that'd cause this sort of dramatic drift in the readings. |
@GeorgeHahn The part I use is the Texas Instruments ADS1232. http://www.ti.com/product/ADS1232 I have my own PCB design that combines the ADS1232, ATmega328, temperature sensor, plus power and comms circuits. It runs an Arduino sketch, and connects back to a control system/data logger via RS232 and a 12V supply, but is pretty much based on the ADS1232 reference design. It is used in the field for automatic weighing of penguins and wallabies here in Australia, and was designed to be a drop in replacement for a 20 year old design that had been used in Antarctica. It can return weight data at 50 readings per second (100 SPS averaged in pairs). To get the 100 SPS, I use an external crystal. I also developed extended firmware for newer projects that supports additional commands, including measuring noise levels. I've had these running for a couple of years now in pretty harsh environments, and the only problem has been with rats eating cables! |
@morphogencc you don't want to use the Sparkfun combiner PCB if you have 4-wire load cells. It is only intended to make wiring easier for the 3-wire half-bridge load cells. |
@electrokean That sounds like a great project! Is your extended firmware open source? I'd love to take a look at it and port it to Simblee (which uses a Nordic ARM part). |
@GeorgeHahn It isn't currently open source, but I'll think about it. Don't see any issues, but I just need to spend a little time on it before a public release, and I don't have spare time right now. |
@electrokean Let me know if you'd like help with tidying! I'm just about to order prototypes that use the ADS1232 part and will have a good bit of time to spend working on firmware.
Sent from Outlook for Android
…________________________________
From: Kean Maizels <notifications@github.com>
Sent: Thursday, May 25, 2017 9:22:21 PM
To: bogde/HX711
Cc: George Hahn; Mention
Subject: Re: [bogde/HX711] HX711 Drift (#51)
@GeorgeHahn<https://github.com/georgehahn> It isn't currently open source, but I'll think about it. Don't see any issues, but I just need to spend a little time on it before a public release, and I don't have spare time right now.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#51 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAer20Uf11Wv-U6jmqa9_QI6BmX5dmgWks5r9jddgaJpZM4K4NG0>.
|
@GeorgeHahn sure, shoot me an email. Contact details can be found via website listed on my profile. |
@electrokean which library do you use with ADS1232 ? What is your advice for a 6 wire "beam style" load cell provider ? |
@flowmeter It is my own code, based on info from the TI datasheet and app notes. @GeorgeHahn has a copy of my code and we are working to release something. |
@electrokean, @GeorgeHahn - any progress on a firmware release? |
@OO999 I play with HX711 and I get also big drift. Moreover, I get drift w/o load cell - just 3 resistors. 5-ohm resistor across ADC+ & ADC- and 2x 3k resistors to pull up & down to create middle voltage on the differential inputs (ADC+ & ADC-) |
@electrokean I am working on a project in weighting but w/o any human involved and I managed to read my HX711 with a stm32f030. I have a consistent reading in weight near 25 Kg but when I weight my self It gives me different value in each read. It is not correcting even by heavy average such as 100 sample. I want to know have you had such this problem in your project and what was your procedure to solve it |
Is your load cell rated for large weights? |
@ I bought a commercial 180 kg weight scale and removed the board so I replace it with my hx711 module with remaining 4 loadcell |
@davidjonz2005 this issue has been closed for over 2 years! |
Mine's doing the same thing. Well, it's slowly drifting up and down. I suspect it's undulations in the mains voltage because nothing else in the setup is changing. |
The load cells are highly sensitive to the temperature. How sensitive ? Individually - we've seen positive, negative. We've tested with TI made ADC and it wasn't much better. At the end we abandoned the project (it was a hobby). |
Hi,
I'm using an HX711 amplifier with 50Kg 4 load cells, like this:
https://learn.sparkfun.com/tutorials/load-cell-amplifier-hx711-breakout-hookup-guide
My problem is that the reads is drifting, even with no load on scale.
Board: ESP8266 e-12
Power source: MB102 Breadboard Power Supply Module 3.3V 5V For Arduino
I'm using Bogde's Hx711 library (https://github.com/bogde/HX711).
My
code is very basic:
void loop() {
if(scale.is_ready()){
Serial.print(",");
Serial.print(scale.read_average());
}else{
Serial.println("scale not ready");
}
delay(1000);
}
And the output is keep drifting up (see attachment).
Any ideas what cause the drift? and how do I fix it?
Thanks!
The text was updated successfully, but these errors were encountered: