This shows you the differences between two versions of the page.
|
pm:prj2026:jan.vaduva:elena.sandu2501 [2026/05/09 00:05] elena.sandu2501 |
pm:prj2026:jan.vaduva:elena.sandu2501 [2026/05/14 23:45] (current) elena.sandu2501 |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Smart Automatic Clothes Drying System ====== | + | ====== Smart Clothes Drying System ====== |
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | This project is based on the ATmega328P Xplained Mini microcontroller and transforms a conventional clothes drying stand into a smart system, capable of responding automatically to outdoor weather changes. | + | This project is based on the **ATmega328P Xplained Mini** microcontroller and transforms a conventional clothes drying stand into a smart system, capable of responding automatically to outdoor weather changes. |
| The idea originated from smart home awnings and automated pergola covers, adapting their weather-responsive behavior to a clothes drying stand. | The idea originated from smart home awnings and automated pergola covers, adapting their weather-responsive behavior to a clothes drying stand. | ||
| Line 16: | Line 16: | ||
| The system is fully standalone and operates independently, requiring only a 5V power supply via a MicroUSB adapter. | The system is fully standalone and operates independently, requiring only a 5V power supply via a MicroUSB adapter. | ||
| - | The system starts in Automatic Mode by default. Once powered, it begins continuously reading data from the rain sensor and the LDR. The behavior of the system adapts based on the following scenarios: | + | The system starts in **Automatic Mode** by default. Once powered, it begins continuously reading data from the rain sensor and the LDR. The behavior of the system adapts based on the following scenarios: |
| *Optimal Conditions (Sunny and Dry): if there is enough light and no rain is detected, the microcontroller commands the servomotor to keep the drying stand in the extended position. The green LED turns on to signal normal operation. At the same time, the I2C LCD shows a message indicating the current favorable weather and the extended position of the rack. | *Optimal Conditions (Sunny and Dry): if there is enough light and no rain is detected, the microcontroller commands the servomotor to keep the drying stand in the extended position. The green LED turns on to signal normal operation. At the same time, the I2C LCD shows a message indicating the current favorable weather and the extended position of the rack. | ||
| *Unfavorable Conditions (Rain or Night): if the rain sensor detects precipitation, or if the LDR registers a drop in light levels below a specific threshold (indicating nighttime), the system reacts immediately. The servomotor automatically retracts the drying stand to protect the clothes. The red LED turns on to signal bad weather, and the LCD screen updates to reflect the status and the retracted position. | *Unfavorable Conditions (Rain or Night): if the rain sensor detects precipitation, or if the LDR registers a drop in light levels below a specific threshold (indicating nighttime), the system reacts immediately. The servomotor automatically retracts the drying stand to protect the clothes. The red LED turns on to signal bad weather, and the LCD screen updates to reflect the status and the retracted position. | ||
| - | *Manual mode: at any point, the user can briefly press the push-button to switch the system into Manual Mode. In this mode, the yellow LED turns on to indicate manual control, and the user can long press the button to toggle the extension or retraction of the stand. Pressing the button again returns the system to the standard Automatic Mode. | + | ***Manual mode**: at any point, the user can briefly press the push-button to switch the system into Manual Mode. In this mode, the yellow LED turns on to indicate manual control, and the user can long press the button to toggle the extension or retraction of the stand. Pressing the button again returns the system to the standard Automatic Mode. |
| {{ :pm:prj2026:jan.vaduva:schema_bloc_sandu_elena2.png |}} | {{ :pm:prj2026:jan.vaduva:schema_bloc_sandu_elena2.png |}} | ||
| - | The system logic is built around a state machine with two main states: Automatic Mode and Manual Mode. These are the main modules: | + | The system logic is built around a state machine with two main states: **Automatic Mode** and **Manual Mode**. These are the main modules: |
| *ATmega328P Xplained Mini - main controller, reads sensor data and controls all outputs | *ATmega328P Xplained Mini - main controller, reads sensor data and controls all outputs | ||
| Line 54: | Line 54: | ||
| | MicroUSB breakout board | 1 | MicroUSB power input connector | | | MicroUSB breakout board | 1 | MicroUSB power input connector | | ||
| | Capacitor 1000uF 50V | 1 | Power supply filtering for servomotor | | | Capacitor 1000uF 50V | 1 | Power supply filtering for servomotor | | ||
| + | |||
| + | === Electric Diagram === | ||
| + | |||
| + | {{ :pm:prj2026:jan.vaduva:schema_electrica_elena_sandu.png?800 |}} | ||
| + | |||
| + | The ATmega328P Xplained Mini board was not available in the EasyEDA library, so an Arduino Nano symbol was used as a pin-compatible schematic representation. The following pin mapping was applied: | ||
| + | |||
| + | *D3 = PD3 -> Push Button | ||
| + | *D4 = PD4 -> Green LED | ||
| + | *D5 = PD5 -> Red LED | ||
| + | *D6 = PD6 -> Yellow LED | ||
| + | *D9 = PB1 -> Servomotor PWM | ||
| + | *A0 = PC0 -> Rain Sensor AO | ||
| + | *A1 = PC1 -> LDR Light Sensor AO | ||
| + | *A4 = PC4 -> LCD SDA | ||
| + | *A5 = PC5 -> LCD SCL | ||
| + | |||
| ===== Software Design ===== | ===== Software Design ===== | ||