Arduino based Automatic Bell With Adjustable Timings

Check out our latest products

Added to wishlistRemoved from wishlist 0
Add to compare
(2-Way Audio & PIR Detection) Dual Antennas Outdoor Wireless Security Camera System 5.5MP Wi-Fi Video Surveillance
Added to wishlistRemoved from wishlist 0
Add to compare
$399.99
Added to wishlistRemoved from wishlist 0
Add to compare
2 | FPV Goggles for All Camera Drones | Unibody Lens | HD FPV Goggles | Compatible Versatile Skyview FPV Drone Goggles | Clear Immersive View | All GPS Camera Drone
Added to wishlistRemoved from wishlist 0
Add to compare
$179.00

This proposed Arduino-based automatic bell device is an electronic system that rings bells at predefined times without manual intervention.

It is built around an Arduino Uno, which is programmed to control a buzzer or electric bell based on a preset schedule, eliminating the need for manual ringing.

An RTC (real-time clock) module ensures precise timekeeping, allowing administrators to set and adjust bell timings as required. An LCD can be added to show the current time and upcoming bell schedules. This system improves efficiency, maintains a disciplined routine, and removes dependency on manual operation.

– Advertisement –

Table 1 lists the components required to build this device, while Fig. 1 shows the authors’ prototype.

Table 1: Bill of Materials
Components Quantity
Arduino Uno R3 (MOD1) 1
DS3231 RTC 1
16×2 LCD display with I2C (MOD2) 1
4×4 matrix keypad 1
5V SPDT relay 1
9V, 1A adaptor for power supply to the Arduino board 1
230V AC call bell 1
Buzzer 1
Jumper wires and other wires As required
Automatic Bell with Adjustable Timing
Fig. 1: Authors’ prototype of Automatic Bell with Adjustable Timing

Circuit and Working

Fig. 2 shows the circuit diagram of the automatic school bell. It is built around Arduino Uno R3, 16×2 LCD display with I2C (MOD1), DS3231 RTC, 4×4 matrix keypad, 5V SPDT relay, 230V AC call bell, and a few other essential components. A 9V, 1A adaptor is used to supply power to the Arduino Uno after uploading the source code.

– Advertisement –

Circuit Diagram for Automatic Bell with Adjustable Timing
Fig. 2: Circuit diagram

The system features a built-in real-time clock (DS3231), which tracks real-time data. When the current time matches the preset bell ringing time, the relay energises and switches on the bell. The bell timings can be modified at any time using the 4×4 keypad, making it adaptable for regular school schedules as well as examination periods.

The real-time clock is displayed on a 16×2 LCD, providing a clear view of the day, date, and time. The Arduino Uno controls all functions, receiving input via the keypad and storing it in its EEPROM memory. When the stored bell time matches the real-time clock, the bell rings for a predetermined duration, which is set to approximately ten seconds in this implementation.

Software

This system requires libraries for the DS3231 RTC and I2C-based LCD, which need to be installed in Arduino IDE. To install these libraries:

Open Arduino IDE.

Navigate to sketch→Include library→Manage libraries.

Search for and install the following libraries:

  • DS3231
  • LiquidCrystal_I2C
  • Keypad

After installing the required libraries, download the source code from electronicsforu.com. Upload the code by selecting:

Board: Arduino Uno

COM Port: The port where the Arduino is connected

If all libraries (keypad, LCD display, and DS3231 RTC) are correctly installed, the code will upload successfully. Fig. 3 shows a snippet of the source code.

Arduino Code for Automatic Bell with Adjustable Timing
Fig. 3: Snippet of source code

Next, the loop function is created to update the time from the RTC module, accept keypad inputs for setting bell timings and dates, and display the same on the LCD. All settings are saved in EEPROM, ensuring they remain intact even after power is turned off.

Recommended: Arduino Projects

Construction and Setup

After uploading the source code into the Arduino Uno, assemble the circuit using Tables 2, 3, 4, 5, and 6 and the circuit diagram shown in Fig. 4. Enclose the entire setup in a small plastic box. Refer to Fig. 4 before assembling the prototype for a better understanding of the final build.

Arduino-based automatic bell device
Fig. 4: Inside the prototype box
Table 2: 4×4 Matrix keypad connections
4×4 Keypad Pin Arduino Uno Pin
Row pin 0 D9
Row pin 1 D8
Row pin 2 D7
Row pin 3 D6
Col pin 0 D5
Col pin 1 D4
Col pin 2 D3
Col pin 3 D2
Table 3: DS3231 connections with Uno
DS3231 Pins Arduino Uno Pin
VCC 5V
GND GND
SDA A4
SCL A5
Table 4 16×2 LCD connections with Arduino Uno
12C LCD Pins Arduino Uno Pin
VCC 5V
GND GND
SDA SDA
SCL SCL
Table 5: Relay connections with Arduino Uno
Relay Pins Arduino Pins
VCC 5V
GND GND
IN D10
Table 6: Buzzer with Uno
Buzzer Pin Arduino Uno
Buzzer positive A0
Buzzer negative GND

