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

Report raw value from HX711 to overcome auto-tare functionality. #7171

Merged
merged 1 commit into from
Dec 10, 2019

Conversation

tobox
Copy link

@tobox tobox commented Dec 10, 2019

Description:

Related issue (if applicable): fixes #6387 (partly)

Currently, when the device is switched off (intentionally or due to
power cut), Tasmota only supports starting with the last known weight
(Sensor34 7) or starting with 0 kg. In either case, this is sometimes
not the desired functionality. For off-site logging of weights, it is
more useful to report the raw, absolute value from the HX711 and to do
calibration/tare in upper layers.

Note: although it is called "Raw" value, the value is both averaged
and scaled! It is just the offset compensation that is missing.

Checklist:

  • The pull request is done against the latest dev branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR.
  • The code change is tested and works on core 2.6.1
  • The code change pass travis tests. Your PR cannot be merged unless tests pass
  • I accept the CLA.

Currently, when the device is switched off (intentionally or due to
power cut), Tasmota only supports starting with the last known weight
(Sensor34 7) or starting with 0 kg. In either case, this is sometimes
not the desired functionality. For off-site logging of weights, it is
more useful to report the raw, absolute value from the HX711 and to do
calibration/tare in upper layers.

Note: although it is called "Raw" value, the value is both averaged
and scaled! It is just the offset compensation that is missing.
@arendst arendst merged commit 1944dff into arendst:development Dec 10, 2019
arendst added a commit that referenced this pull request Dec 10, 2019
Add reporting of raw weight to JSON from HX711 to overcome auto-tare functionality by @tobox (#7171)
ptrooms pushed a commit to ptrooms/Sonoff-Tasmota that referenced this pull request Dec 10, 2019
Add reporting of raw weight to JSON from HX711 to overcome auto-tare functionality by @tobox (arendst#7171)
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

Successfully merging this pull request may close these issues.

HX711 loses calibration point after a reset
2 participants