GithubHelp home page GithubHelp logo

santhanalakshmi04 / experiment-no--04-pressure-measurement-using-arduino-aim-to-interface-an-fsr-force-sensitive-resist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vasanthkumarch/experiment-no--04-pressure-measurement-using-arduino-aim-to-interface-an-fsr-force-sensitive-resist

0.0 0.0 0.0 14 KB

License: BSD 3-Clause "New" or "Revised" License

experiment-no--04-pressure-measurement-using-arduino-aim-to-interface-an-fsr-force-sensitive-resist's Introduction

EXPERIMENT-NO--04-PRESSURE-MEASUREMENT-USING-ARDUINO-AIM-To-interface-an-FSR-force-sensitive-resistor

AIM:

To interface an FSR(force sensitive resistor) and scale the output voltage obtained to pressure applied

COMPONENTS REQUIRED:

  1. FSR (force sensitive resistor)
  2. 1 KΩ resistor
  3. Arduino Uno
  4. USB Interfacing cable
  5. Connecting wires

THEORY:

FSRs are basically a resistor that changes its resistive value (in ohms Ω) depending on how much it is pressed. These sensors are fairly low cost, and easy to use. They also vary some from sensor to sensor perhaps 10%. FSR's resistance changes as more pressure is applied. When there is no pressure, the sensor looks like an infinite resistor (open circuit), as the pressure increases, the resistance goes down. This graph indicates approximately the resistance of the sensor at different force measurements.

image

FIGURE 01 GRAPH OF FORCE vs RESISTANCE **

image

FIGURE 02 FORCE SENSITIVE RESITOR FOIL DISC TYPE

FSRs are often a polymer with conductive material silk-screened on. That means they're plastic and the connection tab is crimped on somewhat delicate material. The best way to connect to these is to simply plug them into a breadboard.

The easiest way to measure a resistive sensor is to connect one end to power and the other to a pull-down resistor to ground. Then the point between the fixed pull down resistor and the variable FSR resistor is connected to the analog input of a microcontroller such as an Arduino The way this works is that as the resistance of the FSR decreases, the total resistance of the FSR and the pull down resistor decreases from about 100Kohm to 10Kohm. That means that the current flowing through both resistors increases which in turn causes the voltage across the fixed 10K resistor to increase.

image

TABLE -01 FORCE AND OUTPUT VOLTAGES**

Table -01 indicates the approximate analog voltage based on the sensor force/resistance w/a 5V supply and 10K pull down resistor.

Vo = Vcc ( R / (R + FSR) ) Eq-01

****Where R= 1KΩ in this experiment ****That is, the voltage is proportional to the inverse of the FSR resistance.

image

FIGURE-03 CIRCUIT DIAGRAM

image

image

PROCEDURE:

  1. Connect the circuit as per the circuit diagram
  2. Connect the board to your computer via the USB cable.
  3. If needed, install the drivers.
  4. Launch the Arduino IDE.
  5. Select the board (If you the board is arduino uno, select accordingly).
  6. Select your serial port, accordingly ( E.g. COM5 )
  7. Open the file of the program and verify the error , clear if any errors that are existing
  8. Upload the program and check for the physical working.
  9. Ensure safety before powering up the device
  10. Plot the graph for the output voltage vs the resistance

PROGRAM

ROLL NO : 212222240091
NAME : K.SANTHANA LAKSHMI
DEPT : AI-ML

int fsr;
int LED=7;
void setup()
{
pinMode(LED, OUTPUT);
Serial.begin(9600);
}

void loop()
{
fsr=analogRead(A0);
Serial.print("raw value=");
Serial.println(fsr);
delay(1000);
int m;
m=map(fsr,0,159,0,10);
Serial.print("mapped value=");
Serial.println(m);
delay(1000);

if(m>5)
{
  digitalWrite(LED,HIGH);
  delay(500);
  digitalWrite(LED,LOW);
  delay(500);
}
  
}

image

image

TABLE -02 standard deviation table

Population Standard Deviation

The population standard deviation, the standard definition of σ, is used when an entire population can be measured, and is the square root of the variance of a given data set. In cases where every member of a population can be sampled, the following equation can be used to find the standard deviation of the entire population:

Where xi is an individual value μ is the mean/expected value N is the total number of values

For those unfamiliar with summation notation, the equation above may seem daunting, but when addressed through its individual components, this summation is not particularly complicated. The i=1 in the summation indicates the starting index, i.e. for the data set 1, 3, 4, 7, 8, i=1 would be 1, i=2 would be 3, and so on. Hence the summation notation simply means to perform the operation of (xi - μ)2 on each value through N, which in this case is 5 since there are 5 values in this data set.

EX: μ = (1+3+4+7+8) / 5 = 4.6
σ = √[(1 - 4.6)2 + (3 - 4.6)2 + ... + (8 - 4.6)2)]/5 σ = √(12.96 + 2.56 + 0.36 + 5.76 + 11.56)/5 = 2.577

RESULTS : Arduino uno is interfaced with FSR and output values are indicated on a graph.

experiment-no--04-pressure-measurement-using-arduino-aim-to-interface-an-fsr-force-sensitive-resist's People

Contributors

santhanalakshmi04 avatar vasanthkumarch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.