Power on the assembled unit by connecting the 9V adaptor to the Arduino Uno. The default day, date, and time will be displayed (see Fig. 5). Press ‘*’ on the keypad to modify the settings.

default day, date, and time on 16*2 LCD
Fig. 5: The default day, date, and time

Two options will appear:

Option 1: Change day, date, and time

Option 2: Set bell timings (see Fig. 6). If you want to change, press the ‘*’ key using the keypad.

16*2 LCD
Fig. 6: The two options

Press ‘1’ to select ‘SET YEAR’. Use the keypad to enter the year, then press ‘#’ (see Fig. 7).

SET Year on 16*2 LCD
Fig. 7: The ‘SET YEAR’ option

Press ‘#’ to proceed to ‘SET MONTH’. Enter the month using the keypad, then press ‘#’ (see Fig. 8).

SET month on 16*2 LCD
Fig. 8: The ‘SET MONTH’ option

Press ‘#’ to access ‘SET DAY OF THE MONTH’. Use the keypad to enter the day (1-31), then press ‘#’ (see Fig. 9).

Set day of the month on 16*2 LCD
Fig. 9: The ‘SET DAY OF THE MONTH’ option

Press ‘#’ to move to ‘SET DAY OF THE WEEK’. Enter the corresponding number for the day (MON-1, TUE-2, WED-3, THU-4, FRI-5, SAT-6, SUN-7), then press ‘#’ (see Fig. 10).

Set day of week on 16*2 LCD
Fig. 10: The ‘SET DAY OF WEEK’ option

Press ‘#’ to access ‘SET HOUR’. Use the keypad to enter the hour (0-24), then press ‘#’ (see Fig. 11).

Set hour on 16*2 LCD
Fig. 11: The ‘SET HOUR’ option

Press ‘#’ to proceed to ‘SET MINUTES’. Enter the minutes (0-60) using the keypad, then press ‘#’ (see Fig. 12).

Set minutes on 16*2 LCD
Fig. 12: The ‘SET MINUTES’ option

Once all details are set, the system updates and saves the settings (see Fig. 13).

LCD 16*2
Fig. 13: The ‘SAVED SUCCESSFULLY’ message

Setting Bell Timings

Power on the system. The default day, date, and time will be displayed (see Fig. 14). Press ‘*’ on the keypad to modify the settings. Two options will appear.

16*2 LCD Default timing
Fig. 14: The default day, date, and time

Select option 2: Set Bell Timings (see Fig. 15).

16*2 LCD timing
Fig. 15: Set bell timings

Enter the number of bells required (e.g., 3, 7, 10, or more) and confirm by pressing ‘#’ (see Fig. 16).

Automatic Bell setup on 16*2 LCD
Fig. 16: Asking for the number of bells

Set individual bell timings (hour and minutes) one by one (see Fig. 17).

Automatic Bell with 16*2 LCD
Fig. 17: Asking for bell timings

To review the saved bell timings, press ‘C’ repeatedly to cycle through the stored times.

Once the settings are complete, the prototype is ready for use.


K. Muni Sekhar Reddy is a lecturer at ECE Department at the Government Polytechnic, Kamalapuram, Andhra Pradesh

Chadipiralla Sivakavitha is a technology enthusiast studying at ECE Department of the Government Polytechnic, Kamalapuram, Andhra Pradesh


Added to wishlistRemoved from wishlist 0
Add to compare
’47 MLB Mens Men’s Brand Clean Up Cap One-Size
Added to wishlistRemoved from wishlist 0
Add to compare
$29.95
Added to wishlistRemoved from wishlist 0
Add to compare
(2-Way Audio & PIR Detection) Dual Antennas Outdoor Wireless Security Camera System 5.5MP Wi-Fi Video Surveillance
Added to wishlistRemoved from wishlist 0
Add to compare
$399.99
Added to wishlistRemoved from wishlist 0
Add to compare
[3 Pack] Sport Bands Compatible with Fitbit Charge 5 Bands Women Men, Adjustable Soft Silicone Charge 5 Wristband Strap for Fitbit Charge 5, Large
Added to wishlistRemoved from wishlist 0
Add to compare
$9.99
Added to wishlistRemoved from wishlist 0
Add to compare
[3 Pack] Sport Bands Compatible with Fitbit Charge 5 Bands Women Men, Adjustable Soft Silicone Charge 5 Wristband Strap for Fitbit Charge 5, Small
Added to wishlistRemoved from wishlist 0
Add to compare
$9.99

We will be happy to hear your thoughts

Leave a reply

Best Deals for all new
Logo
Compare items
  • Total (0)
Compare
0
Shopping cart