DIY Wi-Fi Internet Radio: Building a Custom ESP32-S3 Streaming Device
Summary: This article details the creation of a DIY Wi-Fi Internet Radio powered by an ESP32-S3 microcontroller, offering access to thousands of global radio stations. It covers the complete build process, from custom hardware and PCB design to a 3D-printed enclosure and Arduino-based firmware, resulting in a compact and intuitive desktop device.

Traditional FM radios are often limited by broadcast coverage, leading to inconsistent signal strength, poor audio quality, and restricted station availability based on location. In contrast, the widespread availability of reliable Wi-Fi networks today makes internet radio a far more flexible and superior alternative. It allows users to access thousands of radio stations from around the world, providing an almost limitless selection of music, news, sports, and podcasts with consistent digital audio quality.
This project guides you through building your own Internet Radio using the powerful ESP32-S3 microcontroller. You'll explore the hardware architecture, software configuration, and assembly process to create a compact, feature-rich desktop internet radio.
Key Takeaways
- ESP32-S3 as Core: The project leverages the ESP32-S3 (specifically the N16R8 variant) for robust Wi-Fi connectivity, internet radio streaming, and efficient handling of the user interface.
- Integrated Hardware Design: It combines an OLED display for station information, a rotary encoder for intuitive navigation and volume control, and a MAX98357 I2S amplifier for high-quality digital audio output.
- Custom PCB & 3D-Printed Enclosure: A custom-designed PCB simplifies wiring and assembly, while a sleek, 3D-printed enclosure provides a professional, compact, and aesthetically pleasing finish.
- Arduino Firmware for Seamless Operation: The device is controlled by Arduino firmware, enabling automatic Wi-Fi connection, streaming of predefined stations, and easy customization of the station list.
Detailed Overview
Hardware Design
The heart of this internet radio is the ESP32-S3, which manages the Wi-Fi connection, streams internet radio, and controls the user interface. For optimal performance, the ESP32-S3 N16R8 variant is recommended due to its 16 MB of Flash and 8 MB of PSRAM. This ample memory is crucial for audio buffering, firmware storage, and future feature expansion, ensuring smooth and reliable operation.

Audio is transmitted digitally via the I2S interface to a MAX98357 amplifier, which directly drives a 4Ω speaker. This digital approach effectively eliminates analog noise, resulting in clear and efficient audio playback. The OLED display, communicating via I2C, provides essential information such as the current radio station and connection status. A rotary encoder offers an intuitive way to navigate between saved stations and adjust the playback volume.
PCB Design
To move beyond a breadboard prototype and achieve a compact, clean build, a dedicated PCB was designed using EasyEDA. The design accommodates the ESP32-S3 development board, along with sufficient space for the amplifier, display connector, rotary encoder, and power input.
Initial breadboard prototype for circuit verification.
Schematic design in EasyEDA.
Custom PCB layout designed for the internet radio.
After finalizing the design, Gerber files were exported and sent to JLCPCB for manufacturing. The fabricated PCBs significantly streamlined the assembly process compared to a hand-wired prototype. To further simplify assembly, header connectors were used for the ESP32-S3, MAX98357 I2S amplifier, OLED display, and rotary encoder. A 5 V screw terminal was also included for the power input.
![Fabricated PCBs For DIY WiFi Internet Radio](https://cdn.sanity.io/images/ukehsvrw/production/d5cf686900196