Posts

Testing the BH1750 Light Sensor with Arduino – Real-Time Lux Response

Image
 After successfully getting the PIR motion sensor working earlier, today's goal was to integrate the BH1750 light sensor and test how well it reads ambient light levels and adjusts an LED's brightness accordingly. The Torchlight Test – Simulating Sudden Brightness The system is designed to keep the light off when it’s bright and turn it on or brighten the LED when it gets darker . Here’s a portion of the actual data output from the Serial Monitor during my test Before I applied the torch test on the light sensor the light level was 254 lux, when I pointed the torch directly on the light sensor the lux levels jumped to 1010,1015... so the BH1750 works and we are ready to go to the next step What This Test Proved The BH1750 is highly sensitive and consistent , tracking even small changes in lux. It provides a reliable basis for automated light control , making sure lights are only used when needed. With lux readings above 300, the system correctly assumed no additional...

PIR Motion Sensor Working! Now Debugging the BH1750 Light Sensor

Image
  I’ve been working on a project that combines a PIR motion sensor and a BH1750 light sensor to create an automatic lighting system. After troubleshooting, I successfully got the PIR motion sensor working , but I’m still working on fully configuring the BH1750 light sensor . The PIR motion sensor detects movement and adjusts the LED brightness accordingly. When motion is detected, the LED brightness increases, and when no motion is present, it dims.  My Serial Monitor confirms this, displaying messages like "Motion Detected! Increasing brightness..." and "No Motion. Dimming lights..." . This means the PIR sensor is responding correctly. However, the BH1750 light sensor is still giving me issues. The Serial Monitor keeps showing "[BH1750] Device is not configured!" , which means the sensor isn’t initializing properly.  Once the BH1750 is fully functional, my project will be able to dynamically adjust light brightness based on both motion and ambient li...

1. light intensity based on room occupancy Simulation

Image
This project is a smart lighting system that automatically adjusts light intensity based on room occupancy using a PIR motion sensor. When someone enters the room, the lights gradually brighten, and when the room is empty, the lights dim down smoothly or turn OFF. The system can also use a relay module to control high-power bulbs. I used WokWI to simulate this and also provided the code for it as well and a link of the simulation at the bottom.   Code: #define PIR_SENSOR 2  // PIR Sensor connected to Digital Pin 2 #define LED_PIN 9     // PWM LED pin #define RELAY_PIN 8   // Relay pin for full light ON/OFF   int brightness = 0;  // Initial LED brightness bool motionDetected = false;   void setup() {     pinMode(PIR_SENSOR, INPUT);     pinMode(LED_PIN, OUTPUT);     pinMode(RELAY_PIN, OUTPUT);     Serial .begin(9600); }   void loop() {     int motion = digital...

Smart Lighting System key Phases; Motion, Light, and Gesture Control

To optimize lighting automation, I have divided my approach into three key phases: room occupancy-based control, natural light adaptation, and gesture recognition . Each phase addresses a different aspect of energy efficiency and user convenience.  The implementation and simulation of each phase will involve testing the respective sensors and control mechanisms individually before integrating them into a unified system.  Room Occupancy Control: The PIR motion sensor will be tested to ensure accurate presence detection, and its integration with the relay module will be verified. Natural Light-Based Adjustment: The light sensor will be simulated in various lighting conditions to confirm its ability to dynamically adjust brightness levels. Gesture-Based Interaction: The camera module will undergo simulation  to recognize predefined hand movements for controlling the lighting system.   1. Light Intensity Control Using Room Occupancy Motion Detection with PIR Sensors T...

Market research

  existing smart lighting systems compared to my proposed system current smart lighting solutions offer feature connectivity automation and energy efficiency but for my proposed system I aim  for gesture-based control ,occupancy detection, ambient light adaptation and remote access. for current smart lighting solutions the features often .Connectivity: Integration with IoT devices, allowing control via smartphones or tablets. .Automation: Scheduling and automation based on user preferences .Energy Efficiency: Adaptive lighting based on ambient conditions to conserve energy. on the other hand i plan to develop the following Gesture-Based Control: Utilizing a camera and OpenCV for hand gesture recognition. Occupancy Detection: Employing PIR motion sensors to determine room occupancy. Ambient Light Adaptation: Adjusting lighting levels based on real-time ambient light measurements. Remote Access: Providing Wi-Fi connectivity for remote monitoring and control. some existing...

some existing projects and research related to smart lighting systems

These resources provide insights into existing systems and research that align with your project on smart lighting systems incorporating occupancy sensing and gesture-based controls. Emotion and Gesture-Driven Smart Home System  This project integrates facial and speech emotion recognition, gesture-based controls, and environmental monitoring to manage lighting, ventilation, and water systems dynamically GitHub - Halabilal/Smart-Home-Project: Emotion and Gesture-Driven Smart Home System with Advanced Environmental Controls Adaptive Lighting Systems: Occupancy Sensing This article discusses how occupancy sensing can be combined with other lighting control strategies, such as ambient light detection, to maximize energy savings and sustainability Silvair - Adaptive lighting systems: Occupancy sensing AI Smart Lighting Systems  This article explores how AI-based smart lighting systems can provide the right light in the right place at the right time by lighting areas based on occup...

Background Research

  Why is Smart Lighting Important? Lighting accounts for 15-20% of global electricity use . Energy-efficient lighting can reduce power consumption and environmental impact. Traditional lighting wastes energy when left on unnecessarily. How Smart Lighting Solves These Problems Automated control : Lights turn ON/OFF based on occupancy (PIR sensors). Ambient light sensing : Adjusts brightness depending on natural light levels . Gesture control : Offers a touch-free and convenient way to control lighting. Remote access : Wi-Fi module enables mobile/web control . Energy Savings with Automated Lighting Research by Smith et al. (2023) found that smart lighting systems can reduce energy consumption by 40% . Studies highlight that motion-based control significantly improves efficiency. Gesture-Based Smart Lighting Control Doe (2021) analysed how computer vision-based gesture control improves user experience. Results showed that gesture-based systems had 85-95% recognition accuracy ...