Microproject
Microproject
Microproject
1. Title Page
2. Introduction
A burglar alarm system is designed to detect unauthorized entry into a property. By employing
sensors and a microprocessor, this system can provide real-time alerts, enhancing security in homes
and businesses. Microprocessors play a crucial role in automating the response to security breaches,
allowing for quicker reactions and improved monitoring.
3. Objectives
4. Components List
Sensors:
o Magnetic Door/Window Sensor: Triggers the alarm when the door or window is
opened.
Output Devices:
5. Circuit Design
Schematic Diagram:
The circuit connects the PIR sensor and magnetic sensors to the digital input pins of the Arduino. The
buzzer and LED are connected to the output pins. The schematic will look something like this (you
can create your own using Fritzing or Tinkercad).
Connections:
cpp
Copy code
void setup() {
pinMode(pirPin, INPUT);
pinMode(buzzerPin, OUTPUT);
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
void loop() {
if (motion) {
Serial.println("Motion detected!");
} else {
delay(100);
This code checks for motion detected by the PIR sensor. If motion is detected, it activates the buzzer
and turns on the LED.
7. Assembly Instructions
2. Connect Sensors: Follow the circuit diagram to connect the PIR sensor and magnetic sensor
to the Arduino.
5. Upload the Code: Use the Arduino IDE to upload the code to the microcontroller.
Tip: Use jumper wires for easier connections and breadboards for a cleaner setup.
Testing:
o Walk in front of the PIR sensor to see if it triggers the buzzer and LED.
o Open the door/window with the magnetic sensor to check if the alarm activates.
Troubleshooting:
o If the alarm doesn’t trigger, check the wiring and ensure all connections are secure.
9. Conclusion
The microprocessor-based burglar alarm system effectively detects unauthorized access using
motion and magnetic sensors. This project not only demonstrates the practical application of
microcontrollers in security systems but also highlights the importance of integrating various
components for a functional design. Future improvements could include adding a GSM module for
remote notifications and implementing a user-friendly interface.
10. References
Arduino Documentation
Feel free to customize any sections based on your specific requirements or findings. If you need more
details or adjustments, just let me know!