Skip to content

a-3isa/Mosque-Control-System

Repository files navigation

Mosque Monitor Control System

A comprehensive IoT solution for automated mosque monitoring and control, featuring real-time environmental monitoring, automated lighting and ventilation control, and a mobile application for remote management.

📋 Table of Contents

🎯 Overview

This project implements an intelligent mosque automation system that combines hardware sensors, microcontroller-based control systems, and a mobile application to provide automated environmental monitoring and control. The system uses machine learning models for predictive analysis and Firebase for real-time data synchronization.

✨ Features

  • Real-time Environmental Monitoring: Temperature, light intensity, and flow detection using ML models
  • Automated Control: Smart lighting and ventilation control based on sensor data
  • Mobile Application: Flutter-based app for remote monitoring and control
  • Firebase Integration: Real-time database for data synchronization
  • Local Notifications: Alert system for important events
  • Data Visualization: Charts and analytics for historical data
  • Multi-platform Support: Android, iOS, and web deployment

🏗️ Components

1. Mosque Controlling Firmware

Location: Mosque_Controlling_Firmware/

Arduino-based firmware for controlling mosque appliances:

  • Fan control via relay
  • LED lighting control
  • Firebase integration for remote commands
  • WiFi connectivity

2. Mosque Monitoring Firmware

Location: Mosque_Monitoring_Firmware/

Arduino-based monitoring system:

  • Environmental sensors (temperature, light, flow)
  • LED strip control for visual feedback
  • Buzzer for alerts
  • Firebase data transmission
  • WiFi connectivity

3. Mosque Mobile Application

Location: Mosque_Mobile_Application/

Flutter-based mobile application:

  • Real-time monitoring dashboard
  • Remote control interface
  • Data visualization with charts
  • Push notifications
  • Multi-language support
  • Machine learning integration

📋 Prerequisites

Hardware Requirements

  • Arduino boards (ESP32/ESP8266 recommended)
  • Environmental sensors (temperature, light, flow)
  • Relay modules for appliance control
  • LED strips and buzzers
  • WiFi connectivity

Software Requirements

  • Arduino IDE (for firmware development)
  • Flutter SDK (for mobile app development)
  • Firebase Account (for database and authentication)
  • Git (for version control)

Dependencies

  • Arduino libraries: WiFi, Firebase, sensor libraries
  • Flutter packages: firebase_core, firebase_database, tflite_flutter, fl_chart, etc.

🚀 Installation & Setup

1. Clone the Repository

git clone <repository-url>
cd mosque-monitor-control-system

2. Firebase Setup

  1. Create a Firebase project at Firebase Console
  2. Enable Realtime Database
  3. Generate Firebase configuration files
  4. Add configuration to both firmware and mobile app

3. Firmware Setup

Controlling Firmware

  1. Open Mosque_Controlling_Firmware/Mosque_Controlling_Firmware.ino in Arduino IDE
  2. Install required libraries:
    • WiFi
    • Firebase Arduino
    • ESP8266WiFi (if using ESP8266)
  3. Configure WiFi credentials and Firebase settings
  4. Upload to Arduino board

Monitoring Firmware

  1. Open Mosque_Monitoring_Firmware/Mosque_Monitoring_Firmware.ino in Arduino IDE
  2. Install required libraries:
    • WiFi
    • Firebase Arduino
    • Adafruit NeoPixel (for LED strips)
    • Sensor libraries (DHT, LDR, flow sensors)
  3. Configure sensor pins and Firebase settings
  4. Upload to Arduino board

4. Mobile Application Setup

  1. Navigate to mobile app directory:

    cd Mosque_Mobile_Application
  2. Install Flutter dependencies:

    flutter pub get
  3. Configure Firebase:

    • Add google-services.json to android/app/
    • Add Firebase configuration to lib/firebase_options.dart
  4. Run the application:

    flutter run

📱 Usage

Mobile Application

  1. Dashboard: View real-time sensor data and system status
  2. Control Panel: Remotely control lighting and ventilation
  3. Analytics: View historical data and trends
  4. Settings: Configure notification preferences and system parameters

Firmware Operation

  • Monitoring Firmware: Automatically collects sensor data and sends to Firebase
  • Controlling Firmware: Receives commands from Firebase and controls appliances
  • Both systems provide visual feedback through LED indicators

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

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

📞 Contact

For questions or support, please contact the development team.


Note: This system is designed for mosque automation and should be configured according to local electrical and safety standards. Always consult with qualified electricians for hardware installation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published