Security Alarm System with PIR Sensor and Arduino Uno

Security Alarm easy project for kids

Security Alarm easy project for kids

Overview

This project is for the Security of any valuable object. Using this setup, we can see whether there is any movement in the room or not. If there is any type of life present in the room, the buzzer will automatically give a tone.

In this security alarm, a sensor is used to track the movement of human beings, and a buzzer is used as an alarm to indicate that there is present in the room.

Hardware required 

  • Arduino Uno R3
  • Resistor
  • Jumper Wires
  • PIR Sensor
  • Breadboard
  • Buzzer

Schematic Diagram

image 9

Fig 1.  Circuit Diagram

Arduino Code :

int pinBuzzer = 3;
int pinSensorPIR = 2;
int valorSensorPIR = 0;

void setup(){

  pinMode(pinBuzzer,OUTPUT);
  pinMode(pinSensorPIR,INPUT);
}

void loop() {

   valorSensorPIR = digitalRead(pinSensorPIR);

  if (valorSensorPIR == 1){
    Alarm_on();
  } else {
    Alarm_off();
  }
}
void Alarm_on(){
  
  tone(pinBuzzer,1500);
  
  delay(2000);
  
  Alarm_off(); 
}

void Alarm_off() { 
  noTone(pinBuzzer);
}

Precautions

  1. Connections should be done properly.
  2. Arduino is case Sensitive, so code accordingly.
  3. Give different and appropriate colours to the wires.
  4. Use resistors for sensors and LCDs.

Conclusion


This project demonstrates how simple components like an Arduino Uno, a PIR sensor, and a buzzer can be combined to build an effective security alarm system.

Such hands-on projects not only strengthen understanding of electronics and coding but also spark creativity in problem-solving. At MakersMuse, we believe that learning through making is the best way to inspire future innovators.

Just like building this security alarm, platforms such as Scratch for Teens introduce young learners to programming concepts in a fun, interactive way. Together, these tools pave the way for mastering both hardware and software in an engaging, practical manner.

Leave a Reply

Coding For kids

Coding Courses for Kids Online

Our courses which are tailored for grades 1 to 12, and our hands-on curriculum seamlessly integrates, preparing students for challenges and inspiring the next generation.

STEM Labs

STEM LAB for Schools

Looking for a cutting-edge makerspace that goes beyond traditional education? Partner with Makers’ Muse to unlock innovation and transformative learning for your students.

Coding Toys

STEM LAB for Schools

Discover a revolutionary coding journey for students with our cutting-edge educational toys. Partner with us to unlock innovative learning experiences that transcend traditional education.

Do you have questions regarding our STEM program?

Send Us A Message