Skip to the content
2 layers107 × 75 mmMagical, the printed circuit board in 3D

A custom-built alarm clock featuring an ST7789 display, XIAO ESP32-C3 microcontroller, 4 physical buttons, and a buzzer — designed from scratch as part of Hack Club's BLARE program. Built with KiCad (schematic + PCB), Fusion 360 (enclosure), and Arduino IDE (firmware).

Size
107 × 75 mm
Copper layers
2
Thickness
1.6 mm
Parts
11
Nets
20
Pads
61
Tracks, vias
59, 8
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
26 Sep 2026
Updated
22 Oct 2026

Overview

Magical is an open-source printed circuit board by DeepanshGu, from the DeepanshGu/Magical-Alarm-Clock repository on GitHub. It is a 2-layer board of 107 × 75 mm with 11 parts on 20 nets, routed with 59 tracks and 8 vias.

Its parts include 4 switches, 1 IC and 1 connector. It belongs with the lEDs and displays boards and the ESP32 and RISC-V boards of this library.

README

README.md
clockfrontview Screenshot 2026-09-21 210639

Magical Alarm Clock

A custom-built alarm clock featuring an ST7789 display, XIAO ESP32-C3 microcontroller, 4 physical buttons, and a buzzer — designed from scratch as part of Hack Club's BLARE program.

Built entirely with KiCad (schematic + PCB), Fusion 360 (enclosure), and Arduino IDE (firmware).

Features

  • Real-time clock display on a 284x76 ST7789 TFT screen
  • Set the current time manually using onboard buttons (fully offline — no WiFi/NTP required)
  • Set, enable, and disable a daily alarm
  • Buzzer sounds when the alarm triggers, silenced with a button press
  • Fully custom 2-layer PCB — no breadboard or dev-kit shield required
  • 3D-printable enclosure designed in Fusion 360

Hardware

ComponentNotes
Seeed XIAO ESP32-C3Main microcontroller
ST7789 TFT Display284x76 resolution (unusual — not the standard 240x320)
4x Push ButtonsMode / Increment / Decrement / Alarm toggle
BuzzerAlarm sound output
Custom PCB2-layer, designed in KiCad

Bill of Materials

PartQtyUnit Price (USD)LinkNotes
Seeed XIAO ESP32-C31$5.49Seeed StudioMain microcontroller
2.25" TFT 76x284 SPI Display (ST7789P3)1$2.50BuyDisplayNon-standard resolution match
Tactile Push Button Switch 6x6mm (pack of 20)1$2.50AdafruitOnly 4 needed per clock; pack covers spares
5V Piezo Buzzer1$0.95AdafruitBreadboard-friendly; no driver circuit needed
M3 Brass Heat-Set Inserts (pack of 50)1$5.95AdafruitOnly 4 needed per clock; pack covers spares
M3 Screws (6-8mm length)4~$0.10 each—Widely available individually at hardware store
Custom PCB1~$8.20 (for 5)—JLCPCB quote for 2-layer 75x107mm board
Total Estimated Cost—~$25.99—Includes single-unit parts & bulk packs/PCBs

Repository Structure

Building the PCB

  1. Open the KiCad project files in the /pcb folder.
  2. Gerber and drill files are included for direct upload to a fabrication service (e.g. JLCPCB).
  3. Board is a standard 2-layer FR-4 PCB. Screenshot 2026-10-22 150021

Firmware Setup

  1. Install Arduino IDE.
  2. Add ESP32 board support via Boards Manager.
  3. Install these libraries via Library Manager:
    • Adafruit ST7735 and ST7789
    • Adafruit GFX
  4. Open /firmware/magical_alarm_clock.ino.
  5. Update the GPIO pin definitions at the top of the file to match your wiring.
  6. Select XIAO_ESP32C3 as the board, choose the correct COM port, and upload.

Enclosure

The case was designed in Fusion 360 around the PCB and display's real dimensions, with support posts for heat-set inserts and a cutout for the display and buttons. STEP files are available in /enclosure.

Credits

  • Built following the BLARE guide by Liam Newbill, part of Hack Club's Stardance program.
  • Designed and built by Deepansh Gupta.

License

No license added yet.

Parts

11
QtyValueFootprintReferences
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
4SW_PushButton_Switch_Keyboard:SW_Cherry_MX_1.00u_PCBSW1, SW2, SW3, SW4
1BuzzerBuzzer_Beeper:Buzzer_12x9.5RM7.6BZ1
1Conn_01x08_PinConnector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJ1
1XIAO-ESP32-C3-SMDRF_Module:MCU_Seeed_ESP32C3U1

Similar boards

  • 2 layers60 × 30 mmController, the printed circuit board in 3D

    Controller

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    11 parts3kApache-2.0
  • 2 layers103 × 30.5 mmTS Front Endcap, the printed circuit board in 3D

    TS Front Endcap

    EEVengers/ThunderScope

    ThunderScope GitHub Repo

    11 parts1.3kMIT
  • 2 layers26 × 30 mmExpansion Card, the printed circuit board in 3D

    Expansion Card

    FrameworkComputer/ExpansionCards

    Reference designs and documentation to create Expansion Cards for the Framework Laptop

    11 parts1.1kCC-BY-4.0
  • 2 layers53.9 × 23.2 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    11 parts1kGPL-3.0
  • 2 layers10 × 20 mm2 connector Sensor Board, the printed circuit board in 3D

    2 connector Sensor Board

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    11 parts915
  • 2 layersFet module, the printed circuit board in 3D

    Fet module

    ByteWelder/Decktility

    A handheld PC

    11 parts855CC-BY-SA-4.0
  • 2 layers47 × 33 mmSevensegment led display module, the printed circuit board in 3D

    Sevensegment led display module

    tardate/LittleArduinoProjects

    a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

    11 parts803MIT
  • 2 layers42.5 × 36.8 mmDevboard, the printed circuit board in 3D

    Devboard

    basilfx/TRADFRI-Hacking

    Hacking IKEA TRÅDFRI products, such as light bulbs, window blinds and other accessories.

    11 parts743CC-BY-4.0

Questions

How big is the Magical PCB?

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

What parts does the Magical use?

11 parts. 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 Magical KiCad files?

From the DeepanshGu/Magical-Alarm-Clock repository on GitHub, at the commit this page was made from: the board is pcb/magical.kicad_PCB.kicad_pcb and its schematic schematic/Magical Schematic.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Magical design in my own project?

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