Skip to content

noorcs39/Building-Security-System-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building Security System Project

Arduino and Windows Forms based building security system using ultrasonic, flame, and PIR sensor concepts.

Arduino IDE C++ C# Windows Forms Windows MIT License

GitHub Stars GitHub Forks

Overview

Building Security System Project is a bachelor project for monitoring basic building safety conditions with sensor-based detection. The Arduino sketch reads flame and ultrasonic sensor data, sends status values through the serial port, and a C# Windows Forms application displays the fire status and distance reading.

The project demonstrates embedded systems, serial communication, sensor monitoring, and a simple desktop dashboard for a security system prototype.

Project Modules

  • Detection module: Reads sensor data from the Arduino board.
  • Fire alarm module: Uses the flame sensor reading to trigger LED and buzzer alerts.
  • Distance monitoring module: Uses an ultrasonic sensor to calculate distance.
  • Desktop monitoring module: Reads Arduino serial output in a Windows Forms application.
  • Documentation module: Includes project report and presentation files.

Group Members

  • Noor Uddin
  • Rahul
  • Jannatun Ferdous

Hardware Requirements

  • Arduino board
  • Ultrasonic sensor
  • Flame sensor
  • PIR sensor, as described in the project concept
  • LED
  • Buzzer
  • Breadboard
  • Jumper wires
  • USB cable

Software Requirements

  • Arduino IDE
  • Visual Studio with .NET Framework desktop development support
  • .NET Framework 4.5.2
  • Windows OS

Source Code

  • Arduino sketch: src/arduino/BuildingSecuritySystem/BuildingSecuritySystem.ino
  • Windows Forms app: src/windows-app/ProjectFinal.sln

The Windows Forms app currently reads serial data from COM3 at 9600 baud.

How to Run

  1. Open src/arduino/BuildingSecuritySystem/BuildingSecuritySystem.ino in the Arduino IDE.
  2. Connect the sensors, LED, and buzzer to the configured Arduino pins.
  3. Upload the sketch to the Arduino board.
  4. Open src/windows-app/ProjectFinal.sln in Visual Studio.
  5. Confirm the Arduino is connected to COM3, or update the port in Form1.cs.
  6. Run the Windows Forms application.
  7. Click the application button to read the latest serial data.

Arduino Pin Configuration

Component Arduino Pin
LED 2
Flame sensor A2
Buzzer 13
Ultrasonic trigger 9
Ultrasonic echo 10

Output

Hardware prototype:

Hardware front view

Hardware side view

Application and output screenshots:

Output screenshot 1

Output screenshot 2

Output screenshot 3

Project Structure

Building-Security-System-Project/
├── src/
│   ├── arduino/
│   │   └── BuildingSecuritySystem/
│   │       └── BuildingSecuritySystem.ino
│   └── windows-app/
│       ├── ProjectFinal.sln
│       └── ProjectFinal/
├── docs/
│   ├── Final-Presentation.pptx
│   ├── Project-Report.docx
│   └── Topic-Presentation.pptx
├── output/
│   ├── hardware-front.jpg
│   ├── hardware-side.jpg
│   ├── output-1.jpg
│   ├── output-2.jpg
│   └── output-3.jpg
├── archive/
│   ├── FinalProject.zip
│   └── ProjectFinal-VU.zip
├── LICENSE
├── .gitignore
└── README.md

Testing

This is an Arduino and Windows Forms hardware project, so it does not use pytest.

Recommended checks:

  • Upload the Arduino sketch and verify serial output at 9600 baud.
  • Trigger the flame sensor and confirm the LED, buzzer, and High serial status.
  • Move an object in front of the ultrasonic sensor and confirm the distance value changes.
  • Run the Windows Forms app and confirm it reads from the correct COM port.
  • Open the Visual Studio solution and build it in Debug mode.

Repository Topics

Suggested GitHub topics:

arduino building-security security-system ultrasonic-sensor flame-sensor pir-sensor c-sharp windows-forms embedded-systems bachelor-project

Contact

Noor Uddin — noor.cs2@yahoo.com

GitHub Email

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Arduino and Windows Forms building security system using ultrasonic and flame sensor monitoring.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors