Arduino Flex Sensor– This Tutorial is about the Flex sensor. In this tutorial, we will be covering the extreme basics, because in the upcoming tutorials we will be using this flex sensor in a biomedical project for human posture monitoring. We will also be using the Flex Sensor for security purposes, for monitoring dents in sheet metal and so on, so make sure you subscribe to my channel and website right now, so that you never miss any of my upcoming tutorials. In this tutorial, we will cover
- What is a flex sensor
- How a Flex sensor works
- How to use Flex Sensor with the Arduino
- A basic program to control an led
- How to select a proper resistor which is used with the flex sensor.
For the detailed explanation watch Video Tutorial “Click Here”
The components and tools used in this project can be purchased from Amazon, the components Purchase links are given below:
Arduino Uno: https://amzn.to/2tVz1vu
Flex sensor with the best price: https://amzn.to/2qeCvqJ
Mega 2560: https://amzn.to/2ze1kdu
Super Starter kit for Beginners: https://amzn.to/2KJvmKG
Jumper Wires: https://amzn.to/2KMoVXs
Bread Board: https://amzn.to/2MS4q8X
12v Adaptor: https://amzn.to/2Ntr6h1
PCB plate: https://amzn.to/2IUwpCt
Variable Supply: https://amzn.to/2MT4Qfj
Digital Multimeter: https://amzn.to/2Nvft9i
Vero Board / strip board: https://amzn.to/2MTf9jD
Soldering iron kit: “best” You guys should definitely purchase this
Solder wire: https://amzn.to/2ufUMWf
Wire Stripper: https://amzn.to/2KOqxfU
PCB small portable drill machine: https://amzn.to/2Nu62XF
*Please Note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!
A flex sensor which is also known as the bend sensor is a sensor that measures the amount of bending or deflection.
The Bend Sensor is usually stuck to the surface whose bend is to be monitored, as the surface is bent the resistance of the Bend sensor varies. So we can say that the resistance of the Bend Sensor is directly proportional to the amount of Bend.
The Flex sensors are also used for the precise angle measures, the flex sensor just like an ordinary resistor, the only difference is the in the construction, so we can call this Flex Sensor or Bend Sensor as the Flexible Potentiometer.
The Bend sensor as you can see in the Picture has two contacts or legs due to which it can be easily used with the Breadboard, but Personally, I recommend soldering jumper wires with these two contacts is the better option, as it can be then easily interfaced with the Arduino Uno or Mega.
It’s Working Principle as I said is just like the normal variable resistor or Potentiometer, with the only difference; that is the Bend sensor resistance changes with the bend while the variable resistor or potentiometer resistor, resistance changes as we rotate the knob. There are also some other types of the Bend sensor, but the one you can see on the screen is the Conductive Ink-based Bend sensor.
For the Step by Step Interfacing of the Bend sensor Watch Video Tutorial “Click Here”
Arduino Flex Sensor Programming:
For the step by step program explanation watch video Tutorial “Click Here”
int flexs = A0; // flex sensor is connected with analog pin A0
int data = 0;
int led = 13;
data = analogRead(flexs);
if( data <= 200)
if( data > 200)
Watch Video Tutorial “Arduino Flex Sensor”:
Arduino Flex Sensor Related Projects: