Close
0%
0%

Kodeck

Handheld ESP32-S3 console for learning to program: write a game, upload it over USB-C, play it together without a router.

Similar projects worth following
0 followers
Kodeck is a handheld game console made for learning to program. A learner writes code on a computer, uploads it with one USB-C cable and a few seconds later sees the result on the console in their hands.

Consoles talk to each other directly over ESP-NOW, so the games people write can be played together in a classroom, at home or outdoors: no router and no internet needed.

The software is open: the Kodeck library, its examples and the lessons are MIT-licensed on GitHub.

Current stage: every part works on a test bench, circuit board v0.5 (173 × 70 mm, two layers) is designed, the first ten boards are ordered, and the first alpha of the Kodeck library is published.

What it is

Kodeck is built around the ESP32-S3: two processor cores at 240 MHz, Wi-Fi and Bluetooth in one module, with 16 MB of flash and 8 MB of PSRAM. It has a 3.2-inch colour touch screen, an analog stick, six buttons, a speaker, a microSD slot and a single lithium battery.

It runs your own games and programs, and emulators can be adapted to it. Several consoles connect to each other without a router.

Hardware

  • Processor: ESP32-S3-WROOM-1 N16R8, 2 cores at 240 MHz, 16 MB flash, 8 MB PSRAM
  • Screen: 3.2", 320 × 240, IPS, ILI9341V, SPI at 40 MHz; 31.5 frames per second for a full redraw (measured)
  • Touch: capacitive FT6336U, up to two touch points, I²C, no calibration
  • Input: PSP-1000 type analog stick (12-bit ADC, software centre and dead zone); A, B, X, Y in a diamond like an Xbox pad; L and R on the top corners
  • Sound: MAX98357A class-D amplifier (I²S), 4–8 Ω speaker; the program can switch the amplifier off
  • Storage: microSD (tested with 64 GB, FAT32, 1.5 MB/s read), settings and high scores in flash (NVS)
  • Wireless: Wi-Fi 2.4 GHz (access point and client, web file manager with QR code), Bluetooth 5 LE, ESP-NOW for direct links
  • USB-C: native USB of the ESP32-S3 for charging, uploading and the serial console; can also act as a USB drive or a game controller
  • Power: TP4056 charger, DW01A + 8205A battery protection, power path (SS14 + AO3401) so the console runs while charging, ME6211 3.3 V low-dropout regulator, battery voltage and USB presence measured by the ADC
  • Circuit board: 173 × 70 mm, two copper layers, EasyEDA

Multiplayer

Every Kodeck has Wi-Fi and Bluetooth, so a class or a group of friends can start a shared game anywhere.

  • Direct link: consoles find each other in seconds and exchange short messages with almost no delay (ESP-NOW). Good for duels, races and co-op.
  • One console as an access point: other consoles, phones and laptops join its own Wi-Fi network. The built-in file manager already works this way.
  • Through a Wi-Fi network: at home or at school.

The radio is on the board. The first version of the network part of the Kodeck library is published (alpha); the first two-console demo will appear in this build log.

Battery

One single-cell lithium battery, 3.7 V nominal, in a 92 × 45 mm compartment behind the screen.

  • Maximum battery length and width: 88 × 43 mm.
  • Flat Li-Po or cylindrical Li-ion, one cell only. Examples that fit: 103665, 104060, 804080.
  • Batteries without their own protection board are fine: protection is on the console board.
  • The maximum thickness will be set by the case, which is being designed now.
  • Not suitable: LiFePO4, NiMH, or packs of two or more cells in series.

Programming

Board v0.5 is designed so that programs are uploaded over the same USB-C cable: press Upload in the free Arduino IDE and the console restarts with the new program, with no buttons to hold and no separate programmer.

The Kodeck library (alpha) puts the screen, stick, buttons, touch, sound, saving, memory card and the radio link behind one simple object, kodeck. It comes with 12 examples, from the first pixel to games for two consoles, and every change is compiled automatically with the ESP32 Arduino core 3.3 and 4.0. Lessons for the first seven examples, each with a version that runs in the browser: kodeck.tech/lessons

