ESP32 alarm clock with buzzer, snooze and temperature readout

Oct 31, 2026 Last reply: 3 hours ago 4 Replies
Jump to replies (4)

When the alarm time arrives, the OLED flips its colors, flashes a wake up message along with the time, and the passive piezo buzzer lets out a steady, high pitched beep. Pressing the lower of the two tactile buttons stops the noise and brings the normal clock face back. The same little screen also counts up by seconds and shows the room temperature in a top bar.



The hardware is refreshingly simple: an ESP32 driving a 0.96 inch OLED, an LM35DZ for the temperature, the buzzer and two pushbuttons, all linked with jumper wires on a breadboard next to a laptop. The buttons open a configuration menu with separate entries for the alarm hour and the alarm minute, and saving a time switches the alarm on, shown as ON, before the display returns to the clock view.



What stands out to me is that the alarm flow is complete and demonstrably working. At 11:40:00 the inversion and flashing happened exactly on schedule, and the screen read 11:40:05 after the buzzer was silenced. A snooze feature is included as well, and the full code has been published on GitHub. The maker also said the idea was their own but that the code was written with AI, which strikes me as an honest way to work on a hobby build.



One thing is left open: the temperature reading in the top bar is labeled OpenWeather, yet nothing explains why a value coming from an LM35DZ sensor carries that label. That is the loose end I would most like to see cleared up.


Nice build. I am curious about the snooze side of it. When the buzzer is going off, how does snooze actually get triggered? Is it one of the two pushbuttons, or a separate action, and does the alarm come back after a fixed delay? The menu only covers hour and minute, so I would love to know how that part behaves.

The choice to invert the screen colors and flash the time at alarm moment seems clever to me. It uses only the display the build already has, no extra LEDs or hardware, and it is hard to miss even from across a room. The trade-off is that a full screen flash every morning could feel harsh compared to a soft glow, but for an alarm that is arguably the point.

Since the whole thing currently lives on a breadboard with jumper wires, a natural next step would be moving it into a small permanent enclosure with the buttons and buzzer mounted on the outside. It would make the clock usable on a nightstand instead of only next to a laptop, and the wiring is simple enough that it should be a short job.

On the snooze question: the maker has not said how it works. What is known is that the project includes a snooze feature, that two tactile pushbuttons are used, and that pressing the lower one silences the buzzer and restores the clock display. Whether snooze is tied to that button or to something else has not been described, so we can only wait for the maker to fill that in.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required