control servo motor with flex sensor

make wearable with this project

This task is extremely cool and fascinating to make. when we control servo motor with flex sensor with our finger. control servo engine with flex sensor connected on the finger. we can join anything to the servo motor so we can control these things with the assistance of our finger development. or then again we can utilize our hand additionally to control things. It is an extremely fascinating and valuable undertaking. we can utilize this strategy in any animatronic hand. which can be constrained by the Flex sensor joined over the glub. you can make a motion control robot which will take a shot at your hand development. we will make an instructional exercise on that in next post. presently in this post, we figure out how to associate and how it’s work.

Working of servo motor with flex:- Flex sensor is a type of a resistor. or then again we can say it a flex variable resistor. when we flex the sensor the estimation of opposition progressively change. the worth is in the simple. so we get this simple incentive at the simple stick of the Arduino. also, make a few conditions in the code as per these qualities. on these condition servo get directions. furthermore, turn as indicated by the directions. here is another undertaking on servo engine which is Sun following framework which would you like. 

Components required in Control Servo motor with Flex Sensor:- There are some components required to make this awesome project.

  • Servo Motor 

There are three parts required in the undertaking. you need to connect this flex sensor to your finger for better work. or on the other hand, you can join it to the glub. utilize five fingers for more capacity in the undertaking. so when you close your hand with glub it will do any movement which you need to enter in the Arduino board.

Circuit Diagram of servo motor with Flex sensor:-

Connect flex sensor and servo motor according to the circuit diagram.

flex sensor with servo motors Arduino code:-

#include<Servo.h>Servo myservo;int deg=0;

void setup() {pinMode(A0, INPUT_PULLUP);pinMode(9, OUTPUT);// put your setup code here, to run once:myservo.attach(9);Serial.begin(9600);}void loop()


int m= analogRead(A0);delay(10);Serial.println(m);if(m>=860 && m<=890){// put your main code here, to run repeatedly:


else if(m>=891 && m<=920){// put your main code here, to run repeatedly:


else if(m>=921){// put your main code here, to run repeatedly:




Upload the sketch into the Arduino Board. all the best . 









What do you think?

0 points
Upvote Downvote

Written by shahid

Leave a Reply

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

Smart irrigation system with Arduino

How to make a Robotic arm with multiple servos