Our Team
- E/20/262: Tharindu Lakshan e20262@eng.pdn.ac.lk
- E/20/266: Pradeep Nilupul e20266@eng.pdn.ac.lk
- E/20/449: Sandaru Wijewardhana e20449@eng.pdn.ac.lk
- E/20/288: Chalaka Perera e20288@eng.pdn.ac.lk
Watch Our Smart Lighting in Action
Backend - Deployed on AWS

Backend Architecture (AWS Deployment)
The backend for the Lightify system is deployed on AWS (Amazon Web Services) using EC2 instances to handle requests and store data. It communicates with the central hub and control units for managing lighting schedules, automation rules, and more. The backend is scalable and robust, ensuring high availability and efficient performance.
Solution Architecture & Components

Solution Architecture

Components & DataFlow

Components & DataFlow Explained
Our Solutions Architecture
- Light Intensity Control: Adjust lights individually or in groups, with automatic intensity changes.
- Prevent Unnecessary Deactivations: Advanced sensors detect micro movements to keep lights active.
- Smart Scheduling: Set custom on/off times and adjust intensity via the app.
- Modes: Introduces different lighting modes for user convenience.
- Global Accessibility: Control lights remotely via a mobile app.
- Automation & Convenience: Enhances user experience with intelligent automation.
Components & Data Flow
Room-Level Network (Sensors)
- Sensor Units (ESP32 + RD-03D sensor) send data to the Control Unit.
- Multiple sensor units per room for better coverage.
Control Unit (Lighting Control)
- Control Units (ESP32 + AC dimmer circuit) manage lights.
- Can turn on/off, dim lights, and receive sensor data.
- Replaces traditional switches.
Central Hub (Main Control System)
- Central Hub (ESP32/Raspberry Pi) manages all Control Units.
- Users can control lighting via this hub.
- Cloud-Connected: Executes schedules from the backend.
High-Level Architecture & Data Flow

Automation Data Flow and Architecture
The Lightify system works by integrating multiple ESP32 devices that communicate wirelessly for controlling lighting, automating processes, and monitoring the environment. Below is an overview of how the system functions:
Data Flow
- Sensor Unit (ESP32 + mm Wave Radar): The sensor unit detects movements or presence in the room. It continuously sends X, Y coordinates of the detected object to the control units.
- Control Units (ESP32): The control units receive the sensor data and manage the lighting and automation rules based on the received information. They also communicate with the central hub for processing.
- Central Hub (Home Wi-Fi): This hub connects the control units via the local Wi-Fi network, ensuring smooth communication across devices. It also facilitates communication with the cloud system for cloud-based management and remote control.
- Mobile App: The mobile app serves as a user interface, allowing the user to control the lighting, set schedules, and view real-time sensor data remotely from anywhere, leveraging cloud access.
This architecture ensures a reliable, automated, and user-friendly system where each part communicates seamlessly to enhance the smart indoor lighting experience.
Mobile App Design

Welcome Screen

Create New Room Page

Home View

Schedule Screen

Schedule Screen

Sign Up Screen
Budget
Control Unit
- ESP32 = LKR 1200
- 4-channel AC dimmer circuit = LKR 1000
Central Hub
- ESP32 and other components = LKR 3000
Sensor Unit
- Humidity Sensor = LKR 500
- RD-03D mm wave radar sensor = LKR 1250
- VEML7700 Ambient light sensor = LKR 1200
Total cost per unit = LKR 8150