Oops, missed that one. I personally would use this:
d = 100
dummy = adc_in * d
adc_value = DIV32 256
Substitute 341 for the 256 is using the 0-300 lbs scale. The adc_value variable will contain the lbs.
Oops, missed that one. I personally would use this:
d = 100
dummy = adc_in * d
adc_value = DIV32 256
Substitute 341 for the 256 is using the 0-300 lbs scale. The adc_value variable will contain the lbs.
Last edited by CocaColaKid; - 21st September 2005 at 13:27.
Bookmarks