Mathematical formula that converts voltage to weight the HX711 is using

Thread Starter

ivanedpratama

Joined Jun 25, 2022
30
hi Ivan,
This is a simple plot of your results, it looks linear.

If you intend to measure via the HX711 module, you MUST set AVDD [ref my previous image] to the same voltage value as the E+/- Voltage.

Do you understand why.??
Ref Post #38 Do you understand what is meant by ratio metric regards an ADC.?

E

View attachment 270224
hi ericgibbs


Can you make a calculation formula from V load cell to the output of the hx711 module from the measurement results of each load that I attach?

Do you understand what is meant by ratio metric regards an ADC.?
I don't really understand about the ratio metric about ADC
 

ericgibbs

Joined Jan 29, 2010
21,535
Hi
If your load cell and HX711 are wired as shown in that diagram, you cannot have 3.3V on the E+/-.
There is an onboard voltage regulator [ S8550] as shown in my images.

Looking at the LED wiring, how do you expect the LED's to work, with 3.3v on their Cathodes.???

The diagram pin numbers and wiring connections is not clear.

E
Please post a photo of the project

1656320086300.png
 

Thread Starter

ivanedpratama

Joined Jun 25, 2022
30
hi ericgibbs,

If your load cell and HX711 are wired as shown in that diagram, you cannot have 3.3V on the E+/-.
There is an onboard voltage regulator [ S8550] as shown in my images.

so ? what is the tension obtained from the picture?

Looking at the LED wiring, how do you expect the LED's to work, with 3.3v on their Cathodes.???
for the led circuit I used it wrong. because I use RGB LEDs have 4 legs

this my project.
1656322254311.png
1656322268990.png
thank you,
1656321866149.png

thank you
 

ericgibbs

Joined Jan 29, 2010
21,535
hi,
Look at this combined image.
The transistor in the Yellow rectangle is the voltage regulator, for the ADC and E+/- voltage, so if the input voltage to the HX711 is 3.3v the voltage on the E+/- cannot be 3.3v .

It will be approx 2.7V.
Measure it.
EG 1690.gif
 

Thread Starter

ivanedpratama

Joined Jun 25, 2022
30
hi ericgibbs,

Okay, for red and black arrows? what is the voltage at the mark?
then the next step after getting it is there a calculation formula for the conversion from voltage to data?

thank you
 

ericgibbs

Joined Jan 29, 2010
21,535
hi,
Question for you.
If I had an 16 Bit A2D converter, where the MSbit was the SIGN Bit.

The A2D Vref was say 2.5V and the analogue input voltage to the A2D was say +1Volt, what would be the Hex value and Bit pattern value of the output of the A2D conversion.?

E
 

Thread Starter

ivanedpratama

Joined Jun 25, 2022
30
hi ericgibbs,
The A2D Vref was say 2.5V and the analogue input voltage to the A2D was say +1Volt, what would be the Hex value and Bit pattern value of the output of the A2D conversion.?
ADC = 1/((2^16)-1) = 1/65535 = 0.00001525902

Is this true ?

thank you
 

ericgibbs

Joined Jan 29, 2010
21,535
hi Ivan,
I have moved your Thread from the Homework Forum to the Analog & Digital Forum.
This means that we can offer more detailed technical help with your project.

Are you familiar with Hexadecimal and Binary notation of numeric values.?
E
 

Thread Starter

ivanedpratama

Joined Jun 25, 2022
30
hi Ivan,
I have moved your Thread from the Homework Forum to the Analog & Digital Forum.
This means that we can offer more detailed technical help with your project.

Are you familiar with Hexadecimal and Binary notation of numeric values.?
E

hi ericgibbs,
I know ,
binary is a number that only uses base 2 digits, namely 0 and 1.
Hexadecimal is a number that uses 16 symbols, starting from the numbers 0.1,2,3,4,5,6,7,8, and 9, then followed by the letters A,B,C,D,E, and F.

The A2D Vref was say 2.5V and the analogue input voltage to the A2D was say +1Volt, what would be the Hex value and Bit pattern value of the output of the A2D conversion.?
when will you tell me about the above method ?

thank you
 
Last edited:

MrChips

Joined Oct 2, 2009
35,024
Since your results show a linear relationship, a simple 2-point calibration would be ok.
You show voltage (mV) vs weight (g).
What we need is ADC (count) vs weight (g).

Do you know how to solve for the equation of a straight line?

The formula is written as
y = mx + c

or sometimes written as
y = a0 + a1.x
 

djsfantasi

Joined Apr 11, 2010
9,237
hi ericgibbs,
I know ,
binary is a number that only uses base 2 digits, namely 0 and 1.
Hexadecimal is a number that uses 16 symbols, starting from the numbers 0.1,2,3,4,5,6,7,8, and 9, then followed by the letters A,B,C,D,E, and F.

The A2D Vref was say 2.5V and the analogue input voltage to the A2D was say +1Volt, what would be the Hex value and Bit pattern value of the output of the A2D conversion.?
when will you tell me about the above method ?

thank you
I try think you are confusing number base with a number value.

First, with an input of 1V, what value would you expect on the output?

if the output is 0 for 0V and 1024 for 2.5V (for this example only. You may have different points), I’d expect 1V to be 410. This is all in decimal of course. You have two points. That’s all that’s necessary to determine a linear equation. That’s what I did to get 410

Now, you didn’t ask about decimal. You asked for binary or hexadecimal. 410 is 110011010 in binary or 19A in hexadecimal. I used an online calculator to make it easy.

Understand? This is no different than the others have been telling you.
 

Thread Starter

ivanedpratama

Joined Jun 25, 2022
30
Since your results show a linear relationship, a simple 2-point calibration would be ok.
You show voltage (mV) vs weight (g).
What we need is ADC (count) vs weight (g).

Do you know how to solve for the equation of a straight line?

The formula is written as
y = mx + c

or sometimes written as
y = a0 + a1.x
Hi MrChips,

Do you know how to solve equations of straight lines?
I do not understand about this, from your example one of the weights to find the ADC value obtained from the HX711 module?

thank you
 

Thread Starter

ivanedpratama

Joined Jun 25, 2022
30
I try think you are confusing number base with a number value.

First, with an input of 1V, what value would you expect on the output?

if the output is 0 for 0V and 1024 for 2.5V (for this example only. You may have different points), I’d expect 1V to be 410. This is all in decimal of course. You have two points. That’s all that’s necessary to determine a linear equation. That’s what I did to get 410

Now, you didn’t ask about decimal. You asked for binary or hexadecimal. 410 is 110011010 in binary or 19A in hexadecimal. I used an online calculator to make it easy.

Understand? This is no different than the others have been telling you.
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
 
Top