User Tools

Site Tools


emrp:ws2025:agv

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
emrp:ws2025:agv [2026/02/28 19:32] – [5.3 Observations] 23553_students.hsrwemrp:ws2025:agv [2026/02/28 22:52] (current) – [6. Discussion] 23553_students.hsrw
Line 46: Line 46:
  
 <imgcaption image1|> <imgcaption image1|>
-{{ :emrp:ws2025:agvdewpoint.jpg?nolink&400 |Dew Point Formula. Source: Own illustration.}}+{{ :emrp:ws2025:agvdewpoint.jpg?&400 |Dew Point Formula. Source: Own illustration.}}
 </imgcaption> </imgcaption>
  
Line 144: Line 144:
   * 2x DHT11 Sensors   * 2x DHT11 Sensors
 <imgcaption image2|> <imgcaption image2|>
-{{ :emrp:ws2025:gardentopdownview.png?nolink&600 |Top down view of garden. Source: Google Maps + Own illustration.}}+{{ :emrp:ws2025:gardentopdownview.png?&600 |Top down view of garden. Source: Google Maps + Own illustration.}}
 </imgcaption> </imgcaption>
  
Line 167: Line 167:
  
 <imgcaption image3|> <imgcaption image3|>
-{{ :emrp:ws2025:garden_overview.jpg?nolink&800 |Circuit Overview Diagram. Source: Own illustration.}}+{{ :emrp:ws2025:garden_overview.jpg?&800 |Circuit Overview Diagram. Source: Own illustration.}}
 </imgcaption> </imgcaption>
  
 <imgcaption image4|> <imgcaption image4|>
-{{ :emrp:ws2025:greenhousecircuit.jpg?nolink&800 |Detailed Greenhouse Circuit Diagram. Source: Own illustration.}}+{{ :emrp:ws2025:greenhousecircuit.jpg?&800 |Detailed Greenhouse Circuit Diagram. Source: Own illustration.}}
 </imgcaption> </imgcaption>
  
Line 209: Line 209:
  
 <imgcaption image5|> <imgcaption image5|>
-{{ :emrp:ws2025:greenhouseelectronicsfar.jpg?nolink&800 |Image of greenhouse electronics with descriptions. Source: Own image.}}+{{ :emrp:ws2025:greenhouseelectronicsfar.jpg?&800 |Image of greenhouse electronics with descriptions. Source: Own image.}}
 </imgcaption> </imgcaption>
  
 <imgcaption image6|> <imgcaption image6|>
-{{ :emrp:ws2025:greenhouseelectronicsclose.jpg?nolink&800 |Close up image of greenhouse electronics with descriptions. Source: Own image.}}+{{ :emrp:ws2025:greenhouseelectronicsclose.jpg?&800 |Close up image of greenhouse electronics with descriptions. Source: Own image.}}
 </imgcaption> </imgcaption>
  
 <imgcaption image7|> <imgcaption image7|>
-{{ :emrp:ws2025:greenhouseelectronicsclosed.jpg?nolink&800 |Image of greenhouse electronics enclosure closed. Source: Own image.}}+{{ :emrp:ws2025:greenhouseelectronicsclosed.jpg?&800 |Image of greenhouse electronics enclosure closed. Source: Own image.}}
 </imgcaption> </imgcaption>
  
Line 237: Line 237:
  
 <imgcaption image8|> <imgcaption image8|>
-{{ :emrp:ws2025:greenhousesideview.jpg?nolink&800 |Side view greenhouse component placement. Source: Own illustration.}}+{{ :emrp:ws2025:greenhousesideview.jpg?&800 |Side view greenhouse component placement. Source: Own illustration.}}
 </imgcaption> </imgcaption>
  
Line 271: Line 271:
  
 <imgcaption image9|> <imgcaption image9|>
-{{ :emrp:ws2025:adddevice.jpg?nolink&800 |ESPHome Builder: Add New Device Steps. Source: Own illustration.}}+{{ :emrp:ws2025:adddevice.jpg?&800 |ESPHome Builder: Add New Device Steps. Source: Own illustration.}}
 </imgcaption> </imgcaption>
  
Line 380: Line 380:
  
 <imgcaption image10|> <imgcaption image10|>
