Upon power on/reset, the system is deactivated. In this mode, all LEDs should be OFF and character “OFF” is displayed at the Virtual Terminal Screen. The main push button (MAIN) is used to activate and reset the system. When activated, the LED (D1) ON, indicates the system is active and character “ON” is displayed on the Virtual Terminal Screen. In this mode (ACTIVE), the present temperature and humidity can be monitored by analog input (Use potentiometers to emulate temperature and humidity sensors). Temperature and humidity should be displayed at Virtual Terminal Screen and updated every 1 minute. At any time (in ACTIVE MODE), If humidity drops below 30%, the message “dry” should be displayed and the LED indicates “dry” should turn on; If humidity rises above 75%, the message “wet” should be displayed and the LED indicates “wet” should turn on; If temperature drops below 20ºC, the message “cold” should be displayed and the LED indicates “cold” should turn on; If temperature rises above 30 ºC, the message “hot” should be displayed and the LED indicates “hot” should turn on. The system should keep monitoring the humidity and temperature continuously until the system is reset by pressing the reset button or deactivated by the main push button (MAIN). Pressing the main push button (MAIN) once when the system is deactivated will activate the system while pressing the main push button (MAIN) once when the system is activated will deactivate the system. Use 5 LEDs to indicated the operating conditions: ON, Wet, Dry, Hot and Cold.
Components required: PIC16F877A microcontroller IC, 2 potentiometers, 2 push button switches and 5 LEDs.
Components required: PIC16F877A microcontroller IC, 2 potentiometers, 2 push button switches and 5 LEDs.