Blink and recall
Blink & Recall is a fast-paced memory game where players repeat random LED sequences before time runs out.
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.
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
Device | Usage | Price |
---|---|---|
Rapspberry Pi Pico W | The microcontroller | 34.5 RON |
BLUE Led | Creates the pattern. | 0.29 RON |
RED Led | Creates the pattern. | 0.39 RON |
GREEN Led | Creates the pattern. | 0.39 RON |
YELLOW Led | Creates the pattern. | 0.39 RON |
Buttons | The buttons | 1.5 RON |
Buzzer | The buzzer | 1.4 RON |
LCD | 15 RON | |
Breadboard | For assembling the prototype | 5 RON |
Female-to-Male Wires | For connections | 8 RON |
Female-to-Female Wires | For connections | 7 RON |
Male-to-Male Wires | For connections | 6 RON |
Micro USB Cable | For the Raspberry Pi Pico W | 7 RON |
Software
Library | Description | Usage |
---|---|---|
rp2040-hal | Hardware Control | Controls RP2040 hardware |
embedded-hal | Hardware Abstraction | Common hardware driver traits |
hd44780-driver | LCD Display | Drives LCD character display |
rand | Sequence Randomizer | Generates random number sequences |