编号:
课程设计
基于LMTARM-V试验平台的电子密码器的设计与实现
院系:信息工程学院 姓名:张华伟 学号:1234130130 专业:电子信息工程 年级:2012级 指导教师:巫廷耀 职称:工程师 完成日期:2016年5月
摘 要
温控系统在人们生活中随处可见,在生物制药、冶金、医疗等领域扮演着非常重要的角色,已经成为人们生活不可或缺的一部分。它是一个集环境监测、反馈调节和人机交互的等功能的综合系统。它是能实现实时环境温度数据采集,经过相应的判断处理、计算来控制设备的运行以达到理想温度的系统,其应用范围非常广泛。如今,由于ARM构架设计的温控系统拥有稳定性和抗干扰性以及高运算速率等优点,一直受广大电子设备控制系统开发人员的青睐。本设计采用ARM单片机技术、PT100铂电阻温度传感器技术、单片机技术等来实现自动控制温度、手动设置温度和显示的功能。
通过了解市场对温控系统的需求和简化实现方式的前提下,本设计制定了易于实现的模块化设计方案,在硬件电路方面主要设计了最小系统电路、电源电路、电压参考电路、制热模块电路、温度传感器电路和温度采集电路等,并完成了智能温控的各项功能测试。本设计实现了温度显示、设置温度和温度采集的功能,以及保持设置温度的功能。
关键词:单片机;PID;温度传感器;AD采集;铂电阻
I
Abstract
Temperature control system can be found everywhere in life.It has become an indispensable part of people's life,played a very important role in the field of biological pharmacy, metallurgy, medical treatment and so on. It is an integrated system collecting the environmental monitoring, the feedback to adjustments, human-computer interaction, and other functions. It is a system that can be realized real-time temperature data by the corresponding judgment processing, calculation to control the operation of the equipment in order to achieve the ideal temperature, and it has a wide range. Nowadays, due to the advantages of high stability, anti-jamming and operation rate,the ARM temperature control system has been popular with the general electronic equipment control system developers. This design uses the ARM micro-controller technology, PT100 platinum resistance temperature sensor technology and single-chip microcomputer technology to realize the functions of automatic control, manual setting temperature and temperature display.
The modular arrangement of this design is easy and convenient by understanding the market demand for temperature control system and simplifying the premise of implementation. In terms of hardware circuit, it design the minimum system circuit, power circuit, voltage reference circuit, heating circuit and temperature acquisition module circuit and temperature sensor circuit, etc., and complete the functional tests of intelligent temperature control. This design has realized the functions of displaying the temperature, setting up the temperature, collecting the temperature, and maintaining the set temperature.
Key words :MCU;PID;TemperatureSensor;A/D conversion;PT100
II
目录
1 绪论...................................................................................................................................... 1 1.1 课题的研究背景与意义............................................................................................... 1 1.2课题的国内研究现状.................................................................................................... 1 1.3 课题的国外研究现状................................................................................................... 2 1.4 课题的研究目的和内容............................................................................................... 2 2 系统总体方案设计与论证.................................................................................................. 3 2.1 主控系统方案论证....................................................................................................... 3 2.2 电源系统方案论证....................................................................................................... 4 2.3 温度传感器方案论证................................................................................................... 4 2.4显示模块方案论证........................................................................................................ 5 2.5 A/D转换器模块方案论证 ............................................................................................ 6 2.6 系统整体设计方案论证............................................................................................... 7 3 系统硬件设计...................................................................................................................... 8 3.1 主控制系统设计........................................................................................................... 8 3.1.1 STM32F407单片机 ............................................................................................... 8 3.1.2 通用定时器............................................................................................................ 8 3.1.3模数转换器............................................................................................................. 9 3.2 温度采集电路设计....................................................................................................... 9 3.3 显示电路的设计......................................................................................................... 10 3.4 制热模块驱动电路设计............................................................................................. 10 3.5 电源系统设计............................................................................................................. 11 4 系统软件设计.................................................................................................................... 13 4.1 主程序设计................................................................................................................. 13 4.2温度采集程序设计...................................................................................................... 14 4.3 驱动加热模块程序设计............................................................................................. 14 4.4 显示模块程序设计..................................................................................................... 15
III
5 制作与调试........................................................................................................................ 16 5.1 软件调试..................................................................................................................... 16 5.2 实物制作..................................................................................................................... 17 5.3 测试与总结................................................................................................................. 18 参考文献................................................................................................................................ 20 致谢........................................................................................................................................ 21 附录I ..................................................................................................................................... 22 附录II .................................................................................................................................... 23 附录III................................................................................................................................... 24
IV