Question: For this question, you need to use the force sensor in Tinkercad It should be connected to an Arduino in the following configuration: FSR =

For this question, you need to use the
force sensor in Tinkercad
It should be connected to an Arduino in
the following configuration:
FSR = force sensor, it works as a variable resistor
Write a program to collect data to determine the
relationship between the number measured by the
Arduino and the force value on the force sensor.
You should collect data points every 0.5N up to
5N, and then every 1N up to 10N.
You should then either use polvfit in MATLAB to
fit the data with a polynomial equation (of 4th
order or higher) describing the relationship
between the 2 variables. You will then use the
resulting equation to convert from the number
read by the Arduino to force in N.
OR
You can use a look-up table. You can store pairs
of measured Arduino input/force in N in columns
in a matrix, where the Arduino input numbers are
organized from lowest to highest. To then convert
a new number read in by the Arduino (x), find the
the Arduino inputs and x2) in your table that
bracket your value, i.e., closest to x above and below
it in value. Then use linear interpolation with x,x1,
x2, the corresponding force in N in the table y1 and
y2 for x1 and x2 :
y-y1=y2-y1x2-x1**(x-x1)
For this question, you need to use the force

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!