Skip to content

About

ESP32-C3 Alarm Clock + Web Server + Async via Embassy

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Rusty Alarm Clock

An alarm clock using an ESP32-C3 written with Rust and Embassy

This is a mirror

Main repository is hosted at CodeBerg

Picture of the Circuit

WIP

This project is still a work in progress

Highlights

  • Uses external RTC to keep time and to set alarms
  • Connects to (S)NTP to correct RTC time
  • 16x2 LCD Screen
  • Remote control via Web Server
  • [WIP] Remote control via Bluetooth
  • [WIP] Volume control via PWM

Components Used

  • ESP32-C3 Mini
  • DS3231 RTC Module
  • Breadboard Power Supply
  • IRLZ44N Logic-Level MOSFET
  • 3-12V Active Buzzer
  • Flyback diode
  • A10K Potentiometer
  • A bunch of resistors and wires (ofc)

Learning Resources

The documentation and resources I had to read while making this project is honestly quite fragmented and all over the place. So here are the quick links

Honestly it's a lot of going back and forth between docs.rs and the GitHub examples of the various crates. It's not uncommon for me to have at least 30+ tabs open. I went back and forth between:

ESP-HAL

Wifi & BLE

DHCP

DNS

(S)NTP (Simple Network Time Protocol)

Sync our alaram clock to correct time

Web Server

DS3231

Our nifty external RTC module

Time

Timezones are pain

It seems rather daunting but I was able to do most of the wireless features in 2 days. From zero knowledge about GATT, interfaces, SNTP and stacks, to barely enough to use them.

About

ESP32-C3 Alarm Clock + Web Server + Async via Embassy

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages