weight scale load cell calibration factor

Hello sir,
i am facing a calculation problem in order to display measured weight.
ADC output on zero weight =2230 ADC o/p at 2000gram(calibrate)=2590,
how to calibrate on 2000 and how to get measured weight???

Assuming a linear transfer function:
How about using the map() function?

map(2230, 2590, 0, 2000);

Map only works with integers (returns the long data type).
If you want to map with float data type, Google "arduino map floats" for lots of information.

The difference between 2230 and 2590 is 360. Take your reading, subtract 2230, and multiply by 2000.0/360.0 to get grams (or 2.0/360.0 to get kilograms).

johnwasser:
The difference between 2230 and 2590 is 360. Take your reading, subtract 2230, and multiply by 2000.0/360.0 to get grams (or 2.0/360.0 to get kilograms).

thanks for support.

Given:
A(w1, adc1) = A(0, 2230)
B(w2, adc2) = B(2000, 2590);
C(w, adc) //w = unknown weight to be measured, adc = adc output

Find w in terms of adc:

(2590 - 2230)/(2000 - 0) = (2590 - adc)/(2000 - w)
==> 360/2000 = (2590 - adc)/(2000 - w)
==> 9/50 = (2590 - adc)/(2000 - w)
==> 2000 - w = (2590 - adc)50/9
==> 2000 - w = 2590
50/9 - 50/9adc
==> w = 50/9
adc + 2000 - 259050/9
==> w = 50/9
adc + (2000 -2590*50/9) gm

thank u very much,
what for tare the weight??

groundFungus:
Assuming a linear transfer function:
How about using the map() function?

map(2230, 2590, 0, 2000);

Map only works with integers (returns the long data type).
If you want to map with float data type, Google "arduino map floats" for lots of information.

LC_basetools has a float mapper. And a float nonlinear mapper as well.

Just sayin..

-jim lee

mohitnama400:
what for tare the weight??

Use the new value instead of 2230 or remember the tare weight and subtract that from the measured weight.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.