I used the code of calculating the force of FSR on adafruit :
https://learn.adafruit.com/force-sensit ... ing-an-fsr
I would like to know why fsrConductance is divided by 80 and 30:
Code: Select all
// Use the two FSR guide graphs to approximate the force
if (fsrConductance <= 1000) {
fsrForce = fsrConductance / 80;
Serial.print("Force in Newtons: ");
Serial.println(fsrForce);
} else {
fsrForce = fsrConductance - 1000;
fsrForce /= 30;
Serial.print("Force in Newtons: ");
Serial.println(fsrForce);
}
If I want to measure the force between 1 kg to 10 kg, how do I modify the code?
I would really appreciate the help. Thank you very much!