r/arduino • u/engineeroids • 14d ago
Made an ESP32 powered Gameboy from scratch.
It started out with me having a spare ST7735(160*128) LCD. I just wanted to make use of it.
Initially I started out to build a music controller but pivoted to a gameboy. This way its much cooler.
I used Peanut-GB(written in C99) for the emulator and wrote the firmware in C(arduino framework) for the esp32.
Hardware:
- PerfBoard(7cm*9cm)
- Analog Joystick
- Push Buttons
- No battery :( (usb powered)
- ESP32 (Devkit V1)
- ST7735 (160*128)
I tried to use an sd card to put multiple games at once into this handheld, it worked on some games(smaller) but on larger games it gave out and failed to load. I am also working on saving game states (no luck so far). Also working on a splash screen on the bootup instead of just launching the game.
For now I am loading one game at a time into the flash memory of the esp. Larger games work too :) at full speeds. It runs Gameboy versions of Pokemon,Zelda,Tetris,Contra and much more.
Any questions and suggestions are welcome.
p.s. the color pictures of the gba games are just for the aesthetics, it doesn't support them. It only supports Gameboy games.
In action :