I need guidance on how to set up a force sensor with arduino to read in newtons or pound force. The best way to describe the set up I have currently is through the following example:
I want to measure the pinching force when hemostats are locked onto a 2mm thick magazine.
Nobody knows what "force sensor" You use. If You post a link to the datasheet answers come.
Nobody knows what "Arduino" is. There are plenty of different ones.
I am using an Arduino Uno board and I have a force sensor described as "Compression Force Sensor for Tight Spaces, Round, 2-Pin Connection, 1 lbs. Capacity, 25 mm Long"
#define FORCE_SENSOR_PIN A0 // the FSR and 10K pulldown are connected to A0
void setup() {
Serial.begin(9600);
}
void loop() {
int analogReading = analogRead(FORCE_SENSOR_PIN);
Serial.print("Force sensor reading = ");
Serial.print(analogReading); // print the raw analog reading
if (analogReading < 10) // from 0 to 9
Serial.println(" -> no pressure");
else if (analogReading < 200) // from 10 to 199
Serial.println(" -> light touch");
else if (analogReading < 500) // from 200 to 499
Serial.println(" -> light squeeze");
else if (analogReading < 800) // from 500 to 799
Serial.println(" -> medium squeeze");
else // from 800 to 1023
Serial.println(" -> big squeeze");
The code tags you were advised about are described in the above post in detail as well as duplicating posts etc. edit your post with the icon down here and use the code tags <|> up here
First you will need to calibrate your sensor.
Place it on a hard flat surface, and test it by applying weights to the top surface of the sensor.
You will get readings of the analog reading vs applied weight.
Post your results.