Author Topic: HX711  (Read 2268 times)

0 Members and 1 Guest are viewing this topic.

Offline alizare368Topic starter

  • Regular Contributor
  • *
  • Posts: 56
  • Country: de
HX711
« on: December 07, 2018, 06:32:14 am »
Hi
I designed a board for weight measurement  with load cell sensor and using HX711 for high accuracy.

How can I calibrate it for milligram(mg)? 
« Last Edit: December 07, 2018, 06:35:43 am by alizare368 »
 

Offline agehall

  • Frequent Contributor
  • **
  • Posts: 383
  • Country: se
Re: HX711
« Reply #1 on: December 07, 2018, 07:35:17 am »
"Maybe" is about as accurate answer to this question as you can expect to get.

The HX711 is, from what I can tell just the ADC, not the load cell. So we would need to know the performance of your load cell before anyone can help you figure out what the maximum resolution of your system would be.
 
The following users thanked this post: alizare368

Offline ali_asadzadeh

  • Super Contributor
  • ***
  • Posts: 1902
  • Country: ca
Re: HX711
« Reply #2 on: December 07, 2018, 08:20:27 am »
what's your loadcell size? do you have any circuit or sample program to share?
ASiDesigner, Stands for Application specific intelligent devices
I'm a Digital Expert from 8-bits to 64-bits
 

Offline Wiljan

  • Regular Contributor
  • *
  • Posts: 225
  • Country: dk
Re: HX711
« Reply #3 on: December 07, 2018, 09:15:06 am »
The way to calibrate are simple read data from HX711 without any weight this data are your Zero weight "0.000"
Now add a known load on your cell like 1 kg or 1 Pound or 1 Brick or whatever you want to measure in you will get a new value
This new value - the zero value are now = to 1Kg or what you want to measure in
Now it pressy simple math to convert any value to a weight  :)

I assume you use  Arduino, but if not it's the same way to do it
Have a look here how to connect weightcells to the  HXD711
https://learn.sparkfun.com/tutorials/load-cell-amplifier-hx711-breakout-hookup-guide

in the bottom there are links to 2 software, 1 for calibrate and 1 for readout

If you run the calibrate software you can inc / dec the calibration value so your weight fits the actually load
 
Hope it helps
 
The following users thanked this post: alizare368

Offline alizare368Topic starter

  • Regular Contributor
  • *
  • Posts: 56
  • Country: de
Re: HX711
« Reply #4 on: December 09, 2018, 01:07:29 pm »
Hi
The output of ADC(hx711) sample code contract in txt file.
How can I stable the output?

 

Offline alizare368Topic starter

  • Regular Contributor
  • *
  • Posts: 56
  • Country: de
Re: HX711
« Reply #5 on: December 09, 2018, 01:12:29 pm »
the c code Reference Driver(C)contract in txt file.
 

Offline alizare368Topic starter

  • Regular Contributor
  • *
  • Posts: 56
  • Country: de
Re: HX711
« Reply #6 on: December 09, 2018, 01:15:59 pm »
"Maybe" is about as accurate answer to this question as you can expect to get.

The HX711 is, from what I can tell just the ADC, not the load cell. So we would need to know the performance of your load cell before anyone can help you figure out what the maximum resolution of your system would be.


Hi
The output of ADC(hx711) sample code contract in txt file.
How can I stable the output?
 

Offline Wiljan

  • Regular Contributor
  • *
  • Posts: 225
  • Country: dk
Re: HX711
« Reply #7 on: December 09, 2018, 01:36:38 pm »
When you read the ADC with so sensitive signals it will variate, you will need to add in a filter so you do an average eg over 25 samples
there are plenty of examples on the internet to do "average filtering"
What chip / board do you use for your c code?
 

Online iMo

  • Super Contributor
  • ***
  • Posts: 4759
  • Country: nr
  • It's important to try new things..
Re: HX711
« Reply #8 on: December 09, 2018, 01:53:23 pm »
You may try this simple filter:

Quote
double new_value, old_value;
double k = 0.05;    // the smaller "k" the more filtering
                            // k is usually from 0.2 to 0.01, k< 1.0
old_value = 0.0;    // or something else, ie. 8374000.0
..
new_value = k * (double)ReadCount() + ((1.0 - k) * old_value);
// here you may print the new_value..
old_value = new_value;
..
« Last Edit: December 09, 2018, 02:06:03 pm by imo »
 

Offline alizare368Topic starter

  • Regular Contributor
  • *
  • Posts: 56
  • Country: de
Re: HX711
« Reply #9 on: December 09, 2018, 02:08:48 pm »
STM32f030k6t
 

Offline alizare368Topic starter

  • Regular Contributor
  • *
  • Posts: 56
  • Country: de
Re: HX711
« Reply #10 on: December 09, 2018, 02:12:10 pm »
When you read the ADC with so sensitive signals it will variate, you will need to add in a filter so you do an average eg over 25 samples
there are plenty of examples on the internet to do "average filtering"
What chip / board do you use for your c code?

STM32f030k6t
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf