-
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).
The system is built around five interconnected subsystems that work together to create an automated guest comfort experience.
The sensing subsystem consists of a PIR/IR break-beam sensor at the entrance to monitor guest entry and exit, a temperature sensor, a humidity sensor, and a light sensor. These sensors continuously sample the environment and forward their readings to the MCU for processing.
The processing subsystem is the MCU, which acts as the brain of the entire system. Upon receiving sensor data, it runs several layers of logic: an occupancy counter that tracks the number of guests entering and leaving the room, threshold-based control that compares sensor readings against predefined values to determine which actuators need to be triggered, event-based triggers that fire specific actions such as a welcome greeting when the first guest arrives or a goodbye message when the last guest leaves, and a continuous feedback loop that keeps re-reading sensors after actuators fire to ensure the environment stays within the desired comfort range.
The actuation subsystem consists of four actuators: a fan or AC unit for temperature regulation, an air atomizer for humidity control, LED lights for ambient lighting, and a speaker for audio greetings. Each actuator is driven by the MCU and activated only when its corresponding condition is met.
The wireless communication subsystem is a WiFi/Bluetooth module that connects bidirectionally to the MCU, allowing a remote application to send manual override commands such as pre-cooling the room before guests arrive, while simultaneously receiving live system status updates.
Finally, the power subsystem provides a regulated 3.3V supply to the MCU, which in turn distributes power to all other components in the system.
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.