Hey guys,
I have a load cell amplifier that I am just now experiencing it reading values of exactly 0.00. I am not sure what is triggering it but this behavior doesn't seem repeatable. At times it will not and at times it will. Any ideas of why this happens?
Below is the original portion of the code that calls for it.
while (temp_it < 5)
{ // Read 5 non-0 values as warmup
scale.get_units(value, 1);
Serial << "Value: " << value << endl;
if (value != 0)
temp_it++;
}
I then modified it to use the is_ready check of the amplifier. Also after doing some google search, others were saying that it needs a delay. I then added a 500 ms delay.
while (temp_it < 5)
{
if (scale.is_ready())
{
scale.get_units(value, 1);
Serial << "Value: " << value << endl;
if (value != 0)
{
temp_it++;
}
}
else
{
delay(500);
}
}
In both scenarios I still get 0.00 at times and this affects me because I am taking readings and averaging them. Therefore, I would end up averaging in some of the 0.00 values at times.