-
Notifications
You must be signed in to change notification settings - Fork 152
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
Help with Troubleshooting Issue #4
Comments
Hi, Thanks! On Sep 6, 2016 01:23, "alotred" notifications@github.com wrote:
|
Hi, From a more electronic point of view, I'm gonna need a picture of the other I have to leave to work know but I'll take a look while at the office and We're almost there. Don't give up. Tato On Sep 6, 2016 08:26, "alotred" notifications@github.com wrote:
|
Hi, On the other hand, my guess is that you're probably using a protoboard to connect the loadcells to the HX711. The potential differences coming from the loadcell are very very small which make the signal very susceptible to noise. It is good practice to plug the loadcell directly into the HX711 without the protoboard in the middle. Finally, all that noise you're getting could be due to the Tato |
Hi, Your log looks good actually. There might be an issue on my side. I think my code is overflowing the "int" value which causes positive or negative numbers where ther should be the oposite. I'll make a quick change but I won't test it right now cause I don't have my Py here and, besides, I'm really tired. I got back fron the office at 10. Long day. Stay tuned. I'll answer back in a few minutes. Tato |
Hi, Tato |
Hi Tato, If you upload it I could just test it now for you :) Kind Regards |
I've already pushed the changes so give it a try! Good luck. I'm sure something will break down. I invite you to try and make changes and corrections to the code, it's really simple. I just didn't one day in a hurry, taking Michael Vine's NodeJS code as a reference to port from. |
Thank you for the quick response. I have been playing around and I've found that the results are still all over the place. I've been trying to understand the code (I have never worked with python before) but I found the results are slightly better when I set the gain to 32 instead of 128. Everytime I run the code. I get very different numbers however, now they are always positive and I get 0.000 often. Because of how erratic the results are, I can't tell if the system can sense a load and so I'm wondering whether the problem is load cell itself. Kind Regards |
Hi, Tato On Sep 7, 2016 07:42, "alotred" notifications@github.com wrote:
|
Hi, Kind Regards |
Hi, Tato On Sep 7, 2016 07:49, "alotred" notifications@github.com wrote:
|
Hi Tato, Kind Regards |
Hey (still don't know your name, is it Eric?), By the way, an overflow, if you don't know what it is, is when you hit the I'll get back to you in about 12 hours which is when I get home. Tato On Sep 7, 2016 07:56, "alotred" notifications@github.com wrote:
|
Hi Tato, Kind Regards |
Hi! Talk to you later. Good night. Tato On Sep 7, 2016 08:17, "alotred" notifications@github.com wrote:
|
Hi, Have a good day at work :) Kind Regards |
Hey! Tato |
Hi! Goodnight! |
By the way, unless you soldered the "B-" and "B+" pins in your HX711 breakboard, you were not using 32db gain. Only those pins are for 32db gain and they are only for that. "A+" and "A-" can be used both for 128 and 64. However, if you see more stable values, it's because the resolution is low. According to your logs, there definitely is an overflow which my load cells are not generating and I'm pretty sure I can find it. |
So, after debugging with "alotred", we found out the order of the bits coming from the HX711 was the problem. My HX711 work in one way and her works in a different way. I'll make the necessary modifications to the code so the order of the bits (and bytes) can be adjusted by configuration. |
I've made major modifications to the code in order to make it simpler and more debugable. The order in which the bytes are used to build the value returned by the HX711 can now be changed using the method |
Hi Tato
Thank you so much for offering to help. I am using Pi 2 Model B. I have connected the Hx711 as follows:
VCC - 3v3
GND - Ground
CLK - GPIO23
DATA - GPIO24
I've only changed line 140 in the code to: hx = HX711(23, 24)
After running it with "sudo python hx711.py" I get the following output
It appears to be very erratic. I have also tried to switch the CLK and DATA pins around and I get the value "18.23" constantly even with the addition of a weight. Thanks again
Regards
The text was updated successfully, but these errors were encountered: