HX711 icon indicating copy to clipboard operation
HX711 copied to clipboard

example_save_state problem :(

Open MBENKI opened this issue 4 years ago • 1 comments

Hi, when i use the example.py file everything works just fine, but i don't want to calibrate each time i turn on raspberry or simply each time i use the scale, i just want to calibrate once and for all, i tried using the example_save_state.py file but i get only errors Please help IMG_20200923_145543

MBENKI avatar Sep 23 '20 12:09 MBENKI

@MBENKI your error is stemming from the .zero() command, not the file. It looks like you're not getting any datapoints back when sampling, which means the median calculation fails. Are you testing with hardware attached?

I don't support this codeset, but I just made a new version of my own that samples multiple HX711 in parallel, if you're interested in trying that out: https://pypi.org/project/hx711-multi/ https://github.com/Morrious/hx711-multi

james-e-morris avatar Jun 08 '21 01:06 james-e-morris