Dexter Jethro Enriquez Return
Arduino Mastermind screenshot

EMBEDDED SYSTEMS · May 2026

Arduino Mastermind

A hardware Mastermind code-breaking game on Arduino Uno. The player has 5 attempts to crack a randomly generated 3-digit secret code (digits 1–6) using 4 push buttons — one to cycle digits, one to confirm. A 16×2 I2C LCD displays the current guess and Bulls & Cows feedback after each attempt. RGB LEDs and a buzzer provide distinct audio-visual feedback for input, win, and loss states with custom melodies. Implements a two-pass Bulls & Cows scoring algorithm, button debounce, and auto-reset on game end. Components: Arduino Uno, I2C LCD, push buttons, RGB LEDs, passive buzzer, and resistors.

Built with

  • Arduino
  • C++
  • I2C LCD
  • Digital Logic