Project Name: Automated Desk Light
Project Functional Description:
The Automated Desk Light Control System is a smart, energy-efficient lighting solution designed to optimize desk lighting and reduce unnecessary energy consumption. Powered by an STM32 microcontroller, the system leverages advanced sensor integration and connectivity to deliver intelligent and adaptable lighting control. A PIR motion sensor detects user presence within a range of 1–3 meters, automatically turning the lamp on when motion is detected. If no motion is detected for 20 minutes or longer, the system turns the lamp off to conserve energy.An LDR ambient light sensor measures surrounding illuminance and dynamically adjusts the lamp's brightness using analog-to-digital conversion to ensure optimal lighting conditions based on the environment. The user will be able to turn this feature on and off from the website. Additional to automatic adjustments, the lamp will feature a knob on the side for the user to change the brightness directly.
The system features a graphical LCD screen, which communicates with the STM32 microcontroller over SPI, providing an intuitive interface for users to receive weather information. Wi-Fi connectivity, enabled by a Raspberry Pi module using UART, connects the system to a website. This connection allows users to access real-time weather updates, accurate time synchronization, and customization options such as light color, brightness, and time zone preferences.
Our website will also feature preset modes that the user can select from at any point. Our preset modes will include “Daytime Work”, “Nighttime work”, and “Game”. “Daytime Work” will multiply the current set brightness by a factor of 1.3 and the color will be white. “Nighttime Work” will multiply the current set brightness by a factor of 0.8 and the color will be white. “Game” with set the brightness to dim and the color is blue.
Using the Open-Meteo API, our website will get real-time weather and time data and push it to the STM32 microcontroller over UART. Furthermore, it will. Also push the following User-inputted data to the STM32 every time the user makes a change: Switch on/off, Color selection, Brightness selection, automation preference, time-zone/location preference.
The desk lamp will be powered by a wall connection that will provide 5V DC through a USB-C cable to our system. We have a voltage regulator that converts 5V DC to 3.3V DC to power the microcontroller, sensors, and the LCD screen.
Designed for desk use, the Automated Desk Light Control System is a cost-effective, energy efficient, and easy-to-install solution that enhances productivity while promoting sustainable energy practices. By integrating advanced technology and user-focused features, the system ensures convenience and adaptability for diverse office and study environments.