I see 65535 and 65533.
What's the range you need to read?
If the weight indicator drops to negative numbers, the numbers with 65555 are displayed. - It would be better if it showed 0 in the sign. I hope if I calibrate the loadcell correctly - it will not drop to the signed numbers. My main purpose is to set two hc-05 bluetooth modules as master and slave and write the data in the rope type loadcell in the crane to the display below. If I cannot transfer the data in low to the Bluetooth module, I will bother you. Thank you very much for your help.
Like I wrote, it's not 65555. And you didn't answer my question, what's the range you are getting from your device. Up to 100? 10000?
I'm sorry I didn't understand. The device and the Arduino will be side by side. I'm thinking of sending the data to the other Arduino via Bluetooth. The maximum weight is 2500 kg.
Try this. Replace the two lines:
Serial.print(F("LOW : ")); Serial.println(serverA.getResponseBuffer(0x00));
Serial.print(F("High: ")); Serial.println(serverA.getResponseBuffer(0x01));
with
int low = serverA.getResponseBuffer(0x00);
if (low > 10000){
low = 0;
}
int high = serverA.getResponseBuffer(0x01);
if (high > 10000){
high = 0;
}
Serial.print(F("LOW : ")); Serial.println(low);
Serial.print(F("High: ")); Serial.println(high);
the datasheet doesn't tell much about how to combine the values:
try'n'error:
combine the the low value and high value to one signed variable.
int32_t value = ((int32_t)serverA.getResponseBuffer(1)<<16) + serverA.getResponseBuffer(0);
afterwards decide if it is <0 .
if it is < 0, asume 0.
OP should push it harder to get some idea...
Yes it worked. After -1,-2,-3,-4,-5,-6,-7 the weight indicator falls into -oFL error and becomes 0. This is better. I can't press the loadcell that much. But it writes up to 3000, right? It's late here. Later I can ask for help on multiplying the number by 2 and sending it via Bluetooth. Since there are 2 ropes, the loadcell measures the load on one rope. Thank you very much for your help. Have a nice day
It's quite easy to see that it writes up to 10000. But I don't know how your sensor is combining high and low...
Good night.
Sorry for asking meaningless questions. I'm new to these matters. Thank you again for your help. Have a nice day.
Not really. Not really. Another thread of was a struggle to get you to test and respond. You can do so much more if you accept the input, test it, and describe the results. (input, process, feedback = output)
I didn't understand you. 3 weeks is a very short time for such programming.