Memory Hunter is a fully hardware-based memory game built on Arduino UNO with WS2812B NeoPixel strip, TM1637 7-segment display, and a passive buzzer.
The machine plays an ever-growing sequence of coloured light + sound cues. The player must repeat them back โ in perfect order.
One new step is added every round. Get it right and you level up. Get it wrong โ or take too long โ and it's dEAd.
๐ง How far can your memory take you?
- LED Strip = Atmosphere Engine
- 4 LEDs = Game Colours
- 4 Buttons = Player Controls
- TM1637 = Score + Countdown Display
- Buzzer = Audio Feedback System
- EEPROM = High Score Memory
- IDLE โ BUTTON PRESS โ COUNTDOWN (33โ22โ11โGO)
- SEQUENCE PLAYS โ PLAYER REPEATS
- CORRECT = LEVEL UP โ LONGER SEQUENCE
- WRONG / TIMEOUT = dEAd โ GAME OVER
- HIGH SCORE SAVED โ RETURN TO IDLE
- โ EEPROM High Score โ survives power cycles
- โ Idle Marquee Display โ 0--0 / HiSr / score cycling
- โ NeoPixel atmosphere โ rainbow idle, pink game mode
- โ Organic LED breathe โ each LED independently animated
- โ 1-minute inactivity timeout โ only fires during gameplay
- โ Countdown sequence โ 33 โ 22 โ 11 โ GO
- โ Unique tone per button โ full audio feedback
- โ New high score celebration flash + jingle
- IDLE โ Rainbow NeoPixel + LED breathe + high score marquee
- TRANSITION โ NeoPixel fade to pink + countdown
- PLAYING โ Sequence display + player input
- LEVEL UP โ Jingle + score increment
- GAME OVER โ dEAd flash + wah-wah sound
- HIGH SCORE โ Celebration flash + save to EEPROM
| State | NeoPixel | LEDs | Display |
|---|---|---|---|
| Idle | ๐ Chasing rainbow | Organic breathe | 0--0 / HiSr / score |
| Transition | ๐ฉท Fade to pink | Off | 33โ22โ11โGO |
| Game | ๐ฉท Solid pink | Game colours | Score |
| Game Over | โฌ Fade to black | Flash + off | dEAd |
| Event | Tone |
|---|---|
| Button 1 | G3 |
| Button 2 | C4 |
| Button 3 | E4 |
| Button 4 | G5 |
| Countdown | C4 beeps |
| Level Up | E4โG4โE5โC5โD5โG5 jingle |
| Game Over | DS5โD5โCS5 wah-wah sweep |
| High Score | A5 flash โ C6 pip |
| Start Press | E5 confirmation beep |
- Stored in EEPROM โ survives power cycles
- Magic byte 0xAB detects first boot and initialises to 0
- Beat the record โ immediate save + celebration effect
- Idle marquee cycles through 0--0 โ HiSr โ score display
Components:
- Arduino UNO
- WS2812B NeoPixel LED Strip (46 LEDs)
- TM1637 4-digit 7-segment display
- 4x PWM LEDs (game colours)
- 4x Push Buttons
- Passive Buzzer
| Component | Pin |
|---|---|
| Buttons | D4, D5, D7, D8 |
| Game LEDs | D6, D9, D10, D11 |
| Buzzer | D12 |
| TM1637 CLK | D2 |
| TM1637 DIO | D3 |
| NeoPixel Data | D13 |
| RNG Seed | A5 (floating) |
โ Pin 12 is NOT PWM on UNO โ LED 4 uses pin 3 workaround โ EEPROM: Address 0 = score, Address 1 = magic byte 0xAB
Install via Arduino Library Manager:
- TM1637Display (by Avishorp)
- Adafruit NeoPixel
- EEPROM non-volatile memory management
- Non-blocking multi-LED animation engine
- Finite state idle / game transition system
- NeoPixel HSV rainbow + smooth fading
- Independent per-LED organic breathe animation
- Inactivity timeout scoped to gameplay only
- Random seed from floating analog pin
๐ Wokwi Project: https://wokwi.com/projects/461780873004005377
- Difficulty selector (slow / normal / hard)
- 2-player competitive mode
- Bluetooth leaderboard via ESP32
- Web score dashboard
- LCD extended stats display
- Animated sequence preview
| Version | Highlights |
|---|---|
| v1.0 | Base game |
| v1.1 | NeoPixel rainbow idle |
| v1.2 | TM1637 score display |
| v1.3 | Countdown + level jingle |
| v1.4 | Timeout + LED breathe |
| v1.5 | EEPROM high score + idle marquee + timeout fix |
.
.
๐จ Name: Aniket Chowdhury (aka Hashtag)
๐ง Email: micro.aniket@gmail.com
๐ผ LinkedIn: itzz-hashtag
๐ GitHub: itzzhashtag
๐ธ Instagram: @itzz_hashtag
This project is released under a Modified MIT License. It is intended for personal and non-commercial use only.
๐ซ Commercial use or distribution for profit is not permitted without prior written permission. ๐ค For collaboration, reuse, or licensing inquiries, please contact the author.
This is a solo passion project, built with countless nights of tinkering, testing, and debugging.
If you find it useful or inspiring, feel free to โญ the repository or connect with me on social media!
_ "The machine remembers everything. The question is โ can you?"