olkal/HX711_ADC

tare function does not tare

strud opened this issue · 4 comments

strud commented

Hi there

I am calling the tare() function but getting a large residual reading afterwards of about 9000 to 10000 (cal = 1)

What would be the cause of this?

Do you have a limit on how much offset the tare can cope with?

olkal commented

Hi, sorry for the delayed response.
There is no limit to the amount of tare offset. I don't know the reason for the issue you have, but perhaps the functions getTareOffset(); and setTareOffset(); could be useful to find out what is happening.

Hi Olkal,

function setTareOffset(); and setCalFactor(); can be used both or just one is enough ?

olkal commented

Hi dennyakbar!
They are totaly different functions and can both be used.
The output is calculated like this (simplified): outputdata = (data - tareoffset) / calfactor

Olkal, thank you.