This is an old revision of the document!


Mini Game Console

  • Author: Căzan Mihnea-Andrei
  • Group: 335CA

Introduction

This project consists of building a retro mini game console capable of running classic arcade games (such as Snake and Breakout).

  • The main goal is to explore and practically apply the interfacing of an 8-bit microcontroller (ATmega328P) with various input and output peripherals.
  • The idea originated from the desire to recreate the experience of 80s/90s arcade games on a minimal hardware platform, demonstrating how limited memory resources (32KB Flash, 2KB RAM) can provide a complete interactive experience.
  • This project is highly useful from an educational standpoint, as it deepens the understanding of fundamental concepts (I2C communication protocols, ADCs, Timers, PWM, and Hardware Interrupts), while also resulting in a functional and entertaining gadget.

Descriere generală

The console is structured into three main blocks: input, processing, and output.

  • The ATmega328P microcontroller acts as the central processing unit. It continuously reads analog signals from the joystick using the internal ADC (to determine movement direction) and monitors hardware interrupts or digital pin states for the action buttons.
  • Based on the implemented game logic (Game Loop), the microcontroller updates the system state and sends graphical data packets to the OLED display via the I2C hardware interface.
  • Simultaneously, the system uses internal Timers to generate PWM (Pulse Width Modulation) signals to a passive buzzer (to play specific sound effects) and controls an RGB LED to provide quick visual feedback regarding the current state of the console (e.g., green for active gameplay, red for Game Over, blue for menu).

System Block Diagram:

Hardware Design

List of components used for the project:

  • ATmega328P Xplained Mini Development Board (8-bit AVR Microcontroller)
  • 0.96” OLED Display (SSD1306 Controller, I2C Interface, 128×64 resolution)
  • Biaxial Analog Joystick Module (KY-023 type) with integrated push button (SW)
  • Passive Buzzer (for generating various tones via PWM signal)
  • 5mm RGB LED (Common Cathode, for visual state indication)
  • 2 x Tact Switch Buttons 6x6mm (For START/SELECT and PAUSE functions)
  • 3 x 220Ω Resistors (for current limiting on the RGB LED channels)
  • 830 Tie-Points Breadboard (for solderless assembly)
  • Dupont Wire Set (Male-to-Male and Female-to-Male)

Electtrical Scheme:

Software Design

Descrierea codului aplicaţiei (firmware):

  • mediu de dezvoltare (if any) (e.g. AVR Studio, CodeVisionAVR)
  • librării şi surse 3rd-party (e.g. Procyon AVRlib)
  • algoritmi şi structuri pe care plănuiţi să le implementaţi
  • (etapa 3) surse şi funcţii implementate

Rezultate Obţinute

Care au fost rezultatele obţinute în urma realizării proiectului vostru.

Concluzii

Download

O arhivă (sau mai multe dacă este cazul) cu fişierele obţinute în urma realizării proiectului: surse, scheme, etc. Un fişier README, un ChangeLog, un script de compilare şi copiere automată pe uC crează întotdeauna o impresie bună ;-).

Fişierele se încarcă pe wiki folosind facilitatea Add Images or other files. Namespace-ul în care se încarcă fişierele este de tipul :pm:prj20??:c? sau :pm:prj20??:c?:nume_student (dacă este cazul). Exemplu: Dumitru Alin, 331CC → :pm:prj2009:cc:dumitru_alin.

Jurnal

Puteți avea și o secțiune de jurnal în care să poată urmări asistentul de proiect progresul proiectului.

Bibliografie/Resurse

Listă cu documente, datasheet-uri, resurse Internet folosite, eventual grupate pe Resurse Software şi Resurse Hardware.

Export to PDF

pm/prj2026/bianca.popa1106/mihnea_andrei.cazan.1778360401.txt.gz · Last modified: 2026/05/10 00:00 (external edit)
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0