
My hardware set-up looked something like this below once I was done with the connections

Since there are couple of dozen wires to connect so just have patience and make sure the connections are correct. The complete circuit can be build over a breadboard. Learn more about using DS3231 RTC module with PIC here. A LCD display is attached to the PORTD of the PIC which is used to display the current time and set time. The current time is always kept in track by the DS3231 RTC module from which the PIC receives the data through I2C bus, so the SCL and SDA pins of the RTC module is connected to SCL and SDA pin of the PIC controller. The Buzzer will act as an output and will give us a beep when the alarm gets triggered and is connected to the PORT S pin. So one end of all the push buttons are connected to ground and the other ends are connected to PORTB pin, internal pull-up resistor will be used on these pins to avoid the pins floating. The five push buttons will act as an input for setting the alarm for the required time. The will also be used for simulation further in this project. The circuit diagram for this PIC based Alarm Clock Project is shown below, which was created using the proteus software.
Computer simple time clock software using a pin how to#
So it is better to learn how to use these modules beforehand. We will use GPIOs, LCD display and RTC module for this project. This project requires you know few basics about the PIC microcontroller and how to program it. So it is recommended to read through that tutorial, we will be skipping most of the information covered in that tutorial. We have already learnt about the RTC module and how to interface it with PIC. The current time will be kept in track using the DS3231 RTC module and we will use IIC communication to get these values from the RTC module. We will use few push buttons to set the alarm time whenever required. This alarm clock will have an 16x2 LCD display which will display the current time and set time.

Since the growth of digital electronics has been exponential, today it is almost impossible for a person to resist using any electronic equipment. The digital Revolution started in 1950 changes all the existing mechanical and analog electronic structures into digital computers.