Tools: Arduino IDE with the ESP32 core 3.x, LovyanGFX for graphics, and the standard sound library. PlatformIO and ESP-IDF work too. MicroPython support is planned.

Kodeck will ship without commercial games. Emulators are meant for homebrew and freely distributed games.

Open software, hardware files for owners

The Kodeck library, the examples and the firmware are open source under the MIT licence: github.com/kodeckproject/kodeck-library

Owners will also receive the hardware files: schematics, circuit board and Gerber files, a parts list, the 3D case model and assembly instructions. These may be used and changed for personal...

Read more »

  • Lessons 1–7 online (1 Dec 2026)

    kodeck.project • 3 hours ago • 0 comments

    The first seven example programs now have lessons on kodeck.tech/lessons: the whole code explained part by part, tasks to change it, and a copy of each program that runs in the browser, so the ship, the stars and the enemy wave can be tried before anything is uploaded.

    The library also gained memory card support (written and compiling, to be tested on the hardware) and an automatic build check on GitHub: every change is compiled with the ESP32 Arduino core 3.3 and 4.0. The buttons are now named as on the console: A, B, X and Y in a diamond like an Xbox pad.

  • Software: alpha 0.1 is open (30 Nov 2026)

    kodeck.project • 3 hours ago • 0 comments

    The first alpha of the Kodeck library is public on GitHub under the MIT licence: github.com/kodeckproject/kodeck-library. Through one simple object called kodeck, programs get the screen, stick, buttons, touch, sound, saving and a radio link between consoles (ESP-NOW).

    It comes with examples from the first pixel to games for two consoles: a duel where shots fly over to the other screen, and Pong with one ball across two screens. Every example compiles with the ESP32 Arduino core 3.3 and 4.0; testing on the test bench and on circuit board v0.5 is next.

  • Circuit board v0.5 designed and ordered (28 Nov 2026)

    kodeck.project • 3 hours ago • 0 comments

    All electronics now fit on one board of 173 × 70 mm with two copper layers. The board is shaped like an inverted U, which leaves a 92 × 45 mm compartment for the battery behind the screen. The USB-C port, the power switch, the charging indicators and the L/R buttons were moved to the front. The audio amplifier was placed next to the speaker connector to keep the audio wiring short. All connections are routed, and the design-rule check reports only minor notes inside the USB-C connector footprint. The first ten boards have been ordered.

  • Using the console while charging (27 Nov 2026)

    kodeck.project • 3 hours ago • 0 comments

    The power circuit was built on a perforated prototyping board: a USB-C charger, battery protection and a power-path circuit with a P-channel MOSFET. When USB power is connected, the console runs from it while the battery charges; without USB, the transistor connects the battery with almost no loss.

    Testing also showed that the widely used AMS1117 regulator supplies only 2.5–2.7 V from a 4 V battery, and the processor restarts. Board v0.5 therefore uses a low-dropout regulator, which works with only a small difference between input and output voltage.

  • Emulator running at 30 frames per second (27 Nov 2026)

    kodeck.project • 3 hours ago • 0 comments

    As a performance test, the NES emulator nofrendo (GPL) was adapted to Kodeck. It runs on the full screen at about 30 frames per second: one processor core emulates the console, the other draws the picture. A game menu and file upload over Wi-Fi are included. Screenshots of commercial games are not published, and Kodeck will not include such games.

  • Touch input working (26 Nov 2026)

    kodeck.project • 3 hours ago • 0 comments

    The touch controller of the display communicates at 4.5 V, while the ESP32-S3 inputs accept no more than 3.6 V. A level shifter made of two small N-channel MOSFET transistors adapts the voltages. Touch input now works without calibration.

  • First complete test (25 Nov 2026)

    kodeck.project • 3 hours ago • 0 comments

    All components were connected with wires on the test bench. The screen redraws the full picture 31.5 times per second, the 64 GB memory card reads at 1.5 MB/s, the stick is calibrated, and sound plays through the digital amplifier. The first demonstration game, a small space shooter, stores its high score in flash memory.

View all 7 project logs

Enjoy this project?

Share

Discussions

Does this project spark your interest?

Become a member to follow this project and never miss any updates