Skip to the content
4 layers75 × 75 mmRadio, the printed circuit board in 3D

Custom embedded clock radio with Raspberry Pi Pico W, MicroPython, 4-layer PCB, FM radio, OLED display, and 3D-printed enclosure.

Size
75 × 75 mm
Copper layers
4
Thickness
1.6 mm
Parts
29
Nets
56
Pads
128
Tracks, vias
209, 0
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
1 Oct 2026
Updated
1 Oct 2026

Overview

Radio is an open-source printed circuit board by khilario, from the khilario/embedded-clock-radio repository on GitHub. It is a 4-layer board of 75 × 75 mm with 29 parts on 56 nets, routed with 209 tracks and 0 vias.

It is built around the LM386. Its parts include 9 resistors, 8 capacitors, 4 switches and 2 ICs. It belongs with the lEDs and displays and radio and wireless boards and the RP2040 boards of this library.

Main components

1

README

README.md

Embedded Clock Radio

A custom embedded clock radio built around the Raspberry Pi Pico W, featuring FM radio playback, alarm functionality, an OLED user interface, rotary encoder controls, a custom 4-layer PCB, and a 3D-printed enclosure.

This project was completed for ECE 299 at the University of Victoria as a two-person engineering design project.

Finished Embedded Clock Radio

Project Overview

The goal of this project was to design and build a fully integrated clock radio using a Raspberry Pi Pico W running MicroPython.

The system combines embedded firmware, analog audio circuitry, PCB design, user-interface development, and mechanical enclosure design into a single working device.

Key Features

  • FM radio tuning and playback
  • 12-hour and 24-hour time display
  • Configurable alarm functionality
  • Snooze and alarm cancellation
  • OLED user interface
  • Rotary encoder control for volume and radio tuning
  • RDS station and track information
  • Custom 4-layer PCB
  • LM386-based audio amplification
  • Custom 3D-printed enclosure

Hardware

The clock radio is built around the following components:

  • Raspberry Pi Pico W (RP2040)
  • RDA5807M FM radio receiver
  • SSD1306 1.3" OLED display
  • LM386 audio amplifier
  • 2 W, 8 Ω speaker
  • 2 rotary encoders
  • Push buttons
  • Custom 4-layer PCB

Communication Interfaces

  • I²C — communication with the RDA5807M FM receiver
  • SPI — communication with the SSD1306 OLED display
  • GPIO — rotary encoders and push-button inputs

PCB Design

The PCB was designed in KiCad as a compact 4-layer board.

The design separated power, ground, digital control, and analog audio signals across multiple layers to improve routing and reduce interference.

The board was fabricated externally and manually assembled using both SMD and through-hole components.

PCB

KiCad PCB 3D Render Fabricated PCB

Circuit Schematic

Clock Radio Circuit Schematic

PCB Highlights

  • 4-layer PCB layout
  • Dedicated power and ground routing
  • Mixed analog and digital circuitry
  • RDA5807M radio integration
  • LM386 audio amplifier stage
  • Raspberry Pi Pico W integration
  • Test points for debugging and validation

Firmware

The system firmware was written in MicroPython and runs on the Raspberry Pi Pico W.

The firmware handles:

  • Real-time clock functionality
  • FM radio tuning
  • Volume control
  • Alarm configuration
  • Snooze and cancellation
  • Rotary encoder input
  • OLED menu navigation
  • RDS station and song information

The main firmware and supporting drivers are located in the firmware directory.

Testing and Debugging

The design was initially prototyped and validated on a breadboard before being transferred to the custom PCB.

Testing and debugging included:

  • Oscilloscope measurements
  • Power-supply noise reduction
  • Rotary encoder debouncing
  • FM tuning and audio testing
  • OLED display troubleshooting
  • PCB rework after identifying display pin-mapping issues
  • Full hardware and firmware integration testing

Enclosure Design

The enclosure was designed in SolidWorks and 3D printed in PLA.

SolidWorks Clock Radio Enclosure

The enclosure includes:

  • OLED display opening
  • Rotary encoder controls
  • Speaker opening
  • USB/power access
  • Internal PCB mounting features
  • Animal-themed exterior design

Design files are available in the enclosure directory.

Repository Structure

text
embedded-clock-radio/
├── firmware/
│   ├── radio.py
│   ├── ssd1306.py
│   ├── rotary.py
│   ├── rotary_irq_rp2.py
│   └── development/
├── hardware/
│   ├── kicad/
│   └── gerbers/
├── enclosure/
├── images/
├── docs/
│   └── ECE299_Final_Report.pdf
└── README.md

My Contributions

This project was completed by a two-person team. My primary contributions included:

  • Leading the schematic and PCB design in KiCad
  • Designing the 4-layer PCB layout
  • Testing FM tuning, audio output, and OLED feedback
  • Designing the enclosure in SolidWorks
  • Developing UI functionality for time setting and display formatting
  • Hardware debugging, testing, and final system integration

Technologies Used

  • KiCad
  • SolidWorks
  • MicroPython
  • Raspberry Pi Pico W
  • RP2040
  • I²C
  • SPI
  • Soldering
  • Oscilloscope testing
  • PCB design
  • 3D printing

Documentation

The full project report contains additional details on the design process, PCB development, testing, and project decisions.

View the ECE 299 Final Report

Parts

29
QtyValueFootprintReferences
710KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR3, R4, R5, R6, R7, R8, R9
3470uFCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC2, C6, C8
20.1uFCapacitor_THT:C_Disc_D3.0mm_W1.6mm_P2.50mmC5, C7
210uFCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC1, C4
22kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalRpullup1, Rpullup2
2Rotary EncoderRotary_Encoder:RotaryEncoder_Alps_EC12E-Switch_Vertical_H20mmSW1, SW2
2SW_PushButton_Switch_THT:SW_PUSH_6mmSW3, SW4
10.05uFCapacitor_THT:C_Disc_D3.0mm_W1.6mm_P2.50mmC3
11.2KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2
110Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
1AntennaTestPoint:TestPoint_Pad_D1.0mmAE1
1LM386Package_DIP:DIP-8_W7.62mmU1
1OLED DisplayECE:OLED_Display_1.3DISP1
1RDA5807M_ModuleECE:RDA5807M_Module_THU2
1RaspberryPi_Pico_WECE:RPi_Pico_THA1
1SpeakerTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_HorizontalLS1

Similar boards

  • 2 layers152 × 88 mmRFBitBangSMT, the printed circuit board in 3D

    RFBitBangSMT

    profdc9/RFBitBanger

    A QRP digital transceiver created from readily available parts for off-the-grid maintenance

    271 parts222
  • 2 layers90 × 140 mmDrumkid, the printed circuit board in 3D

    Drumkid

    mattybrad/drumkid

    Version 4 was the first successful working design, with full code, schematics, Gerbers, etc available on GitHub.

    70 parts137
  • 2 layersLM80C R6, the printed circuit board in 3D

    LM80C R6

    leomil72/LM80C

    A Z80-based homebrew computer withTMS9918, AY-3-8910, Z80 CTC, Z80 PIO, and Z80 SIO

    153 parts123GPL-3.0
  • 2 layers145.3 × 44.5 mmScout, the printed circuit board in 3D

    Scout

    oskitone/scout

    3D-printed, Arduino-compatible, 17-key mono synth. Squeeeee!

    48 parts114
  • 2 layers184 × 114.8 mmPoly555, the printed circuit board in 3D

    Poly555

    oskitone/poly555

    The POLY555 is a polyphonic, analog, square wave synth based on the 555 timer chip.

    262 parts93
  • 4 layers223.3 × 120.1 mmISA FPGA v2, the printed circuit board in 3D

    ISA FPGA v2

    robfinch/Cores

    Cores ===== RTF's Cores Use at your own risk. Welcome to my galaxy of cores. Contained in the directories are IP cores, source code for digital circuits.

    132 parts78
  • 2 layers101.6 × 137.4 mmOpenxcvr, the printed circuit board in 3D

    Openxcvr

    dawsonjon/OpenXcvr

    Cost Effective HF transceiver based on max1000 FPGA module

    155 parts38MIT
  • 2 layers104.1 × 73.7 mmIsa opl2, the printed circuit board in 3D

    Isa opl2

    skiselev/isa-opl2

    ISA OPL2 Card

    61 parts36

Questions

How big is the Radio PCB?

It measures 75 × 75 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Radio use?

29 parts, built around the LM386. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Radio KiCad files?

From the khilario/embedded-clock-radio repository on GitHub, at the commit this page was made from: the board is hardware/kicad/Radio.kicad_pcb and its schematic hardware/kicad/Radio.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Radio design in my own project?

Its repository states no licence, so its author keeps all rights: ask khilario before reusing the design.