I have a scale that I built using an HX711 (actually two HX711 modules) connected to one NodeMCU.
I’ve realized that they both seem to be temperature dependent so I need to create a temperature correction factor for the weight based on the outside temperature.
While it’s not perfectly correlated (mostly a time lag due to heat retention of the thermal mass of the materials used) it’s pretty close.
Here are the charts showing the axes:
and here are the charts superimposed to better illustrate the correlation:
in my plan I would have:
W_corrected = W_raw + (correction_factor * T_outside)
And lastly the reference weight I’m using is on the smoker scale and it should be reading around 12.3 lb (using a 10lb barbell plate + the weight of the platform material is around 2.3 lb) so I’ll likely need to do a recalibration in ESPHome too once I get the correction factor worked out.
I know I can do this manually by entering x-y coordinates in an online calculator but seeing as we have this awesome home automation software I didn’t know if there was a way to set it up to do the calculation using a template or integration somehow.
So the question is beside doing things manually is there anything I can use in HA to get me close?