设计说明书
总字数:12000+
高精度、多功能、小体积、低功耗,是现代时钟的发展趋势,时钟的数字化多功能化已经成为现代时钟生产研究的主导设计方向。本文设计了一种基于单片机的多功能电子钟,该电子钟采用STC89C52作为此次设计的主控芯片,使用DS1302时钟模块获取当前的时间,将时间显示在显示屏上,并保存掉电时间。通过按键可设置时间和闹钟,当闹钟到达指定的时间就进行蜂鸣器报警提醒,同时按键可启动计时器,由语音模块播报时间,然后由LCD1602显示屏显示数据。本系统还增添了DS18B20模块来测量实时环境温度,在时间播报同时加入温度播报。仿真实验和实物测试显示设计电路功能符合预期。
关键词:电子钟;时间;温度;闹钟;语音播报
High precision,multi-function,small size and low power consumption are the development trend of modern clock.The digitalization and multi-function of clock have become the leading design direction of modern clock production and research.This paper design is a digital timer,using STC89C52 as the design of the main control chip,the design use the DS1302 clock module to obtain the current time,and the time is display screen,and power down save time.When the alarm clock arrives at the specified time,the buzzer alarm will remind.At the same time,the key can start the timer.The time and temperature will be broadcast by the voice module,and the data will be display by the LCD1602 display screen.After the physical test,the design of digital clock meet the requirements.
Key words:electronic clock; Time; Temperature; An alarm clock; Voice broadcasting
目 录
1 绪论
1.1 项目背景和意义
1.2 研究现状
2.1.1 主控模块方案选择
1.3 项目的设计任务
2 总体方案设计
2.1 主要元器件选择
2.1.1 主控模块
2.1.2 显示模块
2.1.3 温度监测模块
2.2 系统总体设计思路
3 硬件系统设计
3.1 主控模块电路
3.2 温度监测模块电路
3.3 时钟模块电路
3.4 语音输出模块电路
3.5 显示模块电路
3.6 按键模块电路
3.7 蜂鸣器模块电路
3.8 整体原理图
3.9 PCB打板
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3独立按键
4.4时钟模块子流程
4.5 温度检测模块子流程
4.6 温度检测模块子流程
4.7 LCD1602液晶显示子流程
5 仿真测试
5.1 时间校准和查看仿真测试
5.2 计时器检测仿真测试
5.3 闹钟播报仿真测试
5.4 温度模块仿真测试
5.5 整点报时仿真测试
6 实物测试
6.1 时间校准和查看实物测试
6.2 计时器检测实物测试
6.3 闹钟播报实物测试
6.4 温度模块实物测试
6.5 整点报时实物测试
结论
参考文献
致谢
附录
附录一 原理图
附录二 主程序
附录三 主程序
购买后可查看具体内容!