2Hours Stopwatch with display

Hi...

I want to made arduino base 2Hours Stopwatch with display.

Application.

  1. When i press start button timer will start for two hours.
  2. And display the remaining times.
  3. After 2 hours finished one alarm will ring.
  4. When i press reset button timer will again set 2 hours. (Normal position)

Please guide me ....

Thanks in advance

Please post your code, show what you tried.

What do you want to have happen if the reset button is pressed before the alarm rings? What if the start button and the reset button are pressed together? What if there are multiple presses of the reset button? What if there are multiple presses of the start button? What if the alarm rings and then the start button is pressed?

Start simple (for example, displaying a number) and build up slowly to your goal.

Start from here
http://playground.arduino.cc/Code/StopWatchClass

#include <StopWatch.h>
#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

StopWatch sw_millis;    // MILLIS (default)
StopWatch sw_micros(StopWatch::MICROS);
StopWatch sw_secs(StopWatch::SECONDS);

void setup() {
    lcd.begin(16,2);
    Serial.begin(9600);
    sw_millis.start();
    sw_micros.start();
    sw_secs.start();
}


void loop() {
    Serial.print("sw_millis=");
    Serial.println(sw_millis.elapsed());
    Serial.print("sw_micros=");
    Serial.println(sw_micros.elapsed());
    Serial.print("sw_secs=");
    Serial.println(sw_secs.elapsed());

    lcd.clear();
    lcd.print("s=");
    lcd.print(sw_secs.elapsed());
    lcd.print(" ms=");
    lcd.print(sw_millis.elapsed());
    lcd.setCursor(0, 1);
    lcd.print("us=");
    lcd.print(sw_micros.elapsed());

    delay(1000);
}

http://playground.arduino.cc/Main/CountDownTimer