Hi David, Here is an example. 1) Keep a known weight ( x1) on the load cell. Read the ADC output. store this in y1. 2) Keep next known weight ( x2) on the load cell. Read the ADC output. store this in y2. 3) Find the slope as, m = (y2-y1)/(x2-x1) 4) Calculate the offset as ,c = y2 - (m*x2) 5) Place the unknown weight (x3) on the load cell as read the ADC output, store it in y3. 6) To find the unknown weight as x3 = (y3-c)/m Hope this helps. Regards, Prabin
↧