Online Deals by MyDeal

Enjoy up to $0 off your order by spending your Everyday Rewards dollars

Force Sensitive Resistor for Arduino Projects

Image 1
Limited Stock
$19.95

Collect 19 Everyday Rewards points

Log in to MyDeal to link your card
Sold & shipped by Oz Direct
Secure ways to pay at checkout
Force Sensitive Resistor for Arduino
The harder the force, the lower the resistance

This is a force sensitive resistor with a round, 0.5" diameter, sensing area. This FSR will vary its resistance depending on how much pressure is being applied to the sensing area. The harder the force, the lower the resistance.


Specifications:

Below is how to use an FSR - Force Sensitive Resistor with Arduino to fade an LED. This sensor is a variable resistor just like a photocell or flex sensor. The resistance changes by applying pressure on it.

Step 1: What You Will Need

For this tutorial you will need:

  • Arduino uno
  • Breadboard
  • Force sensitive resistor
  • LED
  • 10KOhm & 220 Ohm resistors
Step 2: The Circuit

See the image above for wiring connections with the breadboard circuit schematic.

 
Step 3: The Code

Below is the code using Codebender!

Try downloading the Codebender plugin and clicking on the "Run on Arduino" button to program your Arduino board with this sketch. And that's it, you've programmed your Arduino with this sketch.

How it works:

  • Read analog value from flex sensor 
    :: value=analogRead(sensorPin);
  • Map analog values 0-1023 to PWM values 0-255 
    :: value = map(value, 0, 1023, 0, 255);
  • Send pwm value to led 
    :: analogWrite(ledPin, value);

You can make your own modifications to the code by clicking the "Edit" button.

 
Step 4: Well Done!

 

3 Month Warranty

GTIN: 9351634004287

Estimated Delivery Time Frame:2-10 Business Days

Ask a Question About This Product

Reference ID: 981250

Proudly growing a MyDeal Forest

By purchasing from MyDeal, you're helping us plant 8.6 hectares of trees per year with Greenfleet

More from this brand

iduino