DEV Community

Cover image for Brass Tubing Is the Frame and the Ground in This ESP32 Handheld
circuitrocks
circuitrocks

Posted on Originally published at blog.circuit.rocks

Brass Tubing Is the Frame and the Ground in This ESP32 Handheld

What holds a handheld console together once you skip both the PCB and the printed enclosure?

Huy Vector's answer was 2 mm hollow brass tubing. He traced the outline of a 2.4-inch IPS display onto paper, bent tubing into matching front and back rectangles, then joined the two with four 8 cm corner posts. The skeleton that came out of it carries a display, a speaker, a battery pack and a dev board with almost nothing hidden. Every solder joint is on show, and that is the point.

The frame is part of the circuit

Brass conducts, so Vector let the tubing double as the common ground for everything bolted to it. That removes a fistful of return wires and gives him a ground reference he can tap anywhere on the chassis. The rest of the wiring is stiff 1 mm brass wire run point to point, which is stiff enough to hold its shape and act as structure in its own right. A thin speaker tucks directly under the display inside the front frame.

What is actually running the games

The brains are an ESP32-S3 N16R8 CAM development board, picked less for its camera (unused here) than for the 16 MB of flash, 8 MB of PSRAM and the onboard microSD slot that holds the ROMs on a FAT-formatted card. There was no room for an off-the-shelf gamepad, so the controls are eight 4 mm tactile switches mounted to a 2 mm acrylic sheet: D-pad, two action buttons, Start and Select. Each switch shares the chassis ground, with its second terminal running to its own GPIO pin. A small amplifier drives the speaker, and three 3.7 V AAA-sized rechargeable cells sit in the open frame next to a USB-C charging module and a slide power switch.

On the firmware side it emulates the NES, Game Boy, Game Boy Color, Sega Master System and Game Gear. A menu behind Start and Select exposes volume, visual filters, save states and ESP32 overclocking, and the S3's Wi-Fi means new ROMs can be pushed across without pulling the card.

Try it

The brass is the hard part; the electronics are not. An ESP32-S3 board, a 2.4-inch SPI display, a handful of tactile switches and a mono amp will get you a working emulator on a breadboard in an afternoon, and you can decide on a body later. One gotcha if you go the metal-chassis route: a conductive frame is a great ground, but it will also short anything you let touch it, so sleeve or standoff every exposed pad before you power up. Full build photos and the video are on Hackster.


Originally published on blog.circuit.rocks.

esp32 #esp8266 #iot #wifi #circuitrocks

Top comments (0)