This is a very useful project for securing the premises of a sensitive area. It is Arduino Security System cum Door Bell using Piezo Sensor. The list of components is given below. First make all the components available with you and then start working on the project.
Required Components
- Arduino UNO or Arduino Nano – 1 no.
- IC 7805, 3-terminal voltage regulator – 1 no. (if you are using Arduino nano)
- Piezo Sensor – 1 no.
- Buzzer – 1 no.
- 5V, 600Ω relay switch – 1 no.
- Breadboard – 1 no.
- 10kΩ Breadboard mountable potentiometer – 1no.
- RED LED – 1 no.
- 1k resistor – 1 no.
- 1000uF, 25V electrolytic capacitor – 1 no.
- 1N4007 diodes – 2 nos.
- 9-0-9V, 500mA stepdown transformer – 1 no.
- mains cord – 1 no.
- 230V, 100W bulb or 10W CFL – 1 no.
- Bulb or CFL holder – 1 no.
- Connecting wires, insulating tape, jumper wires for breadboard, etc.
Connection Diagram on Breadboard
When supply is connected assuming that there is no pressure on the Piezo electric transducer, the system remains in standby mode or silent mode. The outputs of the Arduino Nano at pin #2 and pin #8 remains LOW. Here we assume that the Piezo transducer is placed below a door-mat such that it is completely covered. Whenever a person steps on the doormat, due to his dynamic pressure the transducer will produce proportional voltage. The sensitivity of this transducer can be controlled with the help of sensitivity knob connected in shunt with the transducer. It is a 1MΩ variable resistor which acts as load to avoid accidental triggering of Arduino at pin #11.
Download the pdf copy of complete project from Researchgate.com

IMPORTANT NOTE: The 10k pot must be as shown in the following photo. This will help you insert it properly in the breadboard for connecting it with the circuit.

Block Diagram

Prototype Gallery




Working Explanation Video
The Code
Upload this code in Arduino Nano to test your project. Its a lab tested code, specially written for Arduino nano. With a slight modification, you can use it for Arduino Uno also.
/* This code was developed by Vidyasagar Academy Akola,
* www.vsa.edu.in
* Project: Arduino Security System cum Door Bell using Piezo Sensor
* License: You can use it for any purpose as long as you don't
* claim that you are its author and
* you don't alter License terms and
* formulations (lines 1-9 of this file).
* Date of Creation: 27.08.2020
*/
short piezo=11; // piezo sensor variable
int buzz_LED=2; // buzz_LED with LED for alarm
int relay_sw=3; // relay switch for focus light
int i; // variable for counting
void setup()
{
pinMode(piezo,INPUT);
pinMode(buzz_LED,OUTPUT);
pinMode(relay_sw,OUTPUT);
}
void loop()
{
if(digitalRead(piezo))
{
for(i=0;i<3;i++)
{
digitalWrite(buzz_LED,HIGH);
delay(1000);
digitalWrite(buzz_LED,LOW);
delay(1000);
}
digitalWrite(relay_sw,HIGH);
digitalWrite(buzz_LED,HIGH);
delay(10000);
}
else
digitalWrite(relay_sw,LOW);
digitalWrite(buzz_LED,LOW);
}
Possible Modifications for More Automation
Download the detailed instructions about modifications to use the project for different interesting automations in garage door, room lights, bathroom lights, etc.
Click here to download PDF file
More Advanced Arduino Projects
All these projects are password protected and paid projects. If you want construct these projects you will have to register and make online payment of Rs.1000/- For more details, contact us.
- Advanced Arduino Robotics Project #1, The project of Sanguinoscope Blood Group Typing Project
- Advanced Arduino Robotics Project #2, Arduino Advanced Calculator
- Advanced Arduino Robotics Project #3, Arduino Security System cum Door Bell using Piezo Sensor
Download Citation
TY – JOUR
AU – Vidyasagar, Dattaraj
AU – Vidyasagar, Yash
PY – 2019/11/02
T1 – Arduino based Piezo Electric Transducer Sensing Security System