Sei sulla pagina 1di 22

BASED ON RTC AND ARDUINO

PRIYANKA (16261A04C7)
SRIDHAR (16261A04C8)
SRIKANTH (17265A0432)
CONCEPT
Present day ringing the bell in colleges or schools are
carried out manually.

The main disadvantage of this is that one person has to be


alert for this.

To overcome from this, we thought to design and develop


Automatic college or school bell system using Arduino
development board.

This system activates the bell according to a fed timetable.


COMPONENTS
Arduino Uno

RTC DS3231

20x4 LCD module

4 switch keypad

Buzzer

Power supply
Arduino uno
Arduino Uno is a microcontroller board based on the ATmega328P

Operating Voltage 5V

 Input Voltage (recommended) 7-12V

Input Voltage (limit) 6-20V

Digital I/O Pins 14 (of which 6 provide PWM output)

 Analog Input Pins 6

Flash Memory 32 KB (ATmega328P) of which 0.5 KB used by


boot loader
SRAM 2 KB (ATmega328P), EEPROM 1 KB (ATmega328P)

Clock Speed 16 MHz

A USB connection, a power jack, an ICSP header and a reset button.


program

Program is uploaded into microcontroller using Arduino software toolkit.

Above image shows arduino toolkit window.


Rtc ds3231
It is a low-cost, extremely accurate I²C real-time clock (RTC).

It has an integrated temperature-compensated crystal oscillator (TCXO) and


crystal.

The device incorporates a battery input, and maintains


accurate timekeeping when main power
to the device is interrupted.

RTC Counts Seconds, Minutes, Hours, Date of the Month,


Month, Day of the Week, and Year, with Leap-Year compensation
valid up to 2100.

The clock operates in either the 24-hour or 12-hour format AM/PM indicator
20x4 lcd
 It is used to show current time and various messages.

LCD (Liquid Crystal Display) screen is an electronic


display module and find a wide range of applications.

A 16x2 LCD display is very basic module and is very


commonly used in various devices and circuits.

It used I²C interface.

In our project we use 20x4 LCD to display time, display


and on going session from the time table.
4 switch keypad
This project comes with a manual switch to activate the bell. This will give
the liberty to the user to activate it manually when required.

To set the required schedule manually we use 4 switch keypad.

They are SET, UP, DOWN, SAVE and EXIT SWITCHES.

These are designed on a PCB using 4 push buttons, 4 10Kohm resistors.


buzzer

It is a piezo electric buzzer.

It gives the BEEP sound according to the given time.


Power Supply

Step down transformer converts 230V AC to 12V AC

Bridge rectifier using 4 IN4001 diodes converts AC to DC.

LM 7805 voltage regulator is used to get constant 5V DC voltage as output.


Block diagram
circuit
CONNECTIONS (lcd)
Pin Symbol Function Arduino Pin
1 VSS GND GND
2 VDD Power Supply(+5v) 5V

3 V0 Contrast Adjust GND


4 RS Register Select 2
5 R/W Read/Write GND
6 E Enable 3
7-14 DB0-DB7 Data bus line 4-7

15 A Power Supply for LED B/L (+) 5V


16 K Power Supply for LED B/L (-) GND

 LCD is operated in 4 bit mode.


 1, 3, 5, 16 are shorted and connected to GND.
 2, 15 are shorted and connected to 5v
Connections (Rtc)

Pin Function Arduino


GND POWER SUPPLY GND GND

VCC POWER SUPPLY 5V 5V

SDA SERIAL DATA A4

SCL SERIAL CLOCK A5

• SCL provide programmable square wave output.

• SDA transfers address and data.


Connections (keypad)
Pin Function Arduino
VCC POWER SUPPLY 5V VCC

GND GND GND

ENTER To enter manual setting 8

UP Increment value 9

DOWN Decrement value 10

SAVE & EXIT Exit manual setting 11

• 10k resistors are used between VCC and push button to avoid short
between VCC and GND when button is pressed.
CONNECTIONs (BUZZER)

 Buzzer is connected to Arduino pins 13 and 5v.


working
On the power supply of the circuit the bridge circuit converts the ac supply in
to dc supply and voltage regulator regulates the supply.

 Arduino is used for reading time from DS3231 and display it on 20X4 LCD.

DS3231 sends time/date using 2 lines to Arduino (SDA,SCL).

Here, the code is designed in a way so the bell will be activated as per the
college schedule.

User can also set the schedule manually using the keypad provided.
advantages
It relieves the person responsible to ring the bell.

Time accuracy is maintained.

No manual intervention.

Saves man power and money.


applications
It can also be used for other applications where you want a sound to play at preset
times.

The Device is for Schools, Educational Institutions, Industries and other business
where the Bell timer plays a critical role in running the day.

Washing machine.

 Microwave ovens.

 Video recorders.

Security system.
conclusion
Automatic college bell system can be extended for further development as there
can be many departments in a university at a distance in the same campus and
want
to synchronize all department bells.

Not only bell we can use RTC and Arduino in various fields where a task is to be
completed based on real time.

Potrebbero piacerti anche