Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

This design includes Proteus simulation + program + design report + explanatory video.

1. Development Environment

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

Simulation diagram: Proteus 8.17 (lower versions available)

Compiler: Keil 4/Keil 5

Programming Language: C

Design Number: P21

2. Main Functions:

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

1. Use LCD 1602 as the display device to design the clock function;

2. Allows adjustment of hours, minutes, and seconds; after reset, the time is set to 00:00:00, and can be set to either 24-hour or 12-hour format;

3. Extended functions:

Includes alarm function, allowing alarm time to be set via buttons;

Displays year, month, day, and week; time setting considers month length and automatically sets the week;

12/24 hour format has corresponding indicator lights.

Main hardware: 51 microcontroller, DS1302, LCD1602, independent buttons, LED, buzzer.

(Currently fully compatible with the PuZhong 51 experimental board 234; other PuZhong development board models require wiring.)

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

Note that the microcontroller chip in the simulation is compatible; AT89C51 and AT89C52 are specific models of the 51 microcontroller, with the same core. In the same schematic, whether STC or AT, the pin functions are the same, and the programs are compatible. Chips can be replaced with STC89C52/STC89C51/AT89C52/AT89C51 and other 51 microcontroller chips.

Download link for materials:

Download link for P series microcontroller design (copy to browser to open)

https://docs.qq.com/doc/DS2pPenNRaHB6SlR1

Below are the display images of this design:

3. Physical Images:

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

4. Simulation

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

Open the simulation project, double-click the microcontroller in Proteus, select the hex file path, and then start the simulation.

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

While displaying the time, press the switch key to enter the setting mode; the variable being set will blink. First, set the year using the increment and decrement buttons, then switch to set the month, adjusting similarly. Continue this process to set the date, week, hours, minutes, and seconds.

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

After setting the clock, press the switch key to set the alarm. Similarly, adjust the alarm time using the increment and decrement buttons, and switch to set hours/minutes.

Pressing the 12/24 hour format switch allows toggling between formats. AM is displayed in the morning, and PM in the afternoon, making it easy to distinguish the time.

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

5. Program Code

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

Use Keil 4 or Keil 5 to compile; the code is commented, and can be understood in conjunction with the video.

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

6. Design Report

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

6403-word design report, including hardware design, software design, soft and hardware block diagrams, debugging, conclusions, etc.

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

7. List of Design Materials & Download Links

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

The design materials include simulation, program code, explanatory video, functional requirements, design report, soft and hardware design block diagrams, etc.

0. Common usage issues and solutions – must read!!!!

1. Program

2. Proteus simulation

3. Functional requirements

4. Soft and hardware flowcharts

5. Project proposal report

6. Design report

7. Programming tools

8. Explanatory video

9. Physical images

Altium Designer installation and cracking

KEIL + Proteus microcontroller simulation design tutorial

KEIL installation and cracking

Proteus component search

Proteus installation

Proteus simple usage tutorial

Microcontroller learning materials

Related data sheets

Defense skills

Common descriptions in design reports

Double-click to open and find the Jiasheng microcontroller 51 STM32 microcontroller course graduation design.url

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

Download link for materials (clickable):

https://docs.qq.com/doc/DS2pPenNRaHB6SlR1

More resources click the link below:

https://docs.qq.com/sheet/DS0xIa0llTmtNakRW

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

WeChat Official Account

Jiasheng Microcontroller

Website|www.eemcu.cn

Design of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format SwitchingDesign of an Electronic Clock Alarm Based on the 51 Microcontroller with LCD1602 Display for 12-24 Hour Format Switching

Leave a Comment