Arduino Force Sensor Anti Theft Alarm System
Arduino Force Sensor Anti Theft Alarm System |
Hey friends in this video I will show you how to use Force Sensor FSR to make Anti Theft Alarm System.
Materials:
Arduino UNO / NANO
FSR Force Sensor
16x2 I2c LCD Display
Push Button
Buzzer
LED
Resistor 330, 1k, 10k
Wires
BreadBoard
Circuit:
code arduino :
//Force Sensor Anti-Theft Alarm System
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x3F, 16, 2); // LCD HEX address 0x3F -- change according to yours
int Force_VAL = 0;
int temp = 0;
int btn = 0;
int buzz = 6;
void setup()
{
pinMode(A0, INPUT);
pinMode(4, INPUT);
pinMode(buzz, OUTPUT);
Serial.begin(9600);
lcd.begin();
lcd.setCursor(0,0);
lcd.print("Force Sensor");
pinMode(10, OUTPUT);
digitalWrite(10, LOW);
digitalWrite(buzz, LOW);
}