-{{ :emrp:ws2025:registerdevice.jpg?nolink&800 |Register Device Steps. Source: Own illustration.}}+{{ :emrp:ws2025:registerdevice.jpg?&800 |Register Device Steps. Source: Own illustration.}}
 </imgcaption> </imgcaption>
  
Line 438: Line 438:
  
 <imgcaption image11|> <imgcaption image11|>
-{{ :emrp:ws2025:hascreenshot.png?nolink&600 |Home Assistant Dashboard Screenshot. Source: Own illustration.}}+{{ :emrp:ws2025:hascreenshot.png?&600 |Home Assistant Dashboard Screenshot. Source: Own illustration.}}
 </imgcaption> </imgcaption>
 === 4.5.2 Automations === === 4.5.2 Automations ===
Line 445: Line 445:
  
 <imgcaption image12|> <imgcaption image12|>
-{{ :emrp:ws2025:agvcreateautomation.jpg?nolink&800 |Create Automation 1/2. Source: Own illustration.}}+{{ :emrp:ws2025:agvcreateautomation.jpg?&800 |Create Automation 1/2. Source: Own illustration.}}
 </imgcaption> </imgcaption>
  
 <imgcaption image13|> <imgcaption image13|>
-{{ :emrp:ws2025:agvcreateautomation2.jpg?nolink&800 |Create Automation 2/2. Source: Own illustration.}}+{{ :emrp:ws2025:agvcreateautomation2.jpg?&800 |Create Automation 2/2. Source: Own illustration.}}
 </imgcaption> </imgcaption>
  
Line 489: Line 489:
 ===== 5. Testing & Validation ===== ===== 5. Testing & Validation =====
 ==== 5.1 Test plan ==== ==== 5.1 Test plan ====
-At the time of writing, the ventilation system could not be tested in the real greenhouse environment because a new greenhouse is currently under construction. Testing was therefore performed at home. While this limits realism, it enables a more controlled environment and repeatable test scenarios. The bathroom was chosen as the test environment because its volume of approximately 8 m³ is suitable for controlled ventilation experiments using one intake and one exhaust fan. This two-fan setup provides a comparable air exchange rate to the greenhouse design, because halving both the room volume (15 m³ → ~8 m³) and the number of fans (4 → 2) keeps the ventilation capacity per volume in a similar range under ideal conditions. In addition, temperature can be increased in a predictable way using a heater, and relative humidity can be raised quickly and measurably (e.g., through shower steam). This makes it possible to evaluate the system by observing how temperature and humidity change when the fans are enabled.+At the time of writing, the ventilation system could not be tested in the real greenhouse environment because a new greenhouse is currently under construction. Testing was therefore performed at home. While this limits realism, it enables a more controlled environment and repeatable test scenarios. The bathroom was chosen as the test environment because its volume of approximately 8 m³ is suitable for controlled ventilation experiments using one intake and one exhaust fan. This two-fan setup provides a comparable air exchange rate to the greenhouse design, because halving both the room volume (15 m³ → ~8 m³) and the number of fans (4 → 2) keeps the ventilation capacity per volume in a similar range under ideal conditions. In addition, temperature can be increased in a predictable way using a 2kW heater, and relative humidity can be raised quickly (e.g., through shower steam). This makes it possible to evaluate the system by observing how temperature and humidity change when the fans are enabled.
  
 Planned scenarios include: Planned scenarios include:
   * Sensor sanity check   * Sensor sanity check
-  * Hot-day / evening cooling scenario+  * Temperatur rise scenario
     * stop heating when vent starts turn fans off (baseline)     * stop heating when vent starts turn fans off (baseline)
     * stop heating when vent starts keep fans on     * stop heating when vent starts keep fans on
     * keep heating when vent starts keep fans on      * keep heating when vent starts keep fans on 
   * Humidity rise scenario    * Humidity rise scenario 
 +
 +<imgcaption image14|>
 +{{ :emrp:ws2025:agvtestingsetup.jpg?&800 |Test setup 1. Source: Own image.}}
 +</imgcaption>
  
 ==== 5.2 Data collection and logging ==== ==== 5.2 Data collection and logging ====
Line 504: Line 508:
  
 ==== 5.3 Observations ==== ==== 5.3 Observations ====
-**Sensor sanity check:** +==Sensor sanity check:==
 When placed in the same environment, the DHT11 sensors produced highly consistent readings, staying within ±0.1 °C for temperature and within ±1% RH for relative humidity. When placed in the same environment, the DHT11 sensors produced highly consistent readings, staying within ±0.1 °C for temperature and within ±1% RH for relative humidity.
  
 +==Temperature rise scenario 1==
 +
 +In this scenario, the room was heated until the ventilation condition triggered (including the configured 1-minute stability delay). At that point, both the heater and the fans were turned off. The objective was to measure how long it takes for the indoor temperature to drop back below the “should vent” threshold without active ventilation (baseline cooling).
 +
 +Each run started from an initial indoor temperature of approximately 23.8 °C, and the test was repeated four times.
 +
 +Measured time to cool out of the “should vent” condition (heater OFF, fans OFF):
 +  * Run 1: 3:50 min
 +  * Run 2: 4:00 min
 +  * Run 3: 4:20 min
 +  * Run 4: 4:20 min
 +
 +The average time across all runs was 4:07 min, with a slight increasing trend over the repetitions (later runs took longer).
 +
 +<imgcaption image15|>
 +{{ :emrp:ws2025:agvtest1.jpg?&800 |Data of temperature test 1. Source: Own illustration.}}
 +</imgcaption>
 +
 +==Temperature rise scenario 2==
 +This scenario follows the same procedure as Scenario 1: the room is heated until the ventilation condition triggers (including the 1-minute stability delay). Once triggered, the heater is turned off. In contrast to Scenario 1, the fans remain on to actively cool the room back below the “should vent” threshold.
 +
 +The test was repeated three times.
 +
 +Measured time to cool out of the “should vent” condition (heater OFF, fans ON):
 +  * Run 1: 3:50 min
 +  * Run 2: 3:50 min
 +  * Run 3: 3:50 min
 +
 +All three runs produced the same result, giving an average time of 3:50 min for this scenario.
 +
 +<imgcaption image16|>
 +{{ :emrp:ws2025:agvtest2.jpg?&800 |Data of temperature test 2. Source: Own illustration.}}
 +</imgcaption>
 +
 +==Temperature rise scenario 3==
 +With the 2000 W heater kept on, the fans were not able to cool the room back below the “should vent” threshold, but they likely slowed down the temperature increase.
 +
 +==Humidity rise scenario:==
 +In this scenario, humidity was increased using hot water/steam until the automation triggered ventilation at 70% RH. Indoor humidity peaked at 88% RH and was then reduced to 63% RH while the fans were running. The fans stopped automatically after the humidity dropped back below the threshold (Fig 17. - 1.). After the fans stopped, indoor humidity began to rise again (Fig 17. - 2.). When the fans were started manually, humidity continued to decrease until the inside and outside humidity levels were approximately equal. During the final part of the test, the outside humidity increased (Fig 17. - 3.).
 +
 +<imgcaption image17|>
 +{{ :emrp:ws2025:agvtest3.jpg?&800 |Data of humidity test. Source: Own illustration.}}
 +</imgcaption>
  
 +===== 6. Discussion =====
 +The system successfully measured indoor/outdoor temperature and humidity and controlled ventilation automatically via Home Assistant and ESPHome. In the controlled bathroom tests, the automation triggered reliably at the defined thresholds and ventilation reduced both temperature and humidity when outside conditions were more favorable than inside.
  
-  * Placeholder: key observations will be documented here once testing is completed. +One concern was the limited absolute accuracy of the DHT11 sensors, especially for relative humidityHoweverthe control logic primarily relies on relative comparisons between inside and outside rather than perfectly accurate absolute valuesUsing two identical sensor modules also helps because systematic offsets tend to cancel out when comparing trends and differencesAs a resultthe DHT11 accuracy is acceptable for this prototypewhile higher accuracy sensors would improve confidence in the exact trigger thresholds.
-  * Placeholder: include plots/screenshots from Home Assistant history and summarize relevant events (fan on/offsetpoint reached). +
-  * Placeholder: note any unexpected behavior (e.g., oscillation, sensor lagrelay switching issues).+
  
