force sensor Arduino Interface tutorial

force sensor Arduino Interface tutorial

The force sensor is also known as the Force-sensitive resister Because it changes the value of current passes through the sensor according to the pressure on the sensor. as much as the weight on sensor the resistance increase accordingly. Weight is directly proportional to the resistance of the sensor in circuit. in this force sensor arduino ionterface tutorial you will learn how to juse variable resistance. There are a lot of sensor which work on the same variable resistance like flex sensor which can be used in the sign language glove using arduino  . The sensor is like a potentiometer which vary according to the sensor charactersticks. there are two terminal or wire always with these sensor and not inculded any data wire. So, if you have any doubt of confusion for connection you can refer our website we are having almost all the sensor interfacing , code and circuit. you can find all the content in our website blog section.

So , we use both Vcc and Gnd wire with these sensor and the data we collect from the resistance end which protect the ciruit by the short circuit. So we are using Arduino , buzzer and force resistive sensor and some resister to interface. there are two types of sensor one is round shape and another is square share. roiund shape sensor is small and square shape sensor is bigger than the round shape sensor.

There are two wires in the sensor one wire is to be connected to the Positive pin of arduino and the another wire is to be connect to the 10k resistor and this end to be connect to the Arduino A0 , analog pin. because it gives a variable value which can be store from 0 to 1024 and the another end of the resistor should be connect to the Gnd wire of the arduino so the arduino can measure the change in resistance through the sensor. when any person impact force to the sensor the resistanec value will changes. force sensor with arduino can measure the weignt also. only you need to callibrate it with the weight.

force sensor with arduino Circuit diagram

As given in the above diagram we are using the round force sensor but you can also use the arduino with square force sensor with the same circuit.

Hey, guys welcome back to the Techatronic. We are Shahid and Adnan. Two electronics engineer are providing the best electronic project and tutorial to learn you better. Bookmark our website to learn and make these awesome projects.

Now let’s talk about the Arduino force sensor Code

 // Techatronic.com  
 void setup()  
 {  
  pinMode(12,OUTPUT); // Led  
  pinMode(11,OUTPUT); // Buzzer  
  Serial.begin(9600);  
 }  
 void loop()  
 {  
  int force=analogRead(A0); // Sensor pin  
  Serial.println(force);  
  delay(100);  
  if(force > 0250)  
 {  
  digitalWrite(12,HIGH); //Led ON   
  digitalWrite(11,HIGH); //Buzzer ON  
 }  
  else  
 {  
   digitalWrite(12,LOW); //Led OFF  
   digitalWrite(11,LOW);// Buzzer OFF  
 }  
 }  

 

As you can see the code is very simple and relatable to the Arduino with Potentiometer . we are taking reading from the sensor and there are taking some condition in the code and compatre with the value if the condition got true then the led will on otherwise the led remains the off.

Components Required in force sensor Arduino

  • Arduino Uno
  • Force sensor
  • 10K resistor
  • LED
  • buzzer
  • Jumper wire
  • breadboard

force sensor Arduino components

 

All the information used in the project has been upload above read full artical carefully and follow the steps. and if you are new to arduino and you dont know how to operate arduino and how to upload code in arduino you can refer our last blogs. All the best if you have any query you can ask us in comment section.