-
Notifications
You must be signed in to change notification settings - Fork 4
G6 : Smart Home Control System
| Name | GitHub |
|---|---|
| Mostafa Gaafar | 900214463 |
| Omar Saqr | 900223343 |
| Farida Bey | 900212071 |
Github Repo: https://github.com/mostafa21314/Guest-Comfort-Management-System
Walking into a poorly lit, stuffy, cold, or hot room is a common experience, especially if we forgot to open the windows or adjust the thermostat. Adjusting lights, temperature, and air quality manually is inconvenient and slow to take effect. Despite the rise of smart homes, most solutions either require constant manual control or are overly complex and expensive for everyday needs. No unified system handles presence awareness, automated control, and energy savings together.
We propose a Presence-Aware Home Control System that automatically manages the ambience of a space based on occupancy and environmental conditions, with remote control for effects that take time. As soon as someone enters, the system welcomes them, turns on the lights, and activates the air atomizer. When the space is vacated, the system automatically powers down all actuators to conserve energy. Users can also remotely pre-configure the environment(especially temperature) before arrival via a WiFi-connected mobile interface.
Minimum Viable Product (MVP):
- Detect human presence using sensors
- Automatically turn on lights when someone enters
- Play a welcome message/music through a speaker
- Activate an air freshener system upon entry
- Count the number of people entering and leaving the room
- Automatically turn off lights, speaker, and air freshener when the room is empty
- Remote control via Wi-Fi to allow users to set the environment before arriving.
- mobile app interface for user-friendly control
Stretch Goals:
- Start an AC using the remote control feature
- Use humidity sensing to regulate mist output and prevent overuse
- Multi-room extension by replicating the sensor/actuator setup across more than one room simultaneously
A visual representation of the entire system (inputs, processing, outputs, and power supply).

Sourcing will be through RAM Electronics and the CSCE department primarily.
| Component | Image | Category | Purpose |
|---|---|---|---|
| IR Beam Break | ![]() |
Sensor | Detect entry/exit direction, count occupants |
| PIR Sensor | ![]() |
Sensor | Supplementary presence detection |
| DHT22 | ![]() |
Sensor | Monitor ambient temperature and humidity |
| Photo Resistor LDR | ![]() |
Sensor | Measure ambient brightness |
| ESP32 | ![]() |
Processing | Run all logic, FreeRTOS tasks, WiFi/MQTT |
| STM32 (if needed) | ![]() |
Processing | Secondary MCU for distributed control |
| PowerBank | ![]() |
Power | 5V supply for ESP32 and logic |
| Relay Module | ![]() |
Actuator | Switch lights and mist maker |
| TSOP382 IR Receiver | ![]() |
Actuator | Receive IR signals |
| TSAL6200 IR Emitter | ![]() |
Actuator | Send IR commands to AC unit |
| Ultrasonic Atomizer | ![]() |
Actuator | Scent and humidity control |
| DFPlayer Mini | ![]() |
Actuator | Welcome/goodbye audio playback via MicroSD |
| Power Strip | ![]() |
Actuator | Relay-switched lighting load |
Circuit diagrams, pinout tables, and breadboard layouts.
A table listing component names, part numbers, quantities, costs, and links to datasheets.
Calculations ensuring your power supply can handle the peak current draw of all components combined.
Description of the firmware design (e.g., Bare-metal Superloop, Interrupt-driven, or RTOS).
Visual diagrams mapping out the core logic, state transitions, and interrupt service routines (ISRs).
Explanations of any complex logic used (e.g., PID control loops, digital filtering, sensor fusion).
Compilers, IDEs, and toolchains used (e.g., Keil, PlatformIO, STM32CubeIDE).
How individual hardware components and software functions were tested in isolation.
How the system was tested as a whole.
A log of major bugs, hardware failures, or design flaws you encountered, and the engineering steps you took to solve them.
High-quality photos of the completed build.
A link to a short video showing the system working in real-time under various conditions.
Data showing how well the project met its initial objectives (e.g., "Response time was measured at 12ms, well within our 50ms goal").
| Name | Contribution |
|---|---|
| Mostafa Gaafar | Project Proposal, Sensors and Actuators needed, Timeline |
| Omar Saqr | System Architecture, Timeline |
| Farida Bey | System Architcture, Project Proposal |
- Formed team of three: Mostafa Gaafar, Omar Saqr, and Farida
- Decided on project idea: Presence-Aware Guest Comfort Management System
- Submitted team formation through the wiki page
- Deliver in-class proposal presentation
- Prepare hardware/software block diagram
- Refine the proposal according to comments and feedback
- Finalize problem statement and proposed solution
- Prepare component list
- Define functional and non-functional requirements
- Implement guest presence detection
- Implement ultrasonic mist maker for air freshening
- Implement LED lighting control
- Implement temperature regulation using sensors and fan
- Add humidity sensing to regulate mist maker output
- Implement speaker for guest greeting
- Implement people counter with entry/exit logic
- Add Bluetooth remote control
- Allow users to remotely adjust environment before arrival
- Develop a simple mobile app interface for remote control
Link to your GitHub/GitLab repo.
Links to datasheets, tutorials, academic papers, and course materials used during development.












