Nimaltd HX711 Save

HX711 driver for STM32 HAL

Project README

HX711 Library for STM32

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);
  }
}

Open Source Agenda is not affiliated with "Nimaltd HX711" Project. README Source: nimaltd/HX711
Stars
70
Open Issues
3
Last Commit
9 months ago
Repository
License

Open Source Agenda Badge

Open Source Agenda Rating