Digital Alarm Clock With Snooze Feature

by suman10 in Design > Software

17 Views, 0 Favorites, 0 Comments

Digital Alarm Clock With Snooze Feature

Alarm clocks are one of the most common examples of time-based automation systems. In this project, students will learn how computers compare real-time data with user-defined values to perform specific actions.

This project teaches students how to create an interactive Alarm Clock using PictoBlox. Users can set the alarm time (Hours, Minutes, and Seconds), and the system continuously monitors the current time. When the current time matches the alarm time, an alarm sound is triggered. The project also includes a Snooze feature that delays the alarm by a specified number of minutes.


Supplies

• PictoBlox installed on the computer

• Basic understanding of variables and conditional statements

• Speaker or headphone connected to the system

Programming Mode: Block Coding

Extensions/Library Used:text to speech

Implementation

How It Works

The user sets an alarm by entering the desired Hour, Minute, and Second values. A forever loop continuously checks the current system time. Whenever the current time matches the stored alarm values, an alarm sound is played.


Variables Used

• HH – Stores Alarm Hour

• MM – Stores Alarm Minute

• SS – Stores Alarm Second

• SNOOZE – Stores Snooze Duration

Alarm Initialization

in this step Alarm is Initialising by adding green flag and seting the location on stage . after that we inform through voice of tenor about the " the alarm"

Setting the Alarm

  1. To set the alarm and ringing the alarm ,Create variables and ask the user to enter Hour, Minute, and Second values.
  2. Display the configured alarm time on screen.


Tracking the Time

create Minute , hours and seconds needle and assigned to move according to real time zone


Output & Results

Output & Results

• Custom alarm times can be set.

• Alarm rings automatically.

• Snooze delays the alarm.

• Alarm can be stopped manually.


Conclusion

This project demonstrates variables, user input, conditional logic, and real-time monitoring to create a practical automation system.