ericgibbs Well-Known Member Most Helpful Member Sep 2, 2013 #3 shivpsit4 said: tell me how to convert adc value in kg. Click to expand... hi s4, welcome. Which programming language are you using and which PIC type.? E
shivpsit4 said: tell me how to convert adc value in kg. Click to expand... hi s4, welcome. Which programming language are you using and which PIC type.? E
misterT Well-Known Member Most Helpful Member Sep 2, 2013 #4 Post two measurements: 1: Sensor reading without load (0 Kg) 2: Sensor reading with a known weight on it.. post the weight of the load and the adc reading on both cases.
Post two measurements: 1: Sensor reading without load (0 Kg) 2: Sensor reading with a known weight on it.. post the weight of the load and the adc reading on both cases.
S shivpsit4 New Member Sep 2, 2013 #5 Progarmming language I am using is c and controller type is avr series atmega 16 My without load adc reading is 325 with load is 750 somting . Tell me to how to convert adc value into kg.
Progarmming language I am using is c and controller type is avr series atmega 16 My without load adc reading is 325 with load is 750 somting . Tell me to how to convert adc value into kg.
misterT Well-Known Member Most Helpful Member Sep 2, 2013 #6 shivpsit4 said: Progarmming language I am using is c and controller type is avr series atmega 16 My without load adc reading is 325 with load is 750 somting . Tell me to how to convert adc value into kg. Click to expand... It is impossible to convert "someting" into kilograms. What is the load.. and what is the raw ADC reading when you put that load to the scale?
shivpsit4 said: Progarmming language I am using is c and controller type is avr series atmega 16 My without load adc reading is 325 with load is 750 somting . Tell me to how to convert adc value into kg. Click to expand... It is impossible to convert "someting" into kilograms. What is the load.. and what is the raw ADC reading when you put that load to the scale?
misterT Well-Known Member Most Helpful Member Sep 2, 2013 #7 1 litre of water is 1 Kg.. put that on the scale and post the ADC reading. Then take the load off and post the ADC reading. Two measurements and that is all it takes to calibrate the scale. Last edited: Sep 2, 2013
1 litre of water is 1 Kg.. put that on the scale and post the ADC reading. Then take the load off and post the ADC reading. Two measurements and that is all it takes to calibrate the scale.
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Sep 2, 2013 #8 You need atleast two known conditions a) When there is no load b) When there is a load Then you need to convert the input value to the output actual KG reading = ((ADC reading - ADC min reading) * Kg span) / ADC span ) + Kg minimum reading..
You need atleast two known conditions a) When there is no load b) When there is a load Then you need to convert the input value to the output actual KG reading = ((ADC reading - ADC min reading) * Kg span) / ADC span ) + Kg minimum reading..
S shivpsit4 New Member Sep 2, 2013 #9 @ Ian Rogers tell me waht is ADC span and Kg span in adc reading the value is max or min i placed over there. where i am getting kg minimum reading
@ Ian Rogers tell me waht is ADC span and Kg span in adc reading the value is max or min i placed over there. where i am getting kg minimum reading
S shivpsit4 New Member Sep 3, 2013 #10 @ misterT without load the load cell adc value is 300 something and with load max adc value is 850 something
@ misterT without load the load cell adc value is 300 something and with load max adc value is 850 something
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Sep 3, 2013 #11 shivpsit4 said: @ Ian Rogers tell me waht is ADC span and Kg span in adc reading the value is max or min i placed over there. where i am getting kg minimum reading Click to expand... You answered your own question here.. without load the load cell adc value is 300 something and with load max adc value is 850 something Click to expand... ADC min = 300 and ADC max = 850... So ADC span = 550 0 kg = 300.. So how many Kg's was load max? If we assume 100Kg then your Kg span will be 100Kg....
shivpsit4 said: @ Ian Rogers tell me waht is ADC span and Kg span in adc reading the value is max or min i placed over there. where i am getting kg minimum reading Click to expand... You answered your own question here.. without load the load cell adc value is 300 something and with load max adc value is 850 something Click to expand... ADC min = 300 and ADC max = 850... So ADC span = 550 0 kg = 300.. So how many Kg's was load max? If we assume 100Kg then your Kg span will be 100Kg....
S shivpsit4 New Member Sep 3, 2013 #12 @ misterT My without load adc reading is 325 with load is 750 somting . Tell me to how to convert adc value into kg.
@ misterT My without load adc reading is 325 with load is 750 somting . Tell me to how to convert adc value into kg.
S shivpsit4 New Member Sep 3, 2013 #13 @ Ian Rogers I make this equation according to u. It gives me +ve and -ve value both. The max to max adc value is 1024. x = read_adc(1); y = (1024-x); kg =((1024-x)*50)/y+0;
@ Ian Rogers I make this equation according to u. It gives me +ve and -ve value both. The max to max adc value is 1024. x = read_adc(1); y = (1024-x); kg =((1024-x)*50)/y+0;
misterT Well-Known Member Most Helpful Member Sep 3, 2013 #14 shivpsit4 said: with load is 750 somting Click to expand... How many kilograms is that load?
misterT Well-Known Member Most Helpful Member Sep 3, 2013 #16 This is the math then: x = read_adc(1); y = (x - 300); kg = (y*50) / 450; Be careful with the math. If you use unsigned integers the math will fail very easily. Use floats if you have the processing time available.
This is the math then: x = read_adc(1); y = (x - 300); kg = (y*50) / 450; Be careful with the math. If you use unsigned integers the math will fail very easily. Use floats if you have the processing time available.
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Sep 3, 2013 #17 A) without load the load cell adc value is 300 something and with load max adc value is 850 something Click to expand... Or B) with load is 750 somting Click to expand...
A) without load the load cell adc value is 300 something and with load max adc value is 850 something Click to expand... Or B) with load is 750 somting Click to expand...
misterT Well-Known Member Most Helpful Member Sep 3, 2013 #19 [MODNOTE]Deleted Off Topic[/MODNOTE] Last edited by a moderator: Sep 3, 2013
jpanhalt Well-Known Member Most Helpful Member Sep 3, 2013 #20 Hi shivpsit4 You may have seen this site, but if not, it has a simple explanation of how to convert the ADC reading to Kg: https://www.sparkfun.com/products/10245 Check the video. The description of the calculation begins at about 6:30 and ends at 7:30. That is, it takes about one minute. Good luck. John
Hi shivpsit4 You may have seen this site, but if not, it has a simple explanation of how to convert the ADC reading to Kg: https://www.sparkfun.com/products/10245 Check the video. The description of the calculation begins at about 6:30 and ends at 7:30. That is, it takes about one minute. Good luck. John