cancel
Showing results for 
Search instead for 
Did you mean: 

HX711 LOAD CELL on STM32G0B1RCT6

Berlin-raj123
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

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.

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
Peter BENSCH
ST Employee

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.

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

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


@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