can anyone help me on this task? : Room humidity and temperature sensor

Discussion in 'Embedded Systems and Microcontrollers' started by najib, Sep 17, 2012.

  1. najib

    Thread Starter New Member

    Sep 11, 2012
    4
    0
    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.
     
  2. Sensacell

    Well-Known Member

    Jun 19, 2012
    1,128
    266
    Is this a programming question, or a hardware design question?

    Can you provide a more "big picture" overview of the project?
     
  3. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    What would a "Virtual Terminal Screen" be?

    Make a list of the inputs (two buttons, 2 analog signals) and outputs (5 leds + that display). Find pins that will work nice with these: you may fine by grouping the buttons on sequential I/O) pins of a port they are easier to process later. Make sure the analog pins will play together: some PICs limit your choice of analog pins to definite pins as you add them. This means you start with AN0, then AN1, and so on, but you can't arbitrarily add other AN pins without loosing digital pins.

    This sounds like a homework question to me.
     
Loading...