-===== 6Results & Discussion =====+In the temperature baseline test (heater OFF, fans OFF), cooling back below the ventilation threshold took 4:07 min on average. With ventilation enabled after switching the heater off (heater OFF, fans ON), cooling took 3:50 min across all runs. With a 2000 W heater kept ON, ventilation could not restore temperature below the threshold, but it likely slowed the temperature increase. The baseline cooldown duration increased over repeated trials (from 3:50 to 4:20), which is plausibly explained by heat storage in the room’s surfaces (walls, tiles, furniture) and their gradual release after the heater was switched off. The ventilation-enabled cooling test was performed after the baseline series, meaning it started under less favorable conditions; despite this, the cooldown time with fans remained lower (3:50), supporting a real cooling effect from ventilation in this setup.
  
-==== 6.1 Results ====+In the humidity test, ventilation started automatically at 70% RH. Indoor humidity peaked at 88% RH and was reduced to 63% RH while the fans were running. After the fans stopped, indoor humidity rose again even though no additional moisture was added, suggesting that without continued airflow some humid air pockets can remain and moisture on surfaces can re-equilibrate with the air. If humidity had climbed above 70% RH again, the automation would have restarted ventilation. For this test, the fans were started manually instead, and indoor humidity continued to decrease until it approached equilibrium with the outside sensor reading. Towards the end, the measured outside humidity also increased slightly, which is most likely an artifact of the indoor test setup with limited fresh-air exchange rather than a realistic outdoor effect. 
 +===== 7Conclusion and outlook =====
  
-==== 6.2 Limitations ====+This project demonstrates a working prototype of a Home Assistant–based greenhouse ventilation system using low-cost sensors and an ESP32 controller. The implementation covers the complete chain from sensing (inside/outside temperature and humidity) to automated actuation (relay-controlled intake/exhaust fans) and provides a practical foundation for further improvements. Initial indoor validation showed that the automation triggers reliably and that ventilation can measurably improve temperature and humidity conditions when outside air is more favorable than inside air.
  
-The current evaluation has several limitations: +==== Outlook ====
-  * Testing was performed in a bathroom rather than a real greenhouse, so airflow patterns, heat capacity, and leakage behavior differ significantly. +
-  * The controlled tests mainly covered cases where the “inside” environment was hotter and/or more humid than the “outside” reference. Conditions such as rain events, strong solar radiation, and rapid outside fluctuations were not fully represented. +
-  * DHT11 sensors are low accuracy, especially for humidity (often ±5% RH or worse with a range of 20-80%).+
  
-===== 7. Future Work Ideas ===== +The next step is the deployment and long-term validation in the real greenhouse once construction is completedBeyond installation, several extensions could improve functionality, robustness, and autonomy
-Here are a few ideas for future development, other than the actual deployment in the greenhouse.: +  * Additional sensing
-  * Add additional sensors+
     * Soil moisture sensing     * Soil moisture sensing
     * Light and CO₂ sensing for improved climate control decisions     * Light and CO₂ sensing for improved climate control decisions
-  * Extend automation capabilities+  * Extended automation features
     * Automatic watering based on soil moisture and schedules     * Automatic watering based on soil moisture and schedules
-    * Artificial light +    * Artificial lighting for plant support during low-light periods 
-    * Absolute humidity based ventilation decisions +  * Active climate control (beyond fans) 
-  * Add active climate devices (beyond fans) +    * Heater and/or active cooling 
-    * Heater/ Active cooling +    * Humidifier / dehumidifier system 
-    * Humidifier / dehumidifier system  +  * Off-grid power system 
-  * Off-grid power design outlook +    * Battery/solar-based power supply for independent operation 
-    * Plan and implement a battery/solar-based power supply so the system can operate independently of mains power. +    * Power budgeting, electrical safety (e.g., fusing), and autonomy targets (e.g., nights or multiple cloudy days)
-    * Include power budgeting, safety (fusing), and autonomy targets (e.g., nights multiple cloudy days).+
  
 ===== 8. References / Sources ===== ===== 8. References / Sources =====
emrp/ws2025/agv.1772303525.txt.gz · Last modified: 2026/02/28 19:32 by 23553_students.hsrw