AMAZING SPIDERMAN DOOR LOCK MODEL WITH PIEZO-ARDUINO-SERVO
by Ohms Lab in Circuits > Arduino
1985 Views, 2 Favorites, 0 Comments
AMAZING SPIDERMAN DOOR LOCK MODEL WITH PIEZO-ARDUINO-SERVO
Hello World ! Welcome to OHM's LAB.
Today I will share you how to make piezo sensor based door lock. I have seen Amazing spider-man movie & also get inspired to make Door lock just like PETER PARKER.
This project is very simple. It also works on KNOCK. This project is only a proto-type. You can also make this project on Door. This is only a model.
I'm a Beginner, So please like this instructable and follow me. Please SUBSCRIBE my youtube channel also.
https://www.youtube.com/channel/UCUganwBnDfbmkHykj...
First we will understand, what is piezo electric sensor?
WHAT IS PIEZO-ELECTRIC SENSOR??
A piezoelectric sensor is a device that uses the piezoelectric effect to measure changes in pressure, acceleration, temperature, strain, or force by converting them to an electrical charge
Piezoelectric sensors are versatile tools for the measurement of various processes. They are used for quality assurance, process control, and for research and development in many industries. Pierre Curie discovered the piezoelectric effect in 1880, but only in the 1950s did manufacturers begin to use the piezoelectric effect in industrial sensing applications. Since then, this measuring principle has been increasingly used, and has become a mature technology with excellent inherent reliability.
This sensor converts force, pressure, any tremble into electricity. I will use this electrical signal to control servo motor.
Supplies You Need!!!
To make this project you will need-
#_Arduino UNO
#_Servo motor
#_Door lock
#_Piezoelectric sensor
Also you need----$-JUMPER WIRES
$-CABLE FOR ARDUINO UNO
AND ALSO SOME TOOLS.................................................
DOOR LOCK MODEL
I have found a door lock. I screw this door lock to a thermacol. I choose thermacol because it is easy to shape. You can also use wood or any matarial. I don't have tools for cutting wood therefore I use THERMACOL.
I have also make a Hole in Door lock( actually it is already holed.). I have also make space for arduino in model for servo motor as shown in images.
SCHEMATICS
Connection of Servo Motor:
+ve wire of servo - 5v of arduino
-ve wire of servo - GND of arduino
signal wire of servo - digital pin 9 of arduino
Connection of piezo;
+ve of piezo - analog pin 0 of arduino
-ve of piezo - GND of arduino
Programming
Here is Code-
#include<Servo.h>
int sensor=A0;
int threshold= 400;
Servo myservo;
void setup()
{
myservo.attach(8);// put your setup code here, to run once:
pinMode(A0, INPUT);
Serial.begin(9600);
}
void loop()
{
int value=analogRead(sensor);// put your main code here, to run repeatedly:
if (value>=threshold)
{
myservo.write(5);
delay(1000);
}
else
myservo.write(60);
Serial.println(value);
}
Working of Door Lock
Here is a video >>PLEASE SUBSCRIBE LIKE AND SHARE MY CHANNEL