Simon's Game Using Microcontroller

Assembly, C++ | Embedded Systems

BC Analysis Dashboard

A View of the Project with STM32 Microcontroller and Push-buttons, LED Indicators Connected to the Breadboard

For this individual design project, I designed and implemented a Simon-style memory game on the STM32F103RB microcontroller. Inspired by the classic LED memory challenge, the project tests a player’s ability to recall and reproduce sequences of flashing LEDs using physical buttons. The difficulty ramps up to 10 rounds, with increasing sequence lengths and limited response time.

Tools Used

Behind the Build: A Visual Story

Key Questions I Tried to Answer

  1. Can the PAJ7620U2 distinguish gestures from ambient noise?
  2. Polling or interrupts: which best merges gesture and touch inputs?
  3. What’s the latency from gesture detection to relay activation?
  4. How to add manual override buttons for graceful failure?
  5. Is gesture‑only control user‑friendly, and does LED feedback suffice?

Steps Taken for Analysis

  1. Reviewed microcontroller and peripheral interface labs (I²C, GPIO, USART).
  2. Bench‑tested gesture and touch sensors under different conditions.
  3. Compared polling vs interrupt for sensor reads and measured latency.
  4. Implemented firmware on board, integrating relay and manual overrides.
  5. Evaluated response times, LED feedback clarity, and power consumption.

Live Demo

Thank you for taking the time to view my project!