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 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.
| Version | Description |
|---|
| V3.1-alpha | Capture Schematic |
| V3.2-alpha | Design Main PCB |
| V3.3-alpha | Design Light PCB |
| V3.4-alpha | Design Button PCB |
| V3.5-alpha | Design and Fabricate Enclosure |
| V3.6-alpha | Solder and Assemble |
| V3.7-alpha | Test Hardware and Document |
| V3.8-alpha | Program Inputs and Outputs |
| V3.9-alpha | Implement App Infrastructure |
| V3.10-alpha | Develop Alarm App |
| V3.11-alpha | Develop Light App |
| V3.12-alpha | Develop USB App |
| V3.13-alpha | Develop Settings App |
| V3.14-alpha | Implement WiFi, NTP Time Sync and Settings Portal |
| V3.0-release | Initial Release (Document, Test and Fix Bugs) |
Circuitry
Schematics
Main PCB
Button PCB
Light PCB
PCB Design
Main PCB
Main PCB Front and Back
Button PCB
Button PCB Front and Back
Light PCB
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 and Back
Main PCB Soldered
Button PCB
Button PCB Front and Back
Button PCB Soldered
Light PCB
Light PCB Front and Back
Light PCB Soldered
Enclosure
CAD Enclosure
Assembled Enclosure
Code
Documentation
View the Doxygen documentation for this project here.
How to Add a New App
- Copy the
TemplateApp.h and TemplateApp.cpp files, changing their names to reflect your app.
- Change the header guards, file headers and and include statements to the new file names.
- Do a find and replace for the phrase "TemplateApp" replacing it with the name of your app (both files).
- Add code to each of the functions.
- Include the header file in the main program.
- Instantiate the new
____App object.
- Increment the
noOfApps variable.
- 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