A simple alarm clock implemented using an ESP32 micro controller.
Helmut Pozimski 49588f8529 api: Implement OPTIONS request to allow CORS preflight checks to succeed | пре 1 година | |
---|---|---|
Fritzing | пре 1 година | |
LICENSES | пре 2 година | |
main | пре 1 година | |
.gitignore | пре 1 година | |
CMakeLists.txt | пре 1 година | |
README.md | пре 1 година |
This repository contains a small project which uses an ESP32 microcontroller together with a DS3231 clock, a tm1637 display module a piezo buzzer and a button to implement na alarm clock that occasionally synchronizes time over NTP, displays the current time coverted to a configurable local timezone and beeps to wake you up at a time which can be configured using a REST API. It is implemented using the ESP IDF SDK.
Download the ESP IDF SDK from the github project either as a release tarball or clone the repository. Follow the instructions from the project README file to install it and ensure that you can successfully compile software that uses the SDK.
To execute this project, you will need the following components:
Wire the SDA and SCL pins of the DS3231 module to one of the GPIO pins each as well as the CLK and DIO pins of the TM1637 module. The example below uses the following PIN mapping:
DS3231:
TM1637:
Piezo buzzer:
Button:
All configuration variables that are available are listed in the file main/configuration.h
. You should first fill in the blanks there and define your wifi configuration, time zone and the pins the modules are connected to.
After everything is set up, the program can be compiled with the make
command and be flashed to the microcontroller by calling the flash
target.
This project is licensed under the GNU General Public License, Version 2.