Here is a code example for measuring the FSR on an analog pin.
Here is a code example for measuring the FSR on an analog pin.
Ligne 181 :
Ligne 181 :
}
}
</nowiki>
</nowiki>
+
+
=== Mesures FSR analogique (code avancé) ===
+
+
This Arduino sketch that assumes you have the FSR wired up as above, with a 10K? pull down resistor and the sensor is read on Analog 0 pin. It is pretty advanced and will measure the approximate Newton force measured by the FSR. This can be pretty useful for calibrating what forces you think the FSR will experience.