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 tell that there is anybody present in the room.

Hardware required 

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

Schematic Diagram

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 colors to the wires.
  4. Use resistors for sensors and LCDs.

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

var timeInMillis =10000; setTimeout(function() { window.fcWidget.open(); },timeInMillis);
×
×

Cart