How to calculate calibration factor of Load Cell With Arduino UNO

Dear Team,

I am fresher and working on weighting scale project.
Currently I am sucking to calculate the calibration factor.

Requested to provide your help to get some examples.
Find my program as given below:-

It serves to read data using ads1230

int Readdata() {
SPI.beginTransaction(SPISettings(400000, MSBFIRST, SPI_MODE1));
int32_t sum = 0;
int count = 0;
for (int i = 0; i < 10; i++) {

if (digitalRead(ADS1230_DOUT) == LOW)
{
  int32_t sample = 0;
  sample |= SPI.transfer(0);
  sample <<= 8;
  sample |= SPI.transfer(0);
  sample <<= 8;
  sample |= SPI.transfer(0);
  sample <<= 8;
  sample /= 1L << 12;
  sum = sum + sample;
  count++;


}

}

sum = sum / count;
int32_t weight = (capacity * sum ) / ((1L << 20) * 128 * ((sensitivity / 1000)));

Serial.println(weight);
SPI.endTransaction();

}

If you’re posting a TUTORIAL, please have the decency to format your code and offer substantial assistance to those that may use it.

Your topic has been moved to a more suitable location on the forum. Introductory Tutorials is for tutorials that e.g. you write, not for questions. Feel free to write a tutorial once you have solved your problem :wink:

Are you using Load Cell and HX711 Module? If yes, then you can use HX711.h Library to get single calibration factor (the gain) or your own codes to obtain two calibration factors (gain and offset).

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