Arduino Flex Sensor or bend sensor
Table of Contents
Arduino Flex Sensor, Description:
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 does a Flex sensor work?
- How to use Flex Sensor with the Arduino?
- A basic program to control an led
- How to select a proper resistor that is used with the flex sensor.
Amazon Links:
Arduino Nano USB C type (Recommended)
Disclosure: These are affiliate links. As an Amazon Associate I earn from qualifying purchases.
Flex Sensor:
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”
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
int flexs = A0; // flex sensor is connected with analog pin A0 int data = 0; int led = 13; void setup() { Serial.begin(9600); pinMode(flexs, INPUT); pinMode(led, OUTPUT); } void loop() { data = analogRead(flexs); Serial.println(data); if( data <= 200) { digitalWrite(led, HIGH); } if( data > 200) { digitalWrite(led, LOW); } delay(1000); } |
Watch Video Tutorial “Arduino Flex Sensor”:
Arduino Flex Sensor Related Projects:
Wireless Hand gesture controlled Robot with Flex Sensor using Arduino
Human Posture monitoring using Flex Sensor & Arduino “Arduino biomedical project”