letscontrolit/ESPEasy

HX711 temp compensation[FR]

crazybanane opened this issue · 2 comments

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.

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... 😃

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.