HX711
HX711 driver for STM32 HAL
Install / Use
/learn @nimaltd/HX711README
HX711 Library for STM32
-
http://www.github.com/NimaLTD
-
https://www.instagram.com/github.nimaltd/
-
https://www.youtube.com/channel/UCUhY7qY1klJm1d2kulr9ckw
-
Select 2 pins on CubeMX for clock and data pins.
-
Config
hx711Config.h. -
Call
hx711_init(). -
After init, you can read value.
Example
#include "hx711.h"
hx711_t loadcell;
float weight;
.
.
int main()
{
hx711_init(&loadcell, HX711_CLK_GPIO_Port, HX711_CLK_Pin, HX711_DATA_GPIO_Port, HX711_DATA_Pin);
hx711_coef_set(&loadcell, 354.5); // read afer calibration
hx711_tare(&loadcell, 10);
while (1)
{
HAL_Delay(500);
weight = hx711_weight(&loadcell, 10);
}
}
Related Skills
node-connect
341.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.4kCommit, push, and open a PR
