|
| 1 | +# Mini Smart Home |
| 2 | +A miniature smart home model featuring automated security, climate control, emergency hazard detection. |
| 3 | + |
| 4 | +:::info |
| 5 | + |
| 6 | +**Author**: Badea Andreea-Bianca \ |
| 7 | +**GitHub Project Link**: [link_to_github](https://github.com/UPB-PMRust-Students/acs-project-2026-badeabianca) |
| 8 | + |
| 9 | +::: |
| 10 | + |
| 11 | +<!-- do not delete the \ after your name --> |
| 12 | + |
| 13 | +## Description |
| 14 | + |
| 15 | +This project is a miniature smart home prototype designed to demonstrate practical home automation and safety features. It integrates an RFID-based security system for door access, alongside a climate control module that automatically adjusts windows based on real-time temperature and rain detection. For safety, it features an emergency hazard protocol that triggers an alarm and opens windows if smoke or gas is detected. Additionally, the system includes a built-in LCD screen for monitoring environmental data and a RGB lighting system, creating a complete, interactive model of modern smart living. |
| 16 | + |
| 17 | +## Motivation |
| 18 | + |
| 19 | +I chose this project because I wanted to build something highly interactive that you can see working in real life. It is fascinating to learn how data from sensors can control physical movements, like unlocking a door with a card or automatically closing the windows when it rains. I also wanted to create a system that reacts to dangers, such as turning on an alarm and opening windows if it detects smoke or gas. Building this model is a great and simple way to learn how to connect sensors, motors, and lights together. |
| 20 | + |
| 21 | +## Architecture |
| 22 | + |
| 23 | +The final system will include modules for: |
| 24 | +Environment sensing: |
| 25 | + |
| 26 | +- Digital temperature and humidity sensor (DHT11). |
| 27 | + |
| 28 | +- Rain sensor (detects precipitation to trigger window and awning control). |
| 29 | + |
| 30 | +- Gas and smoke sensor (MQ2) for safety monitoring. |
| 31 | + |
| 32 | +Output feedback: LCD 1602 display with an I2C interface, for showing system status (e.g., temperature, humidity, "Emergency Mode", system alerts). |
| 33 | + |
| 34 | +Motorized components: Two SG90 servo motors: one for door access, one for window control. |
| 35 | + |
| 36 | +Input system: RC522 RFID module for scanning the access card. |
| 37 | + |
| 38 | +Indicators: RGB LED module and an active buzzer (for alarms). |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | +## Log |
| 43 | + |
| 44 | +<!-- write your progress here every week --> |
| 45 | + |
| 46 | +### Week 5 - 11 May |
| 47 | + |
| 48 | +### Week 12 - 18 May |
| 49 | + |
| 50 | +### Week 19 - 25 May |
| 51 | + |
| 52 | +## Hardware |
| 53 | + |
| 54 | +The system is built around the STM32 Nucleo-U545RE-Q microcontroller. The sensory hardware includes a DHT11 temperature and humidity sensor , a rain sensor , an MQ2 gas/smoke sensor for safety , and an RC522 RFID module for secure access. Outputs and physical movements are driven by SG90 servomotors , an active buzzer , an RGB LED module , and an I2C-enabled LCD1602 screen for displaying system data. |
| 55 | + |
| 56 | +### Schematics |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | +### Bill of Materials |
| 61 | + |
| 62 | +<!-- Fill out this table with all the hardware components that you might need. |
| 63 | +
|
| 64 | +The format is |
| 65 | +``` |
| 66 | +| [Device](link://to/device) | This is used ... | [price](link://to/store) | |
| 67 | +
|
| 68 | +``` |
| 69 | +
|
| 70 | +--> |
| 71 | + |
| 72 | +| Device | Usage | Price | |
| 73 | +|--------|--------|-------| |
| 74 | +| [STM32 Nucleo-U545RE-Q](https://www.st.com/en/evaluation-tools/nucleo-u545re-q.html) | The microcontroller | Lab Provided |
| 75 | +| [SG90 Servo Motor](https://www.bitmi.ro/componente-electronice/servomotor-sg90-180-grade-9g-10496.html) | Controls door/window | [9.99 RON](https://www.bitmi.ro/componente-electronice/servomotor-sg90-180-grade-9g-10496.html) | |
| 76 | +| [RC522 RFID Module](https://www.bitmi.ro/module-electronice/modul-rfid-rc522-13-59mhz-cu-card-si-tag-10468.html) | Access control | [14.99 RON](https://www.bitmi.ro/module-electronice/modul-rfid-rc522-13-59mhz-cu-card-si-tag-10468.html) | |
| 77 | +| [DHT11 Temperature & Humidity Sensor](https://www.bitmi.ro/senzori-electronici/modul-senzor-de-umiditate-si-temperatura-dht11-ky-015-10637.html) | Indoor climate monitor | [7.99 RON](https://www.bitmi.ro/senzori-electronici/modul-senzor-de-umiditate-si-temperatura-dht11-ky-015-10637.html) | |
| 78 | +| [MQ2 Gas Sensor Module](https://www.bitmi.ro/senzori-electronici/modul-senzor-de-gaze-mq2-11214.html) | Hazard and smoke detector | [11.99 RON](https://www.bitmi.ro/senzori-electronici/modul-senzor-de-gaze-mq2-11214.html) | |
| 79 | +| [RGB LED Module](https://www.bitmi.ro/module-electronice/modul-led-rgb-3-culori-10401.html) | Visual status indicator | [2.13 RON](https://www.bitmi.ro/module-electronice/modul-led-rgb-3-culori-10401.html) | |
| 80 | +| [LCD1602 Display with I2C/IIC Module](https://www.bitmi.ro/componente-electronice/ecran-lcd1602-cu-modul-i2c-iic-10487.html) | System data screen | [24.99 RON](https://www.bitmi.ro/componente-electronice/ecran-lcd1602-cu-modul-i2c-iic-10487.html) | |
| 81 | +| [Rain sensor](https://www.emag.ro/senzor-picaturi-de-ploaie-wlongc-rain-01/pd/DKXMPD2BM/?cmpid=148774&utm_source=google&utm_medium=cpc&utm_campaign=(RO:eMAG!)_3P_NO_SALES_%3e_Jucarii_hobby&utm_content=111476631565&gad_source=1&gad_campaignid=11606684347&gbraid=0AAAAACvmxQiuQWwRBmn2hIM6jL7g7XTSn&gclid=Cj0KCQjwkrzPBhCqARIsAJN460lHIac0SsnpISvLfFMwtyBHzZTLydA7KTRnV3tIgG6prJk7ttOOyS0aAq37EALw_wcB) | Rain sensor | [6.99 RON](https://www.emag.ro/senzor-picaturi-de-ploaie-wlongc-rain-01/pd/DKXMPD2BM/?cmpid=148774&utm_source=google&utm_medium=cpc&utm_campaign=(RO:eMAG!)_3P_NO_SALES_%3e_Jucarii_hobby&utm_content=111476631565&gad_source=1&gad_campaignid=11606684347&gbraid=0AAAAACvmxQiuQWwRBmn2hIM6jL7g7XTSn&gclid=Cj0KCQjwkrzPBhCqARIsAJN460lHIac0SsnpISvLfFMwtyBHzZTLydA7KTRnV3tIgG6prJk7ttOOyS0aAq37EALw_wcB) | |
| 82 | + |
| 83 | +## Software |
| 84 | + |
| 85 | +| Library | Description | Usage | |
| 86 | +|---------|-------------|-------| |
| 87 | +| [st7789](https://github.com/almindor/st7789) | Display driver for ST7789 | Used for the display for the Pico Explorer Base | |
| 88 | +| [embedded-graphics](https://github.com/embedded-graphics/embedded-graphics) | 2D graphics library | Used for drawing to the display | |
| 89 | + |
| 90 | +## Links |
| 91 | + |
| 92 | +<!-- Add a few links that inspired you and that you think you will use for your project --> |
| 93 | + |
| 94 | +1. [DIY Smart Home](https://youtu.be/Ohjlj0z85hQ?is=nvKfke6AahJwSeIl) |
0 commit comments