Skip to main content
Version: FILS English

Blink and recall

Blink & Recall is a fast-paced memory game where players repeat random LED sequences before time runs out.

info

Author: BATAGOI Ana-Maria
GitHub Project Link: https://github.com/UPB-PMRust-Students/project-anabat27

Description

This project is a fun and interactive memory game built using the Raspberry Pi Pico W. The goal is to remember and repeat a sequence of randomly flashing LEDs. If the player correctly presses the corresponding buttons in the right order before time runs out (shown on an LCD screen), they move to the next round. If they make a mistake or time expires, a buzzer sounds and the round restarts.

Motivation

I chose this project because I wanted to build something fun and interactive that also challenged my hardware and programming skills. I’ve always enjoyed memory games, and creating my own version with real components like LEDs, buttons, and an LCD felt like a great way to combine learning with creativity. It pushes me to improve both my logic and timing control, while also delivering something that others can enjoy.

Architecture

Main Components:

Raspberry Pico: The central microcontroller of the game, responsible for generating the LED flash sequences, handling button inputs, controlling the LCD display for the timer and instructions, and activating the buzzer when needed.

LEDs: These LEDs light up in a random order to create the sequence that the player needs to memorize and repeat. Each LED color represents a different position in the sequence.

Buttons:These buttons are used by the player to input their guesses in the same sequence as the LED flashes. Pressing the correct buttons in the right order advances the player to the next round.

Buzzer: If the player makes a mistake or runs out of time, the buzzer sounds to indicate the failure, signaling the player to restart the round.

LCD: The timer and game instructions are shown on this screen. It counts down the time allowed to replicate the LED sequence and provides feedback to the player throughout the game.

Connection overview :

All components (LEDs, buttons, buzzer, and LCD) are connected to the Raspberry Pi Pico W.

Architecture photo

Log

Week 5 - 11 May

Project planning, hardware selection, initial tests with LEDs and buttons.

Week 12- 18 May

Week 19 - 25 May

Hardware

Schematics

Bill of Materials

DeviceUsagePrice
Rapspberry Pi Pico WThe microcontroller34.5 RON
BLUE LedCreates the pattern.0.29 RON
RED LedCreates the pattern.0.39 RON
GREEN LedCreates the pattern.0.39 RON
YELLOW LedCreates the pattern.0.39 RON
ButtonsThe buttons1.5 RON
BuzzerThe buzzer1.4 RON
LCD15 RON
BreadboardFor assembling the prototype5 RON
Female-to-Male WiresFor connections8 RON
Female-to-Female WiresFor connections7 RON
Male-to-Male WiresFor connections6 RON
Micro USB CableFor the Raspberry Pi Pico W7 RON

Software

LibraryDescriptionUsage
rp2040-halHardware ControlControls RP2040 hardware
embedded-halHardware AbstractionCommon hardware driver traits
hd44780-driverLCD DisplayDrives LCD character display
randSequence RandomizerGenerates random number sequences
  1. Arduino Memory Game
  2. Raspberry Pi Pico W Memory Game