Closed olkal closed 4 years ago
Hi,
If you want to use the method described in the calibration.ino example, you will need to reset the calFactor first: LoadCell.setCalFactor(1.0);
However, you can also re-calibrate using the following method (code not tested, but I hopefully it works):
float v = LoadCell.getData();
float c_old = LoadCell.getCalFactor();
float c_new = (v * c_old) / 'known mass';
LoadCell.setCalFactor(c_new);
The method will be the same for one or for multiple load cells.
In latest release 1.2.0 there are a new function "getNewCalibration(float known_mass)" related to this issue. See updated example file "Calibration.ino" for how to use.
_Originally posted by @msevland in https://github.com/olkal/HX711_ADC/issues/33#issuecomment-612899943_