Skip to content

Repository files navigation

Smart_Weather_Controller_Using_RTOS

Welcome to our implementation of the Smart Weather Controller. This will contain information on our group, details on how the project can be run, as well as how the project can be tested.

Requirements

Hardware requirements

  • YOLO UNO Esp32 - S3 by Ohstem
  • DHT20 Temperature and Humidity Sensor
  • 3 LED traffic light module by ACLAB by HCMUT

Software requirements

  • Arduino IDE
  • Arduino ESP32 Boards (v. 1.8.6) - Downloaded from Arduino IDE Boards Manager
  • Ohstem Boards by Ohstem Education (v. 3.1.3) - Downloaded from Arduino IDE Boards Manager

Project testing details

  • Once the project has been imported on your local machine, it should be opened in the appropriate IDE. In this case, the best choice is to use Arduino IDE since it is also where the project is developed and tested. After you opened the Arduino IDE, open the project by choosing to File -> Open, then navigating to the file main.ino in the project folder and open it inside Arduino IDE.
  • Connect the Arduino board which contains the humidity and temperature sensor as well as three sets of red-yellow-green LEDs (representing the heater, cooler, and humidifier). Additionally, you will need to choose the Select Board option on the left corner, this will allow you to choose the board that is detected once it is connected to your device. In this case it is YOLO UNO Esp32 with port COM6.
  • The last step is to click on File -> Preferences, then in the field "Additional boards manager URLs", you can paste in this link: "https://raw.githubusercontent.com/AITT-VN/ohstem_arduino_board/main/package_xcon_index.json,https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json". With this step completed, you can now run and test the project by clicking the upload button on the upper left corner.
  • Once the project script has been uploaded successfully, you can see live status update being printed out in the Serial Monitor.

How the accuracy of the system can be tested

Heater

  • First is the heating element, which demonstrates how the system would react with low temperatures. To test this, the best way is to place the sensor inside a refridgerator or an air conditioned room which will cause the temperature readings to drop noticeably and cause the heater to activate according a specific threshold defined in the code. The changes in the heater's state will appear on the LEDs, with it either being red or yellow to signify either on or off.

Cooler

  • In the case of the cooling element, the best way to test is to hold the sensor inside the palm of your hand, which will cause the temperature readings to rise as indicated in the Serial Monitor. Once it has risen over a certain threshold, the cooler will activate, which is represented by the the green LED on the one representing the cooler either turning on or off.
  • The cooler will turn off every 5 seconds to check the changes in temperature readings, if it is still above the predefined threshold, it will turn on again.

Humidifier

  • To test the humidifier, now we need to raise and drop the humidity readings appropriately. This can be achieved by breathing onto the sensor unit, this will cause the humidity readings to spike and the humidifier react accordingly based on if it is within or outside a certain range.
  • The activation of the humidifier is as follows: green for 5 seconds, yellow for 3 seconds, red for 2 seconds.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages