Flex Sensor Working With Arduino

Hello there. Welcome to our website. Are you working on Flex Sensor-based project? Do you want to know how the sensor works? Do you want to make a hand movement-controlled robotic device? Well, In this article we will be discussing how to interface the sensor with Arduino in a detailed Step-by-step guide and we will also see the circuit diagram, components required, and Arduino code. I hope you will like the article. We have already made various Arduino projects, Embedded projects, and Arduino tutorials on our website. You can visit them if you are new to the world of electronics and Arduino. you will find them helpful.

Arduino Flex Sensor led

What is Flex Sensor?

HTML Image as link
Qries

This is a sensor that measures the change in the direction of the sensor with respect to its normal position. When there is any bend or change in its shape, it gives a change in its readings. This data is Analog type in the range of 0-1023. so there we can use this sensor to make multiple conditions. that we used in our sign language project which is the biggest hit over the internet.

Nowadays, many people are working on projects such as hand-controlled or movement-controlled robots, which use the same type of flex sensors to transfer the physical hand movement into an electrical signal. One can also make their own hand movement-controlled toys using five different sensors for five different fingers as their fun DIY project.

Flex Sensor

How does It Work?

This works on the basis of variable resistance such as a potentiometer. The resistance of the sensor changes with the angle to which it is bent. there as many types of flex sensors available in the market but the one we are using here is the resistive type. it is thin and long about 10 cm. the flex sensor may use in robotics. many people use this flex sensor in the animatronic hand. this can be the best final year project for ECE students.

Inside the sensor, there are conductive strips placed on top of each other. when there is bent, they make contact at different points, thereby increasing the resistance. the resistance values of each individual sensor may have some difference, hence one must understand this before using them in their project.

Components Required

Arduino UNOBUY LINK
Flex sensorBUY LINK
Jumper WiresBUY LINK
BreadboardBUY LINK
10K ohm ResistorBUY LINK
2x 220 ohm resistorBUY LINK
LED’s (Blue and Green)BUY LINK
USB Cable for uploading the codeBUY LINK
Flex Sensor component

Flex Sensor Working With Arduino Circuit Diagram

Flex Sensor Working With Arduino Circuit Diagram
ArduinoFlex Sensor10k ohm Resistor
( +5V ) Terminal 1 
A0 PinTerminal 2Terminal 1
GND  Terminal 2
Arduino UNO LED B LED B220 Ohm Resistor
D7 PinAnode Pin  
D6 Pin Anode Pin 
GND  Terminal 1
 Cathode PinCathode PinTerminal 2


Serial Monitor

Flex Sensor Serial monitor
Flex Sensor Serial monitor

// Techatronic.com  Flex Sensor Working With Arduino Code

 void setup()  
 {  
   Serial.begin(9600);   
   pinMode(7,OUTPUT); // Red Led pin  
   pinMode(6,OUTPUT); // Green Led pin  
 }   
 void loop()   
 {  
  int s1=analogRead(A0);   
  Serial.println(s1);      
  delay(50);  
  if(s1>100 )  
  {  
   digitalWrite(7,LOW);  // Red Led off  
   digitalWrite(6,HIGH); // Green Led on  
  }  
   else  
  {  
   digitalWrite(7,HIGH); // Red Led on  
   digitalWrite(6,LOW); // Green Led off  
  }  
 }  

Once the above Arduino code uploading is done, you can test the working of it by bending the sensor and looking at the color of the led. If the color is Green when bent, it is working. I hope you found this tutorial helpful. If you have any queries or doubts, you can ask them in the comment section below.

Related Posts

Air Pressure sensor HX710B with arduino

Air Pressure sensor HX710B with arduino

Hey guys, welcome back to the techatronic. In this article we are going to explain how can we interface Air Pressure sensor HX710B with Arduino. all the…

Sun Tracking Solar Panel using an Arduino

Sun Tracking Solar Panel using an Arduino

An energy source that is obtained from nature without harming the environment is called renewable energy. Solar energy is one of the most well-known forms of renewable…

Home Security Alarm

Home Security Alarm using Arduino

Hello Guys, Welcome back to Techatronic. Today we are going to build an another interesting project which is called ‘Home Security Alarm’ with the help of Arduino…

Prevention Of Railway Accidents

Prevention Of Railway Accidents Using Arduino Uno

Hey guys, welcome to TechaTronic. Before moving forward in this “Prevention Of Railway Accidents” project lets first discuss about the history of railways. Railways are very common…

Pong Game With Arduino

Pong Game With Arduino Uno and OLED Display

Hey guys, welcome back to Techatronic. Today we are back with another interesting project which you can make with the help of Arduino Uno and we are…

R307 Fingerprint Sensor With Arduino

Interfacing R307 Fingerprint Sensor With Arduino

Hello everyone, welcome back to Techatronic. Today we are going to Interfacing R307 Fingerprint Sensor With Arduino. In this era the importance of fingerprint is very important….

This Post Has 3 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *