Skip to the content
2 layers42.5 × 26.8 mmButton PCB, the printed circuit board in 3D

This is the third version of the "Sunrise Alarm Clock" project. The first version used an Arduino Mega and an LCD keypad shield. The second version used a Wemos D1 mini (ESP8266) and 0.96" OLED on a single custom PCB.

Size
42.5 × 26.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
4
Nets
5
Pads
14
Tracks, vias
22, 0
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
7 Sep 2023
Updated
25 Feb 2024

Overview

Button PCB is an open-source printed circuit board by SeanP2001, from the SeanP2001/Sunrise_Alarm_Clock_V3 repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 42.5 × 26.8 mm with 4 parts on 5 nets, routed with 22 tracks and 0 vias.

It belongs with the lEDs and displays boards of this library.

README

README.md

Sunrise Alarm Clock V3

Table of Contents

Introduction

This is the third version of the "Sunrise Alarm Clock" project. The first version used an Arduino Mega and an LCD keypad shield. The second version used a Wemos D1 mini (ESP8266) and 0.96" OLED on a single custom PCB. This design was fully functional but it did not look like an alarm clock. I started version 3 with the aim of making the alarm look more premium.

Alarm V1 Alarm V2 Alarm V3 Concept

Alarm V1, Alarm V2 and Alarm V3 Concept

This project was sponsored by PCBWay. To order high-quality, custom PCBs go to PCBWay.com

Brief

The alarm needed to:

  • Tell the time
  • Use a real-time clock (RTC) to keep the time
  • Use an NTP server to update the time periodically
  • Include a larger, 1.5" OLED
  • Include three capacitive touch buttons
  • Include two timed USB ports
  • Include a bright ringlight on the clock face
  • Include a buzzer
  • Have a premium feel

Development Roadmap

The following roadmap outlines the planned milestones for the project. Each step includes testing and documenting.

VersionDescription
V3.1-alphaCapture Schematic
V3.2-alphaDesign Main PCB
V3.3-alphaDesign Light PCB
V3.4-alphaDesign Button PCB
V3.5-alphaDesign and Fabricate Enclosure
V3.6-alphaSolder and Assemble
V3.7-alphaTest Hardware and Document
V3.8-alphaProgram Inputs and Outputs
V3.9-alphaImplement App Infrastructure
V3.10-alphaDevelop Alarm App
V3.11-alphaDevelop Light App
V3.12-alphaDevelop USB App
V3.13-alphaDevelop Settings App
V3.14-alphaImplement WiFi, NTP Time Sync and Settings Portal
V3.0-releaseInitial Release (Document, Test and Fix Bugs)

Circuitry

Schematics

Main PCB

Button PCB

Light PCB

PCB Design

Main PCB
Main PCB Front Main PCB Back

Main PCB Front and Back

Button PCB
Main PCB Front Main PCB Back

Button PCB Front and Back

Light PCB
Main PCB Front Main PCB Back

Light PCB Front and Back

Soldering

I was really impressed by the quality of the PCBs sent by PCBWay. To order high-quality, custom PCBs go to PCBWay.com.

Main PCB
Main PCB Front Main PCB Back

Main PCB Front and Back

Main PCB Soldered

Button PCB
Main PCB Front Main PCB Back

Button PCB Front and Back

Button PCB Soldered

Light PCB
Main PCB Front Main PCB Back

Light PCB Front and Back

Light PCB Soldered

Enclosure

CAD Enclosure

Alarm Enclosure Front Alarm Enclosure Alarm Enclosure Back
Alarm Enclosure Open Front Alarm Enclosure Open Alarm Enclosure Open Front

Assembled Enclosure

Alarm V1 Alarm V2

Code

Documentation

View the Doxygen documentation for this project here.

How to Add a New App

  1. Copy the TemplateApp.h and TemplateApp.cpp files, changing their names to reflect your app.
  2. Change the header guards, file headers and and include statements to the new file names.
  3. Do a find and replace for the phrase "TemplateApp" replacing it with the name of your app (both files).
  4. Add code to each of the functions.
  5. Include the header file in the main program.
  6. Instantiate the new ____App object.
  7. Increment the noOfApps variable.
  8. Add a reference to the new app object at the next index of the apps array. e.g.apps[i] = &____App;.

Further Work

In future I would like to;

  • Change the design to not use vinyl as it is difficult to get a perfect result using it.
  • Add software functions:
    • Wake up games
    • Daily weather forecast
    • Daily calendar events
    • Log sleep and wake times
    • Mood tracker
    • Habit tracker

Parts

4
QtyValueFootprintReferences
1Conn_01x05_MaleConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ1
1LEFT_BUTTONTTP223:TTP223J4
1MIDDLE_BUTTONTTP223:TTP223J3
1RIGHT_BUTTONTTP223:TTP223J2

More from SeanP2001/Sunrise_Alarm_Clock_V3

2
  • 2 layers70 × 70 mmLight PCB, the printed circuit board in 3D

    Light PCB

    SeanP2001/Sunrise_Alarm_Clock_V3

    This is the third version of the "Sunrise Alarm Clock" project. The first version used an Arduino Mega and an LCD keypad shield. The second version used a Wemos D1 mini (ESP8266) and 0.96" OLED on a single custom PCB.

    19 parts1GPL-3.0
  • 2 layers70 × 56 mmMain PCB, the printed circuit board in 3D

    Main PCB

    SeanP2001/Sunrise_Alarm_Clock_V3

    This is the third version of the "Sunrise Alarm Clock" project. The first version used an Arduino Mega and an LCD keypad shield. The second version used a Wemos D1 mini (ESP8266) and 0.96" OLED on a single custom PCB.

    12 parts1GPL-3.0

Similar boards

  • 2 layers18.5 × 26 mm24g2usb rp2350zero, the printed circuit board in 3D

    24g2usb rp2350zero

    joypad-ai/joypad-os

    Universal controller firmware for building adapters, dongles, and custom controllers.

    4 parts1.7kApache-2.0
  • 2 layers116 × 33 mm966595-1 and 963356-1, the printed circuit board in 3D

    966595-1 and 963356-1

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    4 parts1.2k
  • 2 layers19 × 18 mmDaughter board, the printed circuit board in 3D

    Daughter board

    hackclub/OnBoard

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

    4 parts915
  • 2 layers24.8 × 24.8 mmNrf24 breakout, the printed circuit board in 3D

    Nrf24 breakout

    tardate/LittleArduinoProjects

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

    4 parts803MIT
  • 2 layers26 × 20 mmCap chain, the printed circuit board in 3D

    Cap chain

    drandyhaas/KiCadRoutingTools

    A set of Python/Rust tools to aid routing in KiCad

    4 parts744MIT
  • 2 layers34.7 × 20 mmXG Station Power MSI, the printed circuit board in 3D

    XG Station Power MSI

    osy/XG_Mobile_Station

    Open source eGPU dock for ROG Ally and ROG Flow

    4 parts712CC-BY-4.0
  • 2 layers20.3 × 24.5 mmJack power input, the printed circuit board in 3D

    Jack power input

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    4 parts546MIT

Questions

How big is the Button PCB PCB?

It measures 42.5 × 26.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Button PCB use?

4 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 Button PCB KiCad files?

From the SeanP2001/Sunrise_Alarm_Clock_V3 repository on GitHub, at the commit this page was made from: the board is PCBs/Button_PCB/Button_PCB.kicad_pcb and its schematic PCBs/Button_PCB/Button_PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Button PCB design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).