Skip to main content
Associate III
July 3, 2024
Solved

HX711 LOAD CELL on STM32G0B1RCT6

  • July 3, 2024
  • 1 reply
  • 2599 views

HI,

i am trying to interface the HX711 Load Cell to STM32G0B1RCT6 Microcontroller.i using internal clock source(HCLK = 16MHz) and  its reading good.

Load Cell Value: 8220309
Load Cell Value: 8221048
Load Cell Value: 8221228
Load Cell Value: 8221368
Load Cell Value: 8221045
Load Cell Value: 8220950
Load Cell Value: 8221202

To interface an HX711 load cell with an STM32G063ZIT6 microcontroller using an 8 MHz external crystal to generate a 64 MHz system clock, its not reading properly i am getting same value of 

Load Cell Value: 8388608
Load Cell Value: 8388608
Load Cell Value: 8388608
Load Cell Value: 8388608
Load Cell Value: 8388608
Load Cell Value: 8388608
Load Cell Value: 8388608
Load Cell Value: 8388608
Load Cell Value: 8388608

My question is Why does it print this repeated value whenever I connect the external crystal, and how can I correct this problem?

NOTE: i am not enable any Drivers, im using only GPIO Configuration

Best answer by Peter BENSCH

To be able to give you an answer, it would be helpful if you could show your programme and how you have connected the load cell amp.

1 reply

Peter BENSCH
Peter BENSCHBest answer
Technical Moderator
July 3, 2024

To be able to give you an answer, it would be helpful if you could show your programme and how you have connected the load cell amp.

Associate III
July 4, 2024

Sorry for my mistakes. It works well now & I forgot to set the Data pin to low. Could you please explain the calculation?

Andrew Neil
Super User
July 4, 2024

@Berlin-raj123 wrote:

Could you please explain the calculation?


What does the datasheet tell you?

There's lots of tutorials, etc, about the HX711 on the interwebs; eg,

https://randomnerdtutorials.com/arduino-load-cell-hx711/ 

https://learn.sparkfun.com/tutorials/load-cell-amplifier-hx711-breakout-hookup-guide/all#arduino-example

https://github.com/bogde/HX711

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.