Mathematical formula that converts voltage to weight the HX711 is using

djsfantasi

Joined Apr 11, 2010
9,237
Hi djsfantasi,

When you explain to me with one of the data that I get for example 500 grams = 0.55 mV. how to calculate to get value from hx711 module ?

Thank you
I thought I did in my post. Don’t you know how to derive the formula for a straight line? This is basic algebra.

Given two points on the line, (x0,y0) and (x1,y1), the formula is

y = mx + b​
Where m and b are calculated as follows

m = ((y1 - y0) / (x1 - x0)​
b = y0 - m*x0​
In my example, the two points are (0,0) and (2.5,0). Hence, m and b are as follows.
m = (2.5 - 0)/((1024 - 0)​
= (2.5)/(1024)​
= 0.0024​
b = y0 - 0.0024 * x0​
So, in my example, to calculate the input voltage from the ADC reading, the equation is

Input Voltage = 0.0024*(ADC Reading) +0​
Input Voltage = 0.0024*(ADC Reading)​
 
Top