Curriculum
Course: Memory Game With ultrasonic Sensor
Login
Text lesson

Working Principle

Working Principle

Step 1: Start the Game

  • The player places their hand within 10 cm of the ultrasonic sensor.
  • The buzzer gives a short beep.
  • The game starts automatically.

Step 2: Display Sequence

  • LEDs glow one by one in a random sequence.
  • The player must observe and remember the order.

Step 3: User Input

  • The player presses the corresponding buttons in the same order as the LEDs were shown.

Step 4: Verification

  • If the sequence is correct, the player advances to the next level.
  • If any button is pressed incorrectly, the game ends.

Step 5: Winning

  • After completing all four levels successfully, all LEDs blink and the buzzer plays a victory sound.

Level Details

Level LEDs Used Sequence Length
Level 1 LED1, LED2, LED3 3
Level 2 LED1, LED2, LED3 4
Level 3 LED1, LED2, LED3, LED4 5
Level 4 LED1, LED2, LED3, LED4 6
×
×

Cart