Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚶‍♂️ Motion-Based Smart Lighting System

Platform Sensors Control Language License Status Efficiency Version


📌 Project Overview

The Motion-Based Smart Lighting System is an automation solution designed to reduce electricity wastage by intelligently controlling lighting based on real-time human motion and occupancy. Using PIR sensors, it detects presence across different zones and automatically activates or deactivates lights.

Additionally, the system features bidirectional people counting, enabling it to manage lighting based on actual room occupancy—making it ideal for:

  • 📚 Classrooms
  • 🏢 Offices
  • 🏬 Warehouses
  • 🏛️ Conference Halls

📂 Table of Contents


🚀 Features

  • 🔦 Zone-Based Lighting: Lights are activated only in zones with detected motion.
  • 👁️ PIR Sensors: Passive Infrared sensors for accurate human motion detection.
  • ♻️ Energy Saving: Automatically turns off lights in inactive zones.
  • 🔌 Relay Control: Safe switching of AC/DC light circuits.
  • 🔄 Bidirectional People Counting: Tracks entry and exit to monitor room occupancy.
  • 🧠 Arduino-Based Control: Centralized logic for motion and occupancy handling.
  • 🖥️ Serial Monitoring: Real-time logs for debugging and testing.
  • 🛠️ Modular Design: Easy to scale across multiple rooms or lighting points.

🛠️ Hardware Requirements

Component Quantity Description
Arduino Uno/Mega 1 Microcontroller for control logic
PIR Motion Sensors 2–6 For detecting motion in multiple zones
Relay Module 2–6 Controls lights per zone
Jumper Wires Many For connections between components
5V/12V Power Supply 1 For powering sensors and relays
SPST Switch (Optional) 1 Manual override switch
Shielded Cables Optional For noise-free long-distance wiring

💻 Software Requirements


🔧 How It Works

  1. PIR sensors detect motion in their respective zones.
  2. Detected motion triggers the corresponding relay, turning the light ON.
  3. After a timeout (e.g., 30 seconds) without motion, the relay is turned OFF.
  4. Entry and exit detection updates room occupancy count.
  5. The system logs all events to the serial monitor for real-time feedback.

📑 Circuit Diagram

Circuit Diagram


🔌 Installation and Setup

  1. Clone the Repository
git clone https://github.com/Alok-2002/Motion_Based_Light_System.git
  1. Open the Code

    • Launch Arduino IDE
    • Navigate to File → Open
    • Load Motion_Based_Light_System.ino
  2. Assemble the Circuit

    • Connect PIR outputs to Arduino digital pins
    • Connect relay inputs to Arduino digital pins
    • Supply appropriate voltage to sensors and relays
  3. Upload the Code

    • Select the correct board and COM port
    • Click the “Upload” button
  4. Run & Test

    • Verify motion-triggered light switching
    • Observe occupancy logs in Serial Monitor

📝 Future Improvements

  • 🌐 Integration with ESP8266/ESP32 for wireless monitoring
  • 📊 Add a web dashboard or mobile app to display occupancy data
  • 🔧 Include auto-calibration based on ambient light
  • 🧠 Train a machine learning model to predict lighting patterns

👥 Team Members

  • Alok Sharma – System architecture, programming, and integration
  • Sanskriti Yadav – Circuit design, wiring, and hardware optimization

🤝 Contributing

We welcome contributions! To get started:

  1. Fork this repository
  2. Create a new branch
git checkout -b feature-yourFeatureName
  1. Commit your changes
git commit -m "Add: your feature name"
  1. Push to GitHub
git push origin feature-yourFeatureName
  1. Create a pull request ✨

📜 License

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


🙌 Acknowledgments

  • Special thanks to Alok-2002 for the project vision and execution.
  • Inspired by IoT-based automation solutions in smart infrastructure.

Built with the goal of reducing energy consumption through intelligent automation.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages