Rhythm Memory Game 

Description:
The Rhythm Memory Game is an AVR-based embedded system that challenges a player’s memory and timing skills. It uses four input buttons, four output LEDs, and a piezo buzzer to create an interactive musical pattern game. The microcontroller generates a unique 4-beat rhythm at each level using different musical note types: rests, quarter notes, eighth notes, and triplets. The player must repeat the rhythm correctly using button presses, with the difficulty increasing every 16 levels (“modes”).

Key Features:

  • Custom tone generation via software-controlled buzzer
  • LED and button input/output interfacing
  • Real-time serial communication for status and feedback
  • Level progression with increasing tempo and complexity
  • 16 distinct mode victory melodies
  • Error detection with a failure tone and high score tracking

Tools & Skills:

  • AVR microcontroller programming (C)
  • Digital I/O configuration (input pull-up, LED output)
  • Sound waveform timing using _delay_ms
  • Serial communication with USART
  • Debugging and testing in Tinkercad Circuits

Gameplay Overview:
Players begin at Level 1 and progress by successfully repeating each rhythm. A unique celebratory melody plays if they complete a mode (every 16 levels). If a mistake is made, the system plays a failure tone and prints the player’s highest reached level and mode to the serial monitor.

Demo Video:
Video