DIY ESP32 Smart Alarm Clock: A Budget-Friendly Guide

DIY ESP32 Smart Alarm Clock: A Budget-Friendly Guide

Project Name: ESP32 S3 | Campus Life Assistant 7

Project Author: lxy0423

Project Description

DIY an alarm clock is common, but DIY a “smart alarm clock” with features like Bilibili interaction, Xiaomi bracelet interaction, and course schedule management becomes interesting.

DIY ESP32 Smart Alarm Clock: A Budget-Friendly Guide

The production cost of this smart alarm clock is around 110 yuan, based on ESP32-S3. It is a device that makes campus life more fulfilling.

It’s better to watch the video & article together~
Design Diagram
DIY ESP32 Smart Alarm Clock: A Budget-Friendly Guide
Schematic 1
DIY ESP32 Smart Alarm Clock: A Budget-Friendly Guide
Schematic 2
DIY ESP32 Smart Alarm Clock: A Budget-Friendly Guide
PCB
Function Description
1. Basic Functions
  • Weather: Includes the last 120 hours of weather, recent 2 hours minute-level precipitation, current weather description, real-time calculation of the lunar phase;

  • Time: Accurate to seconds, and can be offset by seconds;

  • Connect WiFi: Supports custom campus network authentication information;

  • Image viewer;

  • USB card reader;

  • Lua interpreter;

  • TF card file manager;

  • Battery power management;

  • Optional daily password verification.

2. New Media Functions
  • Music playback (I2S);

  • Music download;

  • Bilibili video playback (mpeg1 stream);

  • View Bilibili follower count, like count, and private message count (requires QR code login);

3. Campus Functions
  • Course schedule management, class reminder;

  • Thermal printing of computer screen, recording;

  • Remote control computer to execute cmd;

  • Text editor, supports external keyboard.

4. Xiaomi Bracelet Interaction Function
  • Communication with Xiaomi Bracelet 4: Includes setting alarms, setting reminders, synchronizing weather, synchronizing time, and provides an API to get step count, heart rate, etc.

  • Supports third-party voice assistants for Xiaomi Bracelet 4: Requires Baidu Smart Cloud’s voice recognition and UNIT’s API—KEY, anyway voice recognition can be tried for 180 days, hehe

About Components

If you want to replicate it, be sure to read the two chapters “About Components” and “About Development”.

1. AXP192

Buy components according to the schematic. But note that AXP192 may not be available exactly the same, because the one I bought is a customized refurbished one.

If you buy a different one, the solution is not difficult, as long as the version you bought has at least one DC-DC default output of 3.3V, then slightly modify the power circuit.

Modification idea: Connect it to the 3V3 network and slightly modify the PCB. Because both of its two DCDCs are exposed, if you don’t want to redo the sample, you can carefully cut off the outputs of the two DCDCs and swap them.

2. DS3231

DS3231 is indeed relatively expensive, I bought it about three years ago, it was six yuan for one module.If you want a cheaper RTC, I recommend a model: PCF8563. This one costs one yuan.

It is recommended to prepare two or three FPC sockets for both upper and lower connections.

About Development
1. Develop New Functions
After packaging, it is very easy to add new functions to the project, just copy a template from src/apps and edit it. The system will automatically recognize your new App and add it to the list. App entry, switching, and returning, as well as scr creation and destruction are all automatically managed by appManager, developers do not need to consider, just need to write setup and loop functions, just as simple as developing a new Arduino project.AppManager provides a scr, where you can directly write GUI without worrying about affecting other Apps.
For specific development methods, see the README in the same directory.
2. Reference and Public Sharing

DIY software ecology is always a problem.

If you develop a new App, or make some optimizations to this project and want to share with everyone… please submit a Pull Request on gitee. No matter how big or small, as long as it works and does not have the same name as other Apps, I will consider merging.If there is a conflict, I can assist in resolving it.

Attachment Download

If you have compilation issues, circuit issues, or other problems, you can privately message the author in the original project or on Bilibili.

You can click the lower left corner of the text toRead the Original Text to view the original project.

DIY ESP32 Smart Alarm Clock: A Budget-Friendly Guide

If you are watching, please like me!
DIY ESP32 Smart Alarm Clock: A Budget-Friendly Guide
Click here to view the original project

Leave a Comment

×