letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.22k stars 2.2k forks source link

HX711 temp compensation[FR] #5019

Open crazybanane opened 3 months ago

crazybanane commented 3 months ago

Hello are you able to add a Temp compensation for HX711 Plugin?

Problem is that with changes in room temperature my scale shows different values. It would be nice to have a solution for it like Compensation with DS18b20`s or the DHT modules.

tonhuisman commented 3 months ago

You can connect a temperature sensor to your ESP, and use that in the Formula field like %value%+(([ds#temp]-20)*0.001) (or whatever offset and factor you need)

NB: The temperature sensor can even be on a remote ESP, when using the P2P Controller... 😃

TD-er commented 3 months ago

NB: The temperature sensor can even be on a remote ESP, when using the P2P Controller... 😃

If there is the need for temperature compensation, then this should be as close to the HX711 and/or the strain sensors as possible.

By the way, when using temperature compensation, you should use a sliding window average over the temperature measurement to make sure the temperature-compensation will not be counter productive.