Code Monkey home page Code Monkey logo

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

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

AIM:

To interface an FSR(force sensitive resistor) and measure the force applied,indicate the change in force applied using LEDs.

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

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

// C++ code // Define pins: #define fsrpin A0 #define led1 2 #define led2 3 #define led3 4 #define led4 5 #define led5 6 #define led6 7

//Define variables: int fsrreading; void setup() { Serial.begin(9600);

//Set LED pins as output pinMode(led1, OUTPUT); pinMode(led2, OUTPUT); pinMode(led3, OUTPUT); pinMode(led4, OUTPUT); pinMode(led5, OUTPUT); pinMode(led6, OUTPUT); } void loop() { fsrreading = analogRead(fsrpin); Serial.println(fsrreading);

if(fsrreading>150) { digitalWrite(led1, HIGH); } else digitalWrite(led1,LOW); if(fsrreading>300) { digitalWrite(led2, HIGH); } else digitalWrite(led2,LOW); if(fsrreading>450) { digitalWrite(led3, HIGH); } else digitalWrite(led3,LOW); if(fsrreading>600) { digitalWrite(led4, HIGH); } else digitalWrite(led4,LOW); if(fsrreading>750) { digitalWrite(led5, HIGH); } else digitalWrite(led5,LOW); if(fsrreading>900) { digitalWrite(led6, HIGH); } else digitalWrite(led6,LOW); }

<<<<<<< HEAD

Output:

output

Result:

Thus the interface an FSR(force sensitive resistor) is simulated int tinkerCAD.

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

Contributors

swathika28 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.