Arduino HX711使用


参考Github:https://github.com/RobTillaart/HX711

参数意义参考:https://www.yiboard.com/thread-1241-1-1.html

set_scale();函数将用于刻度校准的calibration_factor设置为所需的值,tare(); 函数将其设置归零。

get_units(); 函数读取重量,如果小于零,则认为是零。

First action is to call begin(DATAPIN, CLOCKPIN) to make connetion to the HX711.

Second step is callibration for which a number of functions exist.

  • tare() measures zero point(清零校准)
  • set_scale(factor) set a known conversion factor e.g. from EEPROM.(设置已知的转换因子,就是校准系数)
  • callibrate_scale(WEIGHT, TIMES) determines the scale factor based upon a known weight e.g. 1 Kg.(根据已知的权重确定比例因子,例如1公斤)


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM