摘要:本文主要介绍了基于单片机的具有温度检测电子日历的设计方案及其实现方法。设计选择STC公司推出的STC90C516RD+单片机为控制中心。由DALLAS公司的数字温度计DS18b20完成温度的检测,时钟芯片DS1302实时定时。由LCD12864液晶显示器实现时间、温度值及日历的显示。按键和报警分别采用了独立按键和5V的有源蜂鸣器、LED。用红外接收头收取遥控信号。选YF017时钟语音芯片用作语音播报,选择 8Ω、0.5W的扬声器,用于音频的输出。本设计除了计时与温度检测功能外,还加入了显示农历并自动关联公历、按键调整时间、高低温报警、红外远距离控制、语音播报等扩展功能。本设计硬件简单,容易操作,功能方便实用。56872
毕业论文关键词:万年历,STC90C516RD+单片机,温度传感器,外部设备
Abstract:This thesis mainly introduces the design of microcontroller-based electronic calendar with temperature sensing and its implementation. The design chooses the STC90C516RD + microcontroller produced by STC Company as the control center. And the design also chooses DS18B20 to complete the temperature detection with the DALLAS Company’s digital thermometer as well as determines real time with the clock chip DS1302. Moreover, the design can present time, temperature and calendar by LCD12864 LCD. Buttons and alarm buzzers are equipped with active independent keys and 5V active buzzer and LED. It receives remote control signal by the infrared receiver. The design selects YF017 as voice broadcast chip, and 8Ω, 0.5W speakers for audio output. Except for the timing and temperature detection function, the design also adds the functions of presentation of lunar calendar and solar calendar automatical association, buttons to adjust the time, high and low temperature alarms, infrared remote control, voice broadcast and other extensions. The hardware of this design is simple, easy to operate, convenient and practical.
Key words: perpetual calendar, STC90C516RD+ single chip microcomputer, temperature sensor, peripheral equipment
目 录
1 引言 4
1.1 背景和意义 4
1.2 设计任务及要求 4
2 方案设计 5
2.1 硬件设计框图 5
2.2 硬件系统方案选择 5
3 系统硬件设计 9
3.1 单片机最小系统 9
3.2 显示模块电路 10
3.3 时钟模块电路 11
3.4 温度检测模块电路 11
3.5 红外接收电路 12
3.6 语音播报电路 12
3.7 声光报警电路 13
3.8 外部电源电路 13
4 系统软件设计 14
4.1 时间、日期、农历和温度的显示 14
4.2 声光报警 14
4.3 按键调整时间 15
4.4 遥控调整时间 16
4.5 语音播报日期、时间与温度 17
5 调试及性能分析 18
5.1 硬件系统调试 18