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.

Do you have questions regarding our STEM program?

Contact us anytime.

Take your first step into the magical world of coding for kids

Share:

More Posts

Send Us A Message

Coding For kids

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

If you are a school searching for a cutting-edge makerspace solution that goes beyond conventional education, look no further. Partner with Makers’ Muse to unlock a world of innovation and transformative learning experiences for your students. 

Coding Toys

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.

Leave a Reply