Skip to main content

AUTOMATIC ROOM LIGHTING SYSTEM


๐Ÿ”† Automatic Room Lighting System

๐Ÿ”† Automatic Room Lighting System

Date: October 30, 2021

Purpose: Energy conservation through automation using IR sensors and a microcontroller.

๐Ÿ”ฐ Introduction

Electricity is an indispensable part of modern life. However, with rising energy demands and depleting non-renewable resources, energy conservation has become a necessity. One major area where energy is often wasted is lighting—many people forget to switch off lights when leaving a room.

To address this, we’ve designed an Automatic Room Lighting System, which uses IR sensors and a microcontroller (ATmega32) to automatically switch lights ON or OFF based on room occupancy. This system not only helps reduce electricity bills but also promotes responsible energy usage.

๐Ÿง  Working Principle

Entry: Sensor 1 → Sensor 2 → Light ON + Counter++

Exit: Sensor 2 → Sensor 1 → Counter-- → Light OFF if Count = 0

This project is based on a bi-directional human detection mechanism using two IR sensors positioned at the entrance of a room. Here's how it works:

➕ When a person ENTERS the room:

  • Sensor 1 (outside) is triggered first, followed by Sensor 2 (inside).
  • This sequence tells the microcontroller to turn ON the lights/fans and increment the visitor count.

➖ When a person LEAVES the room:

  • Sensor 2 (inside) is triggered first, followed by Sensor 1 (outside).
  • The microcontroller decrements the visitor count. If count = 0, it turns OFF the lights/fans.

๐Ÿงพ Components Required

#ComponentQuantity
1ATmega32 Microcontroller1
216 MHz Crystal Oscillator1
3IR Sensor Modules2
40.1ยตF Ceramic Capacitors10
518pF Ceramic Capacitors4
610kฮฉ Resistors10
7330ฮฉ Resistors10
8Red LEDs6
9Green LEDs10
10Seven-Segment Displays2
11Breadboard1
12Connecting Wires (5m)As needed

Key Points:

  • IR sensors are placed on either side of the door.
  • The microcontroller processes IR input and controls relays for AC appliances.
  • 7-segment display shows the live visitor count.

(Insert or link to your circuit diagram image here)

⚙️ Procedure

  1. Place Sensor 1 outside and Sensor 2 inside the room entrance.
  2. Program ATmega32 to monitor IR sensor inputs and update person count.
  3. Use a relay driver to switch lights/fan based on count.
  4. Display the visitor count on a 7-segment display.

✅ Output

  • System automatically manages room lighting based on human presence.
  • Visitor counter works accurately with multiple entries/exits.
  • Lights stay ON as long as there's at least one person inside.
  • Reduces power wastage and enables smart automation.

๐Ÿ“ Conclusion

This project combines IR sensing and microcontroller logic to automate room lighting. It’s useful for homes, classrooms, offices, and more, helping reduce electricity consumption and human error.

  • Prevents energy wastage
  • Accurate room occupancy detection
  • Scalable and simple to implement
  • Ideal for smart buildings and IoT automation

๐Ÿ’ก Future Scope

  • Integrate with IoT platforms for remote monitoring
  • Use PIR sensors for better accuracy
  • Support temperature/humidity-based fan control
  • Add mobile app control via WiFi modules

Do you want the code, circuit file, or Proteus simulation? Let me know in the comments and I’ll share the files!

Comments

Popular posts from this blog

Revolutionize Power Management with This Scalable IoT Energy Meter System

⚡ IoT-Based Prepaid Energy Meter ⚡ IoT-Based Prepaid Energy Meter with RF Mesh and Firebase Cloud Managing power consumption efficiently is critical, especially in shared environments like hostels, rental homes, and industrial setups. This project presents a wireless prepaid energy metering system using nRF24L01+ , ESP8266 , PZEM004T , and Firebase Firestore . The system allows real-time energy monitoring, cloud-based recharge, and automatic cut-off when balance is depleted. ๐Ÿ”ง System Overview Child Node: Arduino Nano + PZEM004T + Relay + nRF24L01+ Gateway (Parent Node): ESP8266 (NodeMCU) + nRF24L01+ Cloud Backend: Firebase Firestore (NoSQL) Key Features ⚡ Real-time energy measurement (Voltage, Current, Power, kWh) ๐Ÿ’ฐ Prepaid balance logic with relay cut-off ๐Ÿ“ถ RF communication in scalable tree topology ☁️ Cloud integration with Firebase Firestore ๐Ÿ“ฑ Recharge via Web/App or Firebase Console ๐Ÿ“ถ Multi-Level RF Topology The sys...

Voice Controlled Home Automation and Home Security System

 Abstract— In this paper, Google assistant has been used to control the light, fan, and water pump by saying Ok Google, turn the light ON or OFF. Then IFTTT interprets the message and can send it to Blynk’s dashboard as an understandable command to the created feed. The proposed prototype uses to control home appliances anytime from anywhere in the world and efficiently utilize power by controlling appliances properly by an Android OS smartphone. Blynk app has been used to analyze data about temperature, humidity, fire, and water level to control home appliances. The voice commands for Google assistant have been added through the IFTTT website linked with Blynk. Keywords— NodeMCU, Blynk app, Google Assistant, IFTTT website, DHT11 Sensor, PIR Sensor, Ultrasonic Sensor, Flame Sensor, and Relay Module I. INTRODUCTION With the advancement of technology, the need for efficient controlling is more as it optimizes performance and saves unnecessary wastage of power. Home automation allows ...