Skip to content
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

Calibration goes for a toss on Power reset #26

Closed
mohanlate opened this issue Feb 19, 2016 · 3 comments
Closed

Calibration goes for a toss on Power reset #26

mohanlate opened this issue Feb 19, 2016 · 3 comments

Comments

@mohanlate
Copy link

I followed the method to calibrate the scale and call tare method in setup and everything works fine. But on power reset, irrespective of weight on the scale, output shows 0, since the setup method runs scale and tare methods again.

Please suggest a workaround. What does the method Tare really do? Is it possible to store its output in EEPROM, etc. ?

Thanks

@bogde
Copy link
Owner

bogde commented Feb 19, 2016

once you find the calibration value, remove the calibration routine from your sketch.

@bogde bogde closed this as completed Feb 21, 2016
@mohanlate
Copy link
Author

hx711code.zip

Here is my code. It is basically just as you suggested. Everything works fine and I am very happy and grateful for this great library. However, on power reset, the output reading for the weight goes back to 0Kgs. I think this is because scale and tare methods get executed in the setup call on power reset.

Please suggest.

Thanks

@bogde
Copy link
Owner

bogde commented Feb 25, 2016

remove scale.tare() from the setup section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants