Stopwatch

Description

One push button is responsible to start and stop the time. The time is counted on timer0 of the ATmega16 microcontroller. Time is displayed live on the 4×7 segment display, using BCD code and a driver chip to select and enable the appropriate digit/segment. The second button captures and displays the current time on the LCD screen, with the help of the lcd.h library. Finally, the last button clears the screen, only if the timer is stopped.

Parts

  • ATmega16 microcontroller
  • 4×7 segment display
  • LCD screen
  • 7 segment BCD display driver
  • 3 push buttons

Source and schematic

The source and the schematic are available on GitHub.

Stopwatch schematic: ATmega16 with a 4-digit 7-segment display, a BCD driver, an LCD and three push buttons

Back to all projects