当前位置:文档之家› 智能仪器设计毕业课程设计报告

智能仪器设计毕业课程设计报告

(此文档为word格式,下载后您可任意编辑修改!) 《智能仪器设计》课程设计报告学院:太原理工大学信息工程学院专业班级:自动化0803姓名:张胜超学号:题目号:27目录零. 摘要 (4)0.1 摘要 (4)0.2 Abstract (5)一. 设计目的及原理 (7)1.1设计题目和目的 (5)1.1.1设计题目 (5)1.1.2设计目的 (5)1.2设计基本要求 (5)1.3设计原理 (6)二.硬件设计 (7)2.1系统原理框图 (7)2.1.1STC89C51简介 (8)2.1.2 产品外观 (8)2.2基本模块简介 (11)2.2.1 Pt100温度测量接口技术 (11)2.2.2热电阻PT100信号调理电路设计 (12)2.2.3功率输出电路 (12)2.2.4 4-20mA电流输出电路 (13)2.2.5数码管显示及指示电路 (13)2.2.6按键电路 (15)2.2.7报警电路 (15)2.2.8下载电路 (15)2.2.9 通信电路 (16)2.2.10输出驱动电路 (16)2.2.11电源电路 (17)三.系统流程图软件设计……………………………………………………..错误!未定义书签。

3.1软件设计算法分析......................................................3.1.1比例控制算法 (17)3.1.2热非线性校正算法................................................18 3.1.3温度数据显示子程序........................................ 3.2软件设计基础...............................................3.2.1基于STC89C51单片机实现智能测温仪表软件设计 (19)3.2.2基于STC89C51单片机的智能测温仪表程序框架 (21)3.3 系统流程图...............................................四.总电路图 ................................................. .264.1 Protel99SE电气原理 .......... ....................................................4.2 PCB版图................................................................五. 电路仿真的设计与分析 (27)5.1 Proteus仿真软件介绍. ....................5.2 仿真分析..............................................................六. 体会心得 (27)附录1c语言程序 (28)附录2参考文献..................................................第零章摘要0.1摘要:运用单片机原理及应用-基于51与高速新型C8051F330单片机做的智能仪器是含有微型计算机或者微型处理器的测量仪器,拥有对数据的存储运算逻辑判断及自动化操作等功能。

它的出现,极大地扩充了传统仪器的应用范围。

智能仪器凭借其体积小、功能强、功耗低等优势,迅速地在家用电器、科研单位和工业企业中得到了广泛的应用。

本次课程设计就是基于STC89C51单片机的数字测温智能仪器。

传感器取被测参量的信息并转换成电信号,经滤波去除干扰后送入多路模拟开关;由单片机逐路选通模拟开关将各输入通道的信号逐一送入程控增益放大器,放大后的信号经A/D转换器转换成相应的脉冲信号后送入单片机中;单片机根据仪器所设定的初值进行相应的数据运算和处理(如非线性校正等);运算的结果被转换为相应的数据进行显示和打印;同时单片机把运算结果与存储于片内FlashROM(闪速存储器)或EPROM(电可擦除存贮器)内的设定参数进行运算比较后,根据运算结果和控制要求,输出相应的控制信号(如报警装置触发、继电器触点等)。

本次设计使用PT100热电阻。

目前的智能温度传感器(亦称数字温度传感器)是在20世纪90年代中期问世的,它是微电子技术、计算机技术和自动测试技术(ATE)的结晶,特点是能输出温度数据及相关的温度控制量,适配各种微控制器(MCU)。

社会的发展使人们对传感器的要求也越来越高,现在的温度传感器正在基于单片机的基础上从模拟式向数字式,从集成化向智能化、网络化的方向飞速发展,并朝着高精度、多功能、总线标准化、高可靠性及安全性、开发虚拟传感器和网络传感器、研制单片测温系统等高科技的方向迅速发展,本文将介绍智能集成温度传感器铂金属电阻的结构特征及控制方法,并对以此传感器,单片机为控制器构成的数字温度测量装置的工作原理及程序设计作了详细的介绍。

与传统的温度计相比,其具有读数方便,测温范围广,测温准确,输出温度采用数字显示,主要用于对测温要求比较准确的场所,或科研实验室使用。

此外,智能仪器还可以与PC机组成分布式测控系统,由单片机作为下位机采集各种测量信号与数据,通过串行通信将信息传输给上位机——PC机,由PC机进行全局管理。

本次课程设计采用keil编译软件编写C语言源代码。

经调试好后,装载入单片机进行仿真,完成智能仪器的核心设计。

关键字:STC89C51单片机,A/D转换器,铂金属电阻,EPROM,智能仪器,数字测温温度计0.2 Abstract:Using single chip microcomputer principle and applications-based on 51 with high speed and new single chip microcomputer intelligent instrument do C8051F330 contains a microcomputer or micro processor measuring instrument for data storage operations with logic and automatic operation etc. Function. The emergence of the traditional instruments greatly expanded the range. Intelligent instrument with its small size, the function is strong, low power consumption advantages, quickly in home appliances, scientific research units and industrial enterprise in a wide range of applications. This course is designed based on the single chip microcomputer STC89C51 digital temperature measuring intelligent instrument.Sensor measured parameters to take information and translated into electrical signals, the filter remove interference into more road after analog switch; By way of microcomputer choose the analog switch will eachinput channel one signal into program-controlled gain amplifier, enlarge the signal after the A/D converter converted into the pulse signal into the single chip microcomputer after; Single chip set by the instrument according to the initial corresponding data operation and treatment (such as nonlinear correction etc.); Operation result was converted to data display and print; At the same time the operation result and single chip microcomputer stored in pieces (FlashROM (flash memory) or EPROM (electric can erase memory) set parameters in operations after comparison, according to the operation result and control requirements, the output corresponding control signals (such as alarm device trigger, relay Implement contacts, etc.). This design uses PT100 heat resistance.The current intelligent temperature sensor (also called digital temperature sensor) is in the mid 1990 s came, it is microelectronics technology, computer technology and automatic test technology (ATE) crystallization, characteristic is to output data and related temperature of temperature control quantity, adaptation various micro controller (MCU). The development of the society to the requirements of the sensor to make people more and more is also high, now of the temperature sensor is based on the basis of single chip from analog to digital, from integration, network to the direction of the intelligent rapid development, and high precision, multi-function, bus toward standardization, high reliability and security, development virtual sensor and network sensor, development monolithic temperature measuring system and other high-tech direction of rapid development, this article will introduce intelligent integrated temperature sensor platinum resistance of the features of the structure of and control methods, and to the sensor, a single chip microcomputer controller for digital temperature measurement device's working principle and program design is analyzed in detail. Compared with the traditional thermometer, it has convenient readings, temperature measuring range, temperature measurement accuracy, the temperature output digital display, mainly used for temperature measurement demand is accurated.the place, or scientific research laboratory use. In addition, intelligent instrument can also with PC unit into distributed measurement and control system, by single chip microcomputer as a machine acquisition under various measurement signal and data, through serial communication information transmission to the upper machine will-PC, by a PC global management.This course design uses keil software compiler language C source code. After the commissioning, loaded into the single chip microcomputer, and simulation complete intelligent instrument the core design.Keyword: STC89C51 single-chip microcomputer, A/D converter, platinum of resistance, EPROM, intelligent instrument, digital temperature thermometer第一章设计目的及原理1.1设计题目和目的:1.1.1设计题目题目要求:27. 试设计智能仪表实现智能数字显示仪表。

相关主题