11.基于单片机的多功能温度检测系统的设计翻译
- 格式:doc
- 大小:53.50 KB
- 文档页数:9
基于单片机的多路温度采集系统软件设计(附程序,元件清单)编辑:Nancy 来源: 作者:Team 指数:28 编号:544020120419 共2页: 上一页12下一页基于单片机的多路温度采集系统软件设计(附程序,元件清单)(任务书,开题报告,外文翻译,毕业论文9000字)摘要:随着现代信息技术的飞速发展〖资料来源:毕业设计(论文)网 〗温度测量控制系统在工业、农业及人们的日常生活中扮演着一个越来越重要的角色,它对人们的生活具有很大的影响温度采集在林业,农业,化工甚至是军工领域都有广泛的应用,因此能否对这些地区的环境温度实现有效的监测。
是一个要解决的重要的课题。
采用温度传感器构成的电子监控装置是一种较好的解决方案,因此利用Mcs-51单片机系列设计了一个温度采集系统。
数字式多路温度采集系统由主控制器、温度采集电路、温度显示电路、报警控制电路及键盘输入控制电路组成。
它利用单片机AT89C51做控制及数据处理器、智能温度传感器DS18B20做温度检测器、LED数码显示管做温度显示输出设备。
实现多监测点的温度采集。
并且具有显示,报警等功能。
能够应用于一般的环境的温度采集环境。
软件设计主要采用汇编语言设计,设计工具用keil,程序主要由键盘扫描子程序,温度转换子程序,读出温度子程序,计算温度子程序,显示数据刷新子程序,报警控制子程序组成。
用汇编的主要优点是编程的效率高。
适用于简单的但是要求较高的电路。
本文主要是采用的是汇编语言设计。
. 〖资料来源:毕业设计(论文)网 〗关键词:温度传感器单片机软件software design base on SCM multi-channel temperature gathering system Abstract:With the rapid development of modern information technology,In temperature measurement control system of industrial, agricultural and People's Daily life playsa more and more important role in people's life, and it has very important effect,Temperature gathering in the forestry, agriculture, chemical and even military domain has a wide range of applications,So effective monitor the environment temperatureof these regions Is an important task to solve. A temperature sensor constitute electronic monitoring device is a better solution, so use Mcs - 51 SCM series designa temperature gathering system.the digital multi-channel temperature gathering system by the master control regulator, the temperature gathering electric circuit, the temperature display circuit, reports to the police the control circuit and the keyboard entry control circuit is composed .It makes the control and the data processor, intelligent temperature sensor DS18B20 using monolithic integrated circuit AT89C51 makes the temperature detector, the LED numerical code display tube makes the temperature demonstration output unit. Achieve more monitoring stations in the temperature gathering. And display, alarm functions. Can be used in the general environment temperature acquisition environment.〖资料来源:毕业设计(论文)网 〗The software design use assembly language,The design tool adopt keil, Program mainlyby the keypad scanning subroutine, the temperature conversion subroutine, read temperature subroutine, the calculation of temperature subroutine, display datarefresh subroutines, alarm control subroutines composition.The advantage of the assembly language is high efficiency, and fit for the circuit which simple but require expert . This paper is mainly uses assembler languageKeyword: temperature ensor monolithic integrated circuit software毕业设计(论文)使用的原始资料(数据)及设计技术要求:基于单片机的多路温度采集系统主要用于采集多个监测点的温度,当某个监测点的温度超过一定的范围时进行报警。
Design of the Temperature Control System Based on AT89C51ABSTRACTThe principle and functions of the temperature control system based on micro controller AT89C51 are studied, and the temperature measurement unit consists of the 1-Wire bus digital temperature sensor DS18B20. The system can be expected to detect the preset temperature, display time and save monitoring data. An alarm will be given by system if the temperature exceeds the upper and lower limit value of the temperature which can be set discretionarily and then automatic control is achieved, thus the temperature is achieved monitoring intelligently within a certain range. Basing on principle of the system, it is easy to make a variety of other non-linear control systems so long as the software design is reasonably changed. The system has been proved to be accurate, reliable and satisfied through field practice.KEYWORDS: AT89C51; micro controller; DS18B20; temperature1 INTRODUCTIONTemperature is a very important parameter in human life. In the modern society, temperature control (TC) is not only used in industrial production, but also widely used in other fields. With the improvement of the life quality, we can find the TC appliance in hotels, factories and home as well. And the trend that TC will better serve the whole society, so it is of great significance to measure and control the temperature. Based on the AT89C51 and temperature sensor DS18B20, this system controls the condition temperature intelligently. The temperature can be set discretionarily within a certain range. The system can show the time on LCD, and save monitoring data; and automatically control the temperature when the condition temperature exceeds the upper and lower limit value. By doing so it is to keep the temperature unchanged. The system is of high anti-jamming, high control precision and flexible design; it also fits the rugged environment. It is mainly used in people's life to improve the quality of the work and life. It is also versatile, so that it can beconvenient to extend the use of the system. So the design is of profound importance. The general design, hardware design and software design of the system are covered.1.1 IntroductionThe 8-bit AT89C51 CHMOS microcontrollers are designed to handle high-speed calculations and fast input/output operations. MCS 51 microcontrollers are typically used for high-speed event control systems. Commercial applications include modems, motor-control systems, printers, photocopiers, air conditioner control systems, disk drives, and medical instruments. The automotive industry use MCS 51 microcontrollers in engine-control systems, airbags, suspension systems, and antilock braking systems (ABS). The AT89C51 is especially well suited to applications that benefit from its processing speed and enhanced on-chip peripheral functions set, such as automotive power-train control, vehicle dynamic suspension, antilock braking, and stability control applications. Because of these critical applications, the market requires a reliable cost-effective controller with a low interrupt latency response, ability to service the high number of time and event driven integrated peripherals needed in real time applications, and a CPU with above average processing power in a single package. The financial and legal risk of having devices that operate unpredictably is very high. Once in the market, particularly in mission critical applications such as an autopilot or anti-lock braking system, mistakes are financially prohibitive. Redesign costs can run as high as a $500K, much more if the fix means 2 back annotating it across a product family that share the same core and/or peripheral design flaw. In addition, field replacements of components is extremely expensive, as the devices are typically sealed in modules with a total value several times that of the component. To mitigate these problems, it is essential that comprehensive testing of the controllers be carried out at both the component level and system level under worst case environmental and voltage conditions. This complete and thorough validation necessitates not only a well-defined process but also a proper environment and tools to facilitate and execute the mission successfully. Intel Chandler Platform Engineering group provides post silicon system validation (SV)of various micro-controllers and processors. The system validation process can be broken into three major parts. The type of the device and its application requirements determine which types of testing are performed on the device.1.2 The AT89C51 provides the following standard features4Kbytes of Flash, 128 bytes of RAM, 32 I/O lines, two 16-bittimer/counters, a five vector two-level interrupt architecture, a full duple ser-ial port, on-chip oscillator and clock circuitry. In addition, the AT89C51 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port and interrupt sys -tem to continue functioning. The Power-down Mode saves the RAM contents but freezes the oscil–lator disabling all other chip functions until the next hardware reset.1.3Pin DescriptionVCC Supply voltage.GND Ground.Port 0:Port 0 is an 8-bit open-drain bi-directional I/O port. As an output port, each pin can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as high impedance inputs. Port 0 may also be configured to be the multiplexed low order address/data bus during accesses to external program and data memory. In this mode P0 has internal pull ups. Port 0 also receives the code bytes during Flash programming, and outputs the code bytes during program verification. External pull ups are required during program verification.Port 1:Port 1 is an 8-bit bi-directional I/O port with internal pull ups. The Port 1 output buffers can sink/so -urce four TTL inputs. When 1s are written to Port 1 pins they are pulled high by the internal pull ups and can be used as inputs. As inputs, Port 1 pins that are externally being pulled low will source current (IIL) because of the internal pullups. Port 1 also receives the low-order address bytes during Flash programming and verification.Port 2:Port 2 is an 8-bit bi-directional I/O port with internal pullups. The Port 2 output buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins they are pulled high by the internal pull ups and can be used as inputs. As inputs, Port 2 pins that are externally being pulled low will source current (IIL) because of the internal pull ups. Port 2 emits the high-order address byte during fetches from external program memory and during accesses to Port 2 pins that are externally being pulled low will source current (IIL) because of the internal pull ups. Port 2 emits the high-order address byte during fetches from external program memory and during accesses to external data memory that use 16-bit addresses (MOVX@DPTR). In this application, it uses strong internal pull-ups when emitting 1s. During accesses to external data memory that use 8-bit addresses (MOVX @ RI), Port 2 emits the contents of the P2 Special Function Register. Port 2 also receives the high-order address bits and some control signals durin Flash programming and verification.Port 3:Port 3 is an 8-bit bi-directional I/O port with internal pull ups. The Port 3 output buffers can sink/sou -rce four TTL inputs. When 1s are written to Port 3 pins they are pulled high by the internal pull ups and can be used as inputs. As inputs, Port 3 pins that are externally being pulled low will source current (IIL) because of the pull ups.Port 3 also serves the functions of various special features of the AT89C51 as listed below:RST:Reset input. A high on this pin for two machine cycles while the oscillator is running resets the device.ALE/PROG:Address Latch Enable output pulse for latching the low byte of the address during accesses to external memory. This pin is also the program pulse input (PROG) during Flash programming. In normal operation ALE is emitted at a constant rate of 1/6 the oscillator frequency, and may be used for external timing or clocking purposes. Note, however, that one ALE pulse is skipped duri-ng each access to external Data Memory. If desired, ALE operation can be disabled by setting bit 0 of SFR location 8EH. With the bit set, ALE is active only during a MOVX or MOVC instruction. Otherwise, the pin is weakly pulled high. Setting the ALE-disable bit has no effect if the microcontroller is in external execution mode.PSEN:Program Store Enable is the read strobe to external programmemory. When theAT89C51 is executing code from external program memory, PSEN is activated twice each machine cycle, except that two PSEN activations are skipped during each access to external data memory.EA/VPP:External Access Enable. EA must be strapped to GND in order to enable the device to fetch code from external program memory locations starting at 0000H up to FFFFH. Note, however, that if lock bit 1 is programmed, EA will be internally latched on reset. EA should be strapped to VCC for internal program executions. This pin alsreceives the 12-volt programming enable voltage (VPP) during Flash programming, for parts that require 12-volt VPP.XTAL1:Input to the inverting oscillator amplifier and input to the internal clock operating circuit.XTAL2 :Output from the inverting oscillator amplifier. Oscillator CharacteristicsXTAL1 and XTAL2 are the input and output, respectively, of an inverting amplifier which can be configured for use as an on-chip oscillator, as shown in Figure 1. Either a quartz crystal or ceramic resonator may be used. To drive the device from an external clock source, XTAL2 should be left unconnected while XTAL1 is driven as shown in Figure 2.There are no requirements on the duty cycle of the external clock signal, since the input to the internal clocking circuitry is through a divide-by-two flip-flop, but minimum and maximum voltage high and low time specifications must be observed. Idle Mode In idle mode, the CPU puts itself to sleep while all the on chip peripherals remain active. The mode is invoked by software. The content of the on-chip RAM and all the special functions registers remain unchanged during this mode. The idle mode can be terminated by any enabled interrupt or by a hardware reset. It should be noted that when idle is terminated by a hard ware reset, the device normally resumes program execution, from where it left off, up to two machine cycles before the internal reset algorithm takes control. On-chip hardware inhibits access to internal RAM in this event, but access to the port pins is not inhibited. To eliminate the possibility of an unexpected write to a port pin when Idle is terminated by reset, the instruction following the one that invokes Idle should not be one that writes to a port pin or to external memory.Power-down ModeIn the power-down mode, the oscillator is stopped, and the instruction that invokes power-down is the last instruction executed. The on-chip RAM and Special Function Registers retain their values until the power-down mode is terminated. The only exit from power-down is a hardware reset. Reset redefines the SFRS but does not change the on-chip RAM. The reset should not be activated before VCC is restored to its normal operating level and must be held active long enough to allow the oscillator to restart and stabilize. The AT89C51 code memory array is programmed byte-by byte in either programming mode. To program any nonblank byte in the on-chip Flash Memory, the entire memory must be erased using the Chip Erase Mode.2 Programming AlgorithmBefore programming the AT89C51, the address, data and control signals should be set up according to the Flash programming mode table and Figure 3 and Figure 4. To program the AT89C51, take the following steps.1. Input the desired memory location on the address lines.2. Input the appropriate data byte on the data lines. 3. Activate the correct combination of control signals. 4. Raise EA/VPP to 12V for the high-voltage programming mode.5. Pulse ALE/PROG once to program a byte in the Flash array or the lock bits. The byte-write cycle is self-timed and typically takes no more than 1.5 ms. Repeat steps 1 through 5, changing the address and data for the entire array or until the end of the object file is reached. Data Polling: The AT89C51 features Data Polling to indicate the end of a write cycle. During a write cycle, an attempted read of the last byte written will result in the complement of the written datum on PO.7. Once the write cycle has been completed, true data are valid on all outputs, and the next cycle may begin. Data Polling may begin any time after a write cycle has been initiated.2.1Ready/Busy:The progress of byte programming can also be monitored by the RDY/BSY output signal. P3.4 is pulled low after ALE goes high during programming to indicate BUSY. P3.4 is pulled high again when programming is done toindicate READY.Program Verify:If lock bits LB1 and LB2 have not been programmed, the programmed code data can be read back via the address and data lines for verification. The lock bits cannot be verified directly. Verification of the lock bits is achieved by observing that their features are enabled.2.2 Chip Erase:The entire Flash array is erased electrically by using the proper combination of control signals and by holding ALE/PROG low for 10 ms. The code array is written with all “1”s. The chip erase operation must be executed before the code memory can be re-programmed.2.3 Reading the Signature Bytes:The signature bytes are read by the same procedure as a normal verification of locations 030H, 031H, and 032H, except that P3.6 and P3.7 must be pulled to a logic low. The values returned areas follows.(030H) = 1EH indicates manufactured by Atmel(031H) = 51H indicates 89C51(032H) = FFH indicates 12V programming(032H) = 05H indicates 5V programming2.4 Programming InterfaceEvery code byte in the Flash array can be written and the entire array can be erased by using the appropriate combination of control signals. The write operation cycle is self timed and once initiated, will automatically time itself to completion. A microcomputer interface converts information between two forms. Outside the microcomputer the information handled by an electronic system exists as a physical signal, but within the program, it is represented numerically. The function of any interface can be broken down into a number of operations which modify the data in some way, so that the process of conversion between the external and internal forms is carried out in a number of steps. An analog-to-digital converter(ADC) is used to convert a continuously variable signal to a corresponding digital form which can take any one of a fixed number of possible binary values. If the output of thetransducer does not vary continuously, no ADC is necessary. In this case the signal conditioning section must convert the incoming signal to a form which can be connected directly to the next part of the interface, the input/output section of the microcomputer itself. Output interfaces take a similar form, the obvious difference being that here the flow of information is in the opposite direction; it is passed from the program to the outside world. In this case the program may call an output subroutine which supervises the operation of the interface and performs the scaling numbers which may be needed for digital-to-analog converter(DAC). This subroutine passes information in turn to an output device which produces a corresponding electrical signal, which could be converted into analog form using a DAC. Finally the signal is conditioned(usually amplified) to a form suitable for operating an actuator. The signals used within microcomputer circuits are almost always too small to be connected directly to the outside world” and some kind of interface must be used to translate them to a more appropriate form. The design of section of interface circuits is one of the most important tasks facing the engineer wishing to apply microcomputers. We have seen that in microcomputers information is represented as discrete patterns of bits; this digital form is most useful when the microcomputer is to be connected to equipment which can only be switched on or off, where each bit might represent the state of a switch or actuator. To solve real-world problems, a microcontroller must have more than just a CPU, a program, and a data memory. In addition, it must contain hardware allowing the CPU to access information from the outside world. Once the CPU gathers information and processes the data, it must also be able to effect change on some portion of the outside world. These hardware devices, called peripherals, are the CPU’s window to the outside.The most basic form of peripheral available on microcontrollers is the general purpose I70 port. Each of the I/O pins can be used as either an input or an output. The function of each pin is determined by setting or clearing corresponding bits in a corresponding data direction register during the initialization stage of a program. Each output pin may be driven to either a logic one or a logic zero by using CPU instructions to pinmay be viewed (or read.) by the CPU using program instructions. Some type of serial unit is included on microcontrollers to allow the CPU to communicate bit-serially with external devices. Using a bit serial format instead of bit-parallel format requires fewer I/O pins to perform the communication function, which makes it less expensive, but slower. Serial transmissions are performed either synchronously or asynchronously.3 SYSTEM GENERAL DESIGNThe hardware block diagram of the TC is shown in Fig. 1. The system hardware includes the micro controller, temperature detection circuit, keyboard control circuit, clock circuit, Display, alarm, drive circuit and external RAM. Based on the AT89C51, the DS18B20 will transfer the temperature signal detected to digital signal. And the signal is sent to the micro controller for processing. At last the temperature value is showed on the LCD 12232F. These steps are used to achieve the temperature detection. Using the keyboard interface chip HD7279 to set the temperature value, using the micro controller to keep a certain temperature, and using the LCD to show the preset value for controlling the temperature. In addition, the clock chip DS1302 is used to show time and the external RAM 6264 is used to save the monitoring data. An alarm will be given by buzzer in time if the temperature exceeds the upper and lower limit value of the temperature.3.1 HARDWARE DESIGNA. Micro controllerThe AT89C51 is a low-power, high-performance CMOS 8-bit micro controller with 4K bytes of in-system programmable Flash memory. The device is manufactured using At mel’s high-density nonvolatile memory technology and is compatible with the industry-standard 80C51 instruction set and pin out. The on-chip Flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory programmer. By combining a versatile 8-bit CPU with in-system programmable Flash on a monolithic chip, the At mel AT89C51 is a powerful micro controller which provides a highly-flexible and cost-effective solution to many embedded control applications. Minimum system of the micro controller is shown inFig. 2. In order to save monitoring data, the 6264 is used as an external RAM. It is a static RAM chip, low-power with 8K bytes memory.B. Temperature Detection CircuitThe temperature sensor is the key part in the system. The Dallas DS18B20 is used, which supports the 1-Wire bus interface, and the ON-BOARD Patented is used internally. All the sensor parts and the converting circuit are integrated in integrated circuit like a transistor [1]. Its measure range is -55℃~125 ℃, and the precision between -10℃~85℃is ±0.5℃[2 ,3]. The temperature collected by the DS18B20 is transmitted in the 1-Wire bus way, and this highly raises the system anti-jamming and makes it fit in situ temperature measurement of the rugged environment [4]. There are two power supply ways for the DS18B20. The first is external power supply: the first pin of the DS18B20 is connected to the ground; the second pin serves as signal wire and the third is connected to the power. The second way is parasite power supply [5]. As the parasite power supply will lead to the complexity of the hardware circuit, the difficulty of the software control and the performance degradation of the chip, etc. But the DS18B20(s) can be connected to the I/O port of the micro controller in the external power supply way and it is more popular. Therefore the external power supply is used and the second pin is connected to the pin P1.3 of the AT89S51. Actually, if there are multipoint to be detected, the DS18B20(s) can be connected to the 1-Wire bus. But when the number is over 8, there is a concern to the driving and the more complex software design as well as the length of the 1-Wire bus. Normally it is no more than 50m. To achieve distant control, the system can be designed in to a wireless one to breakthe length limit of the 1-Wire bus [6].C. LCD CircuitThe LCD 12232F is used, which can be used to show characters, temperature value and time, and supply a friendly display interface. The 12232F is a LCD with 8192 128×32 pixels Chinese character database and 128 16×8 pixels ASCII character set graphics. It mainly consists of row drive/column drive and 128×32 full lattice LCD with the function of displaying graphics as well as 7.5×2 Chinese characters. It is in aparallel or serial mode to connect to external CPU [7]. In order to economize the hardware resource, the 12232F should be connected to the AT89S51 in serial mode with only 4 output ports used. The LCD grayscale can be changed by adjusting the variable resistor connected the pin Vlcd of the LCD. CLK is used to transmit serial communication clock. SID is used to transmit serial data. CS is used to enable control the LCD. L+ is used to control the LCD backlight power.D. Clock CircuitThe Dallas DS18B20 is used, which is a high performance, low-power and real-time clock chip with RAM. The DS18B20 serves in the system with calendar clock and is used to monitor the time. The time data is read and processed by the AT89C51 and then displayed by the LCD. Also the time can be adjusted by the keyboard. The DS18B20 crystal oscillator is set at 32768Hz, and the recommended compensation capacitance is 6pF. The oscillator frequency is lower, so it might be possible not to connect the capacitor, and this would not make a big difference to the time precision. The backup power supply can be connected to a 3.6V rechargeable battery.E. Keyboard Control CircuitThe keyboard interface in the system is driven by the HD7279A which has a +5V single power supply and which is connected to the keyboard and display without using any active-device. According to the basic requirements and functions of the system, only 6 buttons are needed. The system's functions are set by the AT89C51 receiving the entered data. In order to save the external resistor, the 1×6 keyboard is used, and the keyboard codes are defined as: 07H, 0FH, 17H, 1FH, 27H, 2FH. The order can be read out by reading the code instruction. HD7279A is connected to the AT89S51 in serial mode and only 4 ports are need. As shown in Fig. 6, DIG0~DIG5 and DP are respectively the column lines and row line ports of the six keys which achieve keyboard monitoring, decoding and key codes identification.F. Alarm CircuitIn order to simplify the circuit and convenient debugging, a 5V automatic buzzer is used in the alarm circuit [8]. And this make the software programming simplified. As shown in Fig. 7, it is controlled bythe PNP transistor 9012 whose base is connected to the pin P2.5 of the AT89C51. When the temperature exceeds the upper and lower limit value, the P2.5 output low level which makes the transistor be on and then an alarm is given by the buzzer.G. Drive CircuitA step motor is used as the drive device to control the temperature. The four-phase and eight-beat pulse distribution mode is used to drive motor and the simple delay program is used to handle the time interval between the pulses to obtain different rotational speed. There are two output states for the step motor. One: when the temperature is over the upper value, the motor rotates reversely (to low the temperature), while when lower than the lower limit value, the motor rotates normally (to raise the temperature); besides not equals the preset value. Two: when the temperature is at somewhere between the two ends and equals the preset value, the motor stops. These steps are used to achieve the temperature control. In addition, the motor speed can also be adjusted by relative buttons. As shown in Fig. 8, the code data is input through ports A11~A8 (be P2.3~P2.0) of the AT89C51 and inverted output by the inverter 74LS04. Finally it is amplified by the power amplifier 2803A to power the motor.3.2 SOFTWARE DESIGNAccording to the general design requirement and hardware circuit principle of the system, as well as the improvement of the program readability, transferability and the convenient debugging, the software design is modularized. The system flow mainly includes the following 8 steps: POST (Power-on self-test), system initiation, temperature detection, alarm handling, temperature control, clock chip DS18B20 operation, LCD and keyboard operation. The main program flow is shown in Fig. 9. Give a little analysis to the above 8 tasks, it is easy to find out that the last five tasks require the real time operation. But to the temperature detection it can be achieved with timer0 timing 1 second, that is to say temperature detection occurs per second. The system initiation includes global variable definition, RAM initiation, special function register initiation and peripheral equipment initiation. Global variable definition mainly finishes the interface definition of external interfacechip connected to the AT89C51, and special definition of some memory units. RAM initiation mainly refers to RAM processing. For example when the system is electrified the time code will be stored in the internal unit address or the scintillation flag will be cleared. The special function register initiation includes loading the initial value of timer and opening the interrupt. For example, when the system is electrified the timer is initialized. The peripheral equipment initiation refers to set the initial value of peripheral equipment. For example, when the system is electrified, the LCD should be initialized, the start-up display should be called, the temperature conversion command should be issued firstly and the clock chip DS18B20 should also be initialized. The alarm handling is mainly the lowering and the raising of temperature to make the temperature remain with the preset range. When the temperature is between the upper and the lower limit value, it goes to temperature control handling, that is to say the temperature need to be raised or lowered according to the preset value. By doing so make the condition temperature equal to the preset value and hence to reach the temperature target.4 CONCLUSIONThe temperature control system has the advantages of friendly human-computer interaction interface, simple hardware, low cost, high temperature control precision (error in the range of ±1 ℃), convenience and versatility, etc. It can be widely used in the occasions with -55℃to 125℃range, and there is a certain practical value.。
基于单片机的毕业论文题目有哪些很多物联网专业的学生对单片机非常感兴趣,不光是对专业的热爱,另外由于单片机是集成电路芯片,是控制整个流程最基础的环节,大多数理科生对这种控制式设计充满着好奇,下面,我们学术堂整理了多个基于单片机的毕业论文题目,欢迎各位借鉴。
基于单片机的毕业论文题目一:1、基于单片机的压电加速度传感器低频信号采集系统的设计2、基于单片机的超声测距系统3、基于C8051F005单片机的两相混合式直线步进电机驱动系统的设计4、基于单片机的工业在线数字图像检测系统研究与实现5、基于FPGA的8051单片机IP核设计及应用6、基于单片机的军需仓库温湿度测控系统研究7、单片机多主机通信模式在粮库温湿度监控系统中的应用8、基于单片机的中小水电站闸门控制系统9、基于单片机的正弦逆变电源研制10、单片机实验教学仿真系统的设计与开发11、基于单片机的温湿度检测系统的设计12、基于单片机的蓝牙接口设计及数据传输的实现13、基于单片机的多功能温度检测系统的设计与研究14、基于单片机的温度控制系统的研究15、行为导向教学策略在职校单片机课程教学中的应用研究16、逻辑电路与单片机的虚拟实验系统设计与实现17、基于单片机的LED显示系统18、基于单片机的校园安防系统19、基于MSP430单片机的红外甲烷检测仪设计及实现20、基于高性能单片机的无线LED彩灯控制系统的设计与实现21、基于AVR单片机教学实验板的设计22、基于单片机的阀岛控制系统的研究23、基于AT89S51单片机实验开发系统设计24、基于单片机和GPRS数据传输技术的研究25、基于HCS12单片机的智能车底层控制系统研究26、单片机GPRS智能终端及远程工业监控技术研究27、基于单片机的MODBUS总线协议实现技术研究28、基于单片机的室内智能通风控制系统研究29、基于单片机的通用控制器设计与实现30、基于单片机控制的PTCR阻温特性测试系统的设计与实现31、Proteus在单片机教学中的应用32、基于单片机的变频变压电源设计33、基于单片机的监控系统控制部分的设计34、基于单片机的葡萄园防盗报警系统设计35、基于单片机的温度智能控制系统的设计与实现36、基于单片机的远程抄表系统的设计与研究37、基于单片机的温度测控系统在温室大棚中的设计与实现38、基于单片机的高精度随钻测斜仪系统开发39、基于16位单片机MC9S12DG128B智能车系统的设计基于单片机的毕业论文题目二:40、基于单片机的压力/液位控制系统的设计研究41、单片机与Internet网络的通信应用研究42、基于单片机控制的温室环境测控装置研究43、具有新型接口的MCS-51单片机实验系统设计44、基于单片机控制的直流恒流源的设计45、基于单片机的模糊控制方法及应用研究46、基于AT89S52单片机的煤矿瓦斯监测系统的研制47、基于AT89C51单片机的脉象信号采集系统研究48、基于DTMF技术的单片机远程通信系统研究49、基于单片机的GPRS无线数据采集与传输系统的设计50、基于单片机控制的柴油机喷油泵数据采集系统的设计与实现51、基于谐振技术及MK单片机的多路升压器研究设计52、基于单片机的数据串口通信53、基于单片机的智能寻迹系统设计54、压电式阀门定位器与单片机实验装置研制55、基于单片机的微型电子琴研究与实现56、基于单片机的恒温恒湿孵化器系统设计57、基于16位单片机MC9S12XS128的两轮自平衡智能车的系统研究与开发58、基于单片机的简易餐饮管理系统的设计与实现59、基于单片机的抛物槽式太阳能集热器跟踪系统设计60、基于单片机的大棚温湿度监测报警装置的研究与开发61、基于MSP430单片机的远传智能水表的设计与实现62、采用PIC单片机的真空断路器控制器设计研究63、基于IAP15F2K61S2的移动式多功能迷你单片机开发板64、基于单片机的空调红外线编解码系统的设计和实现65、基于单片机的图形化编程平台的设计与实现66、基于PIC单片机的图像数据采集系统的设计与实现67、基于单片机的仓库温湿度智能测控系统的设计与实现68、基于单片机的助爬器控制器的设计与实现69、手机和单片机控制系统的理论与应用研究70、基于FPGA的HOST与多单片机的串行通信71、基于单片机的机车试验设备数据采集器的研究72、MCS-51单片机芯片反向解剖以及正向设计的研究73、单片机自动微灌控制器的研究、设计与应用74、基于MSP430系列单片机的微机外围电路的通用化平台研究与设计75、基于CPLD的单片机结构设计研究76、单片机模糊控制晶闸管直流调压系统的研究77、模糊控制的单片机实现研究78、单片机嵌入式TCP/IP协议的研究与实现79、基于80C196KC单片机的舞蹈机器人控制系统80、基于PC+单片机的环境风洞风速控制系统的研究基于单片机的毕业论文题目三:81、单片机嵌入TCP/IP的研究与实现82、单片机系统仿真83、基于单片机的烘炉温度自动检测系统的研究与设计84、基于智能卡的预付费煤气表应用系统85、8XC196单片机集成开发环境的研制86、基于SPCE061A单片机的语音识别系统的研究87、基于嵌入式实时操作系统和TCP/IP协议的单片机测控系统88、基于单片机的电涡流式微位移传感器测量系统的研究89、基于AVR单片机的太阳光辐照测量装置研究90、基于单片机的野外信息检测记录系统的设计91、基于单片机的数据采集和无线数据传输系统设计92、基于Motorola MC68HC08系列单片机演示系统的设计与实现93、基于GSM技术的超远程无线设备监控系统研究94、微机与单片机实验平台的设计与开发95、基于单片机的TCP/IP技术研究及应用96、电渣炉单片机控制系统研究与设计97、单片机控制多功能信号发生器98、基于EDA技术的兼容MCS-51单片机IP核设计99、基于单片机的嵌入式USB主机研究与实现100、基于AVR单片机的应用设计实践101、模糊Smith智能控制方法的研究及其单片机实现102、基于单片机的直接数字频率合成(DDS)技术的应用研究103、基于单片机的机电产品控制系统开发104、基于增强型51系列单片机的TCP/IP协议栈的实现105、基于单片机的粮库温度监控系统设计106、基于VB的单片机虚拟实验软件的研究与开发107、基于单片机ATmega128的嵌入式工业控制器设计108、基于单片机控制的智能型金属探测器的设计109、基于多机通信的AVR单片机高级用户板的设计与开发110、基于单片机的数字磁通门传感器111、基于单片机的光纤光栅解调仪的研制112、MCS-51单片机构建机器人的实践研究113、基于VC的单片机软件式开发平台114、八位单片机以太网接入研究与实现115、基于单片机与Internet的数控机床远程监控系统的研发116、96系列单片机仿真器研究与设计117、单片机在中、小水电站闸门监控系统中的应用118、基于单片机大棚温湿度远程监控的设计与实现119、基于单片机和GPRS实验室安全报警监控系统研究120、基于STM32单片机的高精度超声波测距系统的设计基于单片机的毕业论文题目四:121、基于单片机的语音编码系统实现122、基于单片机的温湿度控制系统的研究与应用123、基于单片机的室内环境监测系统设计124、基于51单片机的教学实验系统的设计与开发125、基于单片机的智能控制器研究与设计126、基于8051单片机的温度控制系统127、基于单片机的超低功耗智能遥控车位锁的设计与实现128、基于单片机的智能玩具电动车的设计与实现129、基于单片机电锅炉恒温控制系统的电路设计130、基于单片机控制的离子水去污消毒装置的研究与开发131、以STM8S208单片机为主控的编程器的设计与实现132、基于单片机的温室大棚环境参数自动控制系统133、基于单片机的温室数据采集系统的研究134、基于单片机的太阳能干燥温湿度检测系统的研究135、基于单片机和FPGA的高精度智能测时仪的设计136、基于PC机和单片机主从式测控系统的设计137、基于神经元芯片和单片机双处理器结构LON节点的研究138、单片机实训课程的创新设计探讨139、AT89S52单片机实验系统的开发与应用140、基于单片机的模糊控制在节水灌溉控制系统中的实现141、基于ATmega128单片机的运动控制系统的设计与实现142、基于FPGA和单片机的CCD数据采集与处理143、基于MCS_51单片机安防系统监控主机的设计与实现144、基于单片机的超声测距仪研究与开发145、基于STC89单片机的实验教学系统146、单片机系统应用研究147、单片机在太阳能中央热水系统中的应用148、AVR单片机在试验机设备开发中的应用149、基于单片机的二维运动控制系统的研究150、基于LabVIEW和单片机的切削温度虚拟仪器的研究151、单片机编程仿真实验系统的设计与实现152、基于单片机的卫星天线自动定位控制系统开发与研究153、MC9S12系列单片机程序下载系统的设计与实现154、基于单片机控制的电动机保护器设计155、基于MSP430单片机的多路信号采集与无线传输系统的设计156、基于C51系列单片机LED驱动电源设计157、基于Synopsys的8051单片机IP核的设计158、基于单片机的大棚温湿度远程监测系统的设计159、基于单片机的室内无线环境监测系统设计与应用160、单片机控制的步进电机文检系统基于单片机的毕业论文题目五:161、基于飞思卡尔单片机的智能车及其调试系统设计162、基于单片机控制的金属探测器设计163、基于单片机的场地分类仪设计164、基于单片机的温湿度控制系统的设计165、基于AVR单片机的教学实验系统的设计与开发166、单片机温度测量和控制系统的设计与实现167、基于LabVIEW和单片机的太阳自动跟踪监控系统168、基于AVR高速单片机的以太网络终端设计169、基于AT89C52单片机温度控制系统的设计170、基于PC机与单片机的分布式禽舍环境监控系统研究171、基于单片机的昆虫加热板温度测控系统设计172、基于单片机平台下的语音识别技术应用方式研究173、基于单片机的家庭智能防火防盗系统174、基于AVR单片机的空气净化器控制系统的硬件设计与实现175、基于单片机的语音识别系统设计及实现176、基于单片机的智能物料搬运控制系统研究177、基于单片机和PC串口通信的温度采集系统设计178、基于单片机的智能家居系统的研究179、基于“教师主导-学生主体”教学模式下的单片机教学策略研究180、单片机模糊PID控制双闭环直流调速系统研究181、基于PROTEUS的单片机仿真实验系统研究及应用182、停车场引导系统的研究与实践183、基于单片机的温度检测系统的研究与实现184、基于IAP15F2K61S2单片机实验系统的设计185、基于AT89C51单片机的LED点阵显示系统设计186、基于ATmega128单片机的空气净化器控制系统设计与研究187、基于AT89C52单片机的智能微喷灌控制系统设计188、基于单片机的蔬菜大棚温度控制系统189、基于单片机的轮式机器人设计190、基于单片机的LED显示屏系统设计与PROTEUS仿真191、基于STC单片机的智能温湿度控制器的设计与实现192、基于Simulink与AVR单片机的多接口音频系统的仿真与构建193、基于单片机的定时温控系统设计与研究194、基于单片机的100kV高压直流电源的研制195、基于单片机的LED智能照明驱动及控制系统196、基于虚拟仪器的单片机实验平台开发197、基于行动导向的中职机电专业《单片机》课程教学研究198、USB接口打印机的单片机控制系统开发199、基于多核心板互换的单片机实训教学系统的设计200、基于单片机的传感器综合电路的设计。
东华理工大学毕业设计题目:基于单片机的温度控制系统的研究英文题目:Design of Temperature Control SystemBased on SCM作者: XXXXXXX摘要单片微型计算机是随着超大规模集成电路技术的发展而诞生的,由于它具有体积小、功能强、性价比高等特点,把单片机应用于温度控制中,采用单片机做主控单元,无触点控制,可完成对温度的采集和控制的要求。
所以广泛应用于电子仪表、家用电器、节能装置、机器人、工业控制等诸多领域,使产品小型化、智能化,既提高了产品的功能和质量,又降低了成本,简化了设计。
本文主要介绍单片机在热处理炉温度控制中的应用,对温度控制模块的组成及主要所选器件进行了详细的介绍。
并根据具体的要求本文编写了适合本设计的软件程序。
温度控制在热处理工艺过程中,是一个非常重要的环节。
控制精度直接影响着产品质量的好坏。
本文研究的电炉是一种具有纯滞后的大惯性系统,传统的加热炉控制系统大多建立在一定的模型基础上,难以保证加热工艺要求。
因此本文将模糊控制算法引入传统的加热炉控制系统构成智能模糊控制系统。
关键词:单片机;热处理温度控制;模糊 PID。
AbstractThe single slice of microcomputers emerges with development of very large scale integration technology, because it has small , the function is strong , high characteristic of cost performance, applies the one-chip computer to temperature control, adopt the one-chip computer to do the top management unit, control contactlessly , can finish the requisition for collection and control of temperature . So apply to such a great deal of fields as electronic instrument , household appliances , energy-conservation fitting , the robot , industrial control ,etc. extensively, make the products miniaturized , intelligented , has already improved the function and quality of the products, have lower costs again, has simplified and designed. This text introduces the application of the one-chip computer in the temperature control of heat-treatment furnace mainly, composition and selecting to introduce the detailed one with device mainly of the temperature control module . And has written the suitable software procedure originally designed according to the concrete demand this text.Temperature in heat treatment craft is very important. Control precision effect directly the quality of the product. The electric stove is a kind pure great inertia system, and the traditional heat control system is based on some certain model, so is hard to satisfy the technological requirement.This paper will adopt fuzzy control algorithm to build a intelligent fuzzy control system.Keyword:SCM;Temperature control;Fuzzy PID.目录第1章绪论 (1)1.1 引言 (1)1.2 控制器发展现状 (1)1.2.1 PID 控制器的发展现状 (1)1.2.2 模糊 PID 控制 (2)1.2.3 模糊自整定 PID 控制 (2)1.3 电炉采用模糊自整定 PID 控制的可行性 (3)第2章方案简介 (4)2.1 课题背景与意义 (4)2.2 系统方案概述 (5)2.3 系统设计方案 (6)第3章系统硬件和电路设计 (7)3.1引言 (7)3.2 系统的总体结构 (7)3.3 温度检测电路 (8)3.3.1 温度传感器 (8)3.3.2 测量放大器的组成 (8)3.3.3 热电偶冷端温度补偿方法 (9)3.4 多路开关的选择 (9)3.5 A/D转换器的选择及连接 (10)3.6 单片机系统的扩展 (11)3.6.1 系统扩展概述 (11)3.6.2 常用扩展器件简介 (12)3.7 存储器的扩展 (13)3.7.1 程序存储器的扩展 (13)3.7.1.1只读存储器简介 (13)3.7.1.2 EPROM2764简介 (13)3.7.2 数据存储器的扩展 (15)3.7.2.1数据存储器概述 (15)3.7.2.2静态RAM6264简介 (15)3.7.2.3数据存储器扩展举例 (15)3.8 单片机I/O口的扩展(8155扩展芯片) (16)3.8.1 8155的结构和引脚 (16)3.8.2 8155的控制字的及其工作方式 (17)3.8.3 8155与8031的连接 (18)3.9 看门狗、报警、复位和时钟电路的设计 (19)3.9.1看门狗电路的设计 (19)3.9.2报警电路的设计 (20)3.9.3复位电路的设计 (20)3.9.4 时钟电路的设计 (21)3.10 键盘与显示电路的设计 (22)3.10.1 LED数码显示器的接口电路 (22)3.10.2键盘接口电路 (23)3.11 DAC7521数模转换接口 (24)3.12 隔离放大器的设计 (25)3.13 可控硅调功控温 (26)3.13.1过零触发调功器的组成 (25)3.13.2主要电路介绍 (27)3.14 单片机开关稳压电源设计 (28)第4章系统软件设计 (30)4.1 主要程序的框图 (30)4.1.1主程序框图 (30)4.1.2显示子程序 (31)4.1.3键盘中断服务子程序 (32)4.1.4恒温及升温测控子程序 (33)4.1.5降温测控子程序 (34)4.2 模糊自整定 PID 控制算法 (35)参考文献 (38)设计总结 (38)致谢 (40)附录 (41)第1章 绪论1.1 引言工业生产中使用的热处理设备种类繁多,如窖炉、鼓风炉、烘炉、退火炉、锅炉等。
基于单片机的毕业论文题目有哪些很多物联网专业的学生对单片机非常感兴趣,不光是对专业的热爱,另外由于单片机是集成电路芯片,是控制整个流程最基础的环节,大多数理科生对这种控制式设计充满着好奇,下面,我们学术堂整理了多个基于单片机的毕业论文题目,欢迎各位借鉴。
基于单片机的毕业论文题目一:1、基于单片机的压电加速度传感器低频信号采集系统的设计2、基于单片机的超声测距系统13、基于C8051F005单片机的两相混合式直线步进电机驱动系统的设计4、基于单片机的工业在线数字图像检测系统研究与实现5、基于FPGA的8051单片机IP核设计及应用6、基于单片机的军需仓库温湿度测控系统研究7、单片机多主机通信模式在粮库温湿度监控系统中的应用8、基于单片机的中小水电站闸门控制系统9、基于单片机的正弦逆变电源研制10、单片机实验教学仿真系统的设计与开发11、基于单片机的温湿度检测系统的设计12、基于单片机的蓝牙接口设计及数据传输的实现13、基于单片机的多功能温度检测系统的设计与研究14、基于单片机的温度控制系统的研究15、行为导向教学策略在职校单片机课程教学中的应用研究16、逻辑电路与单片机的虚拟实验系统设计与实现17、基于单片机的LED显示系统18、基于单片机的校园安防系统219、基于MSP430单片机的红外甲烷检测仪设计及实现20、基于高性能单片机的无线LED彩灯控制系统的设计与实现21、基于AVR单片机教学实验板的设计22、基于单片机的阀岛控制系统的研究23、基于AT89S51单片机实验开发系统设计24、基于单片机和GPRS数据传输技术的研究25、基于HCS12单片机的智能车底层控制系统研究26、单片机GPRS智能终端及远程工业监控技术研究27、基于单片机的MODBUS总线协议实现技术研究28、基于单片机的室内智能通风控制系统研究29、基于单片机的通用控制器设计与实现30、基于单片机控制的PTCR阻温特性测试系统的设计与实现31、Proteus在单片机教学中的应用32、基于单片机的变频变压电源设计33、基于单片机的监控系统控制部分的设计34、基于单片机的葡萄园防盗报警系统设计335、基于单片机的温度智能控制系统的设计与实现36、基于单片机的远程抄表系统的设计与研究37、基于单片机的温度测控系统在温室大棚中的设计与实现38、基于单片机的高精度随钻测斜仪系统开发39、基于16位单片机MC9S12DG128B智能车系统的设计基于单片机的毕业论文题目二:40、基于单片机的压力/液位控制系统的设计研究41、单片机与Internet网络的通信应用研究42、基于单片机控制的温室环境测控装置研究43、具有新型接口的MCS-51单片机实验系统设计44、基于单片机控制的直流恒流源的设计45、基于单片机的模糊控制方法及应用研究46、基于AT89S52单片机的煤矿瓦斯监测系统的研制47、基于AT89C51单片机的脉象信号采集系统研究448、基于DTMF技术的单片机远程通信系统研究49、基于单片机的GPRS无线数据采集与传输系统的设计50、基于单片机控制的柴油机喷油泵数据采集系统的设计与实现51、基于谐振技术及MK单片机的多路升压器研究设计52、基于单片机的数据串口通信53、基于单片机的智能寻迹系统设计54、压电式阀门定位器与单片机实验装置研制55、基于单片机的微型电子琴研究与实现56、基于单片机的恒温恒湿孵化器系统设计57、基于16位单片机MC9S12XS128的两轮自平衡智能车的系统研究与开发58、基于单片机的简易餐饮管理系统的设计与实现59、基于单片机的抛物槽式太阳能集热器跟踪系统设计60、基于单片机的大棚温湿度监测报警装置的研究与开发61、基于MSP430单片机的远传智能水表的设计与实现62、采用PIC单片机的真空断路器控制器设计研究63、基于IAP15F2K61S2的移动式多功能迷你单片机开发板564、基于单片机的空调红外线编解码系统的设计和实现65、基于单片机的图形化编程平台的设计与实现66、基于PIC单片机的图像数据采集系统的设计与实现67、基于单片机的仓库温湿度智能测控系统的设计与实现68、基于单片机的助爬器控制器的设计与实现69、手机和单片机控制系统的理论与应用研究70、基于FPGA的HOST与多单片机的串行通信71、基于单片机的机车试验设备数据采集器的研究72、MCS-51单片机芯片反向解剖以及正向设计的研究73、单片机自动微灌控制器的研究、设计与应用74、基于MSP430系列单片机的微机外围电路的通用化平台研究与设计75、基于CPLD的单片机结构设计研究76、单片机模糊控制晶闸管直流调压系统的研究77、模糊控制的单片机实现研究78、单片机嵌入式TCP/IP协议的研究与实现79、基于80C196KC单片机的舞蹈机器人控制系统680、基于PC+单片机的环境风洞风速控制系统的研究基于单片机的毕业论文题目三:81、单片机嵌入TCP/IP的研究与实现82、单片机系统仿真83、基于单片机的烘炉温度自动检测系统的研究与设计84、基于智能卡的预付费煤气表应用系统85、8XC196单片机集成开发环境的研制86、基于SPCE061A单片机的语音识别系统的研究87、基于嵌入式实时操作系统和TCP/IP协议的单片机测控系统88、基于单片机的电涡流式微位移传感器测量系统的研究89、基于AVR单片机的太阳光辐照测量装置研究90、基于单片机的野外信息检测记录系统的设计91、基于单片机的数据采集和无线数据传输系统设计92、基于Motorola MC68HC08系列单片机演示系统的设计与实现793、基于GSM技术的超远程无线设备监控系统研究94、微机与单片机实验平台的设计与开发95、基于单片机的TCP/IP技术研究及应用96、电渣炉单片机控制系统研究与设计97、单片机控制多功能信号发生器98、基于EDA技术的兼容MCS-51单片机IP核设计99、基于单片机的嵌入式USB主机研究与实现100、基于AVR单片机的应用设计实践101、模糊Smith智能控制方法的研究及其单片机实现102、基于单片机的直接数字频率合成(DDS)技术的应用研究103、基于单片机的机电产品控制系统开发104、基于增强型51系列单片机的TCP/IP协议栈的实现105、基于单片机的粮库温度监控系统设计106、基于VB的单片机虚拟实验软件的研究与开发107、基于单片机ATmega128的嵌入式工业控制器设计108、基于单片机控制的智能型金属探测器的设计8109、基于多机通信的AVR单片机高级用户板的设计与开发110、基于单片机的数字磁通门传感器111、基于单片机的光纤光栅解调仪的研制112、MCS-51单片机构建机器人的实践研究113、基于VC的单片机软件式开发平台114、八位单片机以太网接入研究与实现115、基于单片机与Internet的数控机床远程监控系统的研发116、96系列单片机仿真器研究与设计117、单片机在中、小水电站闸门监控系统中的应用118、基于单片机大棚温湿度远程监控的设计与实现119、基于单片机和GPRS实验室安全报警监控系统研究120、基于STM32单片机的高精度超声波测距系统的设计基于单片机的毕业论文题目四:121、基于单片机的语音编码系统实现9122、基于单片机的温湿度控制系统的研究与应用123、基于单片机的室内环境监测系统设计124、基于51单片机的教学实验系统的设计与开发125、基于单片机的智能控制器研究与设计126、基于8051单片机的温度控制系统127、基于单片机的超低功耗智能遥控车位锁的设计与实现128、基于单片机的智能玩具电动车的设计与实现129、基于单片机电锅炉恒温控制系统的电路设计130、基于单片机控制的离子水去污消毒装置的研究与开发131、以STM8S208单片机为主控的编程器的设计与实现132、基于单片机的温室大棚环境参数自动控制系统133、基于单片机的温室数据采集系统的研究134、基于单片机的太阳能干燥温湿度检测系统的研究135、基于单片机和FPGA的高精度智能测时仪的设计136、基于PC机和单片机主从式测控系统的设计137、基于神经元芯片和单片机双处理器结构LON节点的研究10138、单片机实训课程的创新设计探讨139、AT89S52单片机实验系统的开发与应用140、基于单片机的模糊控制在节水灌溉控制系统中的实现141、基于ATmega128单片机的运动控制系统的设计与实现142、基于FPGA和单片机的CCD数据采集与处理143、基于MCS_51单片机安防系统监控主机的设计与实现144、基于单片机的超声测距仪研究与开发145、基于STC89单片机的实验教学系统146、单片机系统应用研究147、单片机在太阳能中央热水系统中的应用148、AVR单片机在试验机设备开发中的应用149、基于单片机的二维运动控制系统的研究150、基于LabVIEW和单片机的切削温度虚拟仪器的研究151、单片机编程仿真实验系统的设计与实现152、基于单片机的卫星天线自动定位控制系统开发与研究153、MC9S12系列单片机程序下载系统的设计与实现11154、基于单片机控制的电动机保护器设计155、基于MSP430单片机的多路信号采集与无线传输系统的设计156、基于C51系列单片机LED驱动电源设计157、基于Synopsys的8051单片机IP核的设计158、基于单片机的大棚温湿度远程监测系统的设计159、基于单片机的室内无线环境监测系统设计与应用160、单片机控制的步进电机文检系统基于单片机的毕业论文题目五:161、基于飞思卡尔单片机的智能车及其调试系统设计162、基于单片机控制的金属探测器设计163、基于单片机的场地分类仪设计164、基于单片机的温湿度控制系统的设计165、基于AVR单片机的教学实验系统的设计与开发166、单片机温度测量和控制系统的设计与实现12167、基于LabVIEW和单片机的太阳自动跟踪监控系统168、基于AVR高速单片机的以太网络终端设计169、基于AT89C52单片机温度控制系统的设计170、基于PC机与单片机的分布式禽舍环境监控系统研究171、基于单片机的昆虫加热板温度测控系统设计172、基于单片机平台下的语音识别技术应用方式研究173、基于单片机的家庭智能防火防盗系统174、基于AVR单片机的空气净化器控制系统的硬件设计与实现175、基于单片机的语音识别系统设计及实现176、基于单片机的智能物料搬运控制系统研究177、基于单片机和PC串口通信的温度采集系统设计178、基于单片机的智能家居系统的研究179、基于“教师主导-学生主体”教学模式下的单片机教学策略研究180、单片机模糊PID控制双闭环直流调速系统研究181、基于PROTEUS的单片机仿真实验系统研究及应用182、停车场引导系统的研究与实践13183、基于单片机的温度检测系统的研究与实现184、基于IAP15F2K61S2单片机实验系统的设计185、基于AT89C51单片机的LED点阵显示系统设计186、基于ATmega128单片机的空气净化器控制系统设计与研究187、基于AT89C52单片机的智能微喷灌控制系统设计188、基于单片机的蔬菜大棚温度控制系统189、基于单片机的轮式机器人设计190、基于单片机的LED显示屏系统设计与PROTEUS仿真191、基于STC单片机的智能温湿度控制器的设计与实现192、基于Simulink与AVR单片机的多接口音频系统的仿真与构建193、基于单片机的定时温控系统设计与研究194、基于单片机的100kV高压直流电源的研制195、基于单片机的LED智能照明驱动及控制系统196、基于虚拟仪器的单片机实验平台开发197、基于行动导向的中职机电专业《单片机》课程教学研究198、USB接口打印机的单片机控制系统开发14199、基于多核心板互换的单片机实训教学系统的设计200、基于单片机的传感器综合电路的设计15。
单片机C语言课题设计报告设计题目:温度检测电气系2011级通信技术一班级通信技术一班通才达识,信手拈来通才达识,信手拈来1摘要本课题以51单片机为核心实现智能化温度测量。
利用18B20温度传感器获取温度信号,将需要测量的温度信号自动转化为数字信号,利用单总线和单片机交换数据,最终单片机将信号转换成LCD 可以识别的信息显示输出。
基于STC90C516RD+STC90C516RD+的单片机的智能温度检测系统,的单片机的智能温度检测系统,设计采用18B20温度传感器,其分辨率可编程设计。
本课题设计应用于温度变化缓慢的空间,综合考虑,以降低灵敏度来提高显示精度。
设计使用12位分辨率,因其最高4位代表温度极性,故实际使用为11位半,位半,而温度测量范围为而温度测量范围为而温度测量范围为-55-55-55℃~℃~℃~+125+125+125℃,℃,则其分辨力为0.06250.0625℃。
℃。
设计使用LCD1602显示器,可显示16*2个英文字符,显示器显示实时温度和过温警告信息,和过温警告信息,传感器异常信息设。
传感器异常信息设。
传感器异常信息设。
计使用蜂鸣器做警报发生器,计使用蜂鸣器做警报发生器,计使用蜂鸣器做警报发生器,当温度超过当温度超过设定值时播放《卡农》,当传感器异常时播放嘟嘟音。
单片机C 语言课题设计报告语言课题设计报告电动世界,气定乾坤2目录一、设计功能一、设计功能................................. ................................. 3 二、系统设计二、系统设计................................. .................................3 三、器件选择三、器件选择................................. .................................3 3.1温度信号采集模块 (3)3.1.1 DS18B20 3.1.1 DS18B20 数字式温度传感器数字式温度传感器..................... 4 3.1.2 DS18B20特性 .................................. 4 3.1.3 DS18B20结构 .................................. 5 3.1.4 DS18B20测温原理 .............................. 6 3.1.5 DS18B20的读写功能 ............................ 6 3.2 3.2 液晶显示器液晶显示器1602LCD................................. 9 3.2.1引脚功能说明 ................................. 10 3.2.2 1602LCD 的指令说明及时序 ..................... 10 3.2.3 1602LCD 的一般初始化过程 (10)四、软件设计四、软件设计................................ ................................11 4.1 1602LCD 程序设计流程图 ........................... 11 4.2 DS18B20程序设计流程图 ............................ 12 4.3 4.3 主程序设计流程图主程序设计流程图................................. 13 五、设计总结五、设计总结................................. ................................. 2 六、参考文献六、参考文献................................. ................................. 2 七、硬件原理图及仿真七、硬件原理图及仿真......................... .........................3 7.1系统硬件原理图 ..................................... 3 7.2开机滚动显示界面 ................................... 4 7.3临界温度设置界面 ................................... 4 7.4传感器异常警告界面 (4)电气系2011级通信技术一班级通信技术一班通才达识,信手拈来通才达识,信手拈来3温度温度DS18B20 LCD 显示显示过温函数功能模块能模块传感器异常函数功能模块数功能模块D0D1D2D3D4D5D6D7XT XTAL2AL218XT XTAL1AL119ALE 30EA31PSEN29RST 9P0.0/AD039P0.1/AD138P0.2/AD237P0.3/AD336P0.4/AD435P0.5/AD534P0.6/AD633P0.7/AD732P2.7/A1528P2.0/A821P2.1/A922P2.2/A1023P2.3/A1124P2.4/A1225P2.5/A1326P2.6/A1427P1.01P1.12P1.23P1.34P1.45P1.56P1.67P1.78P3.0/RXD 10P3.1/TXD11P3.2/INT012P3.3/INT113P3.4/T014P3.7/RD17P3.6/WR 16P3.5/T115U180C51X1CRYST CRYSTAL ALC122pFC222pFGNDR110kC31uFVCCGND234567891RP1RESPACK-8VCC0.0DQ 2VCC 3GND 1U2DS18B20R24.7K LCD1LM016LLS2SOUNDERMUC八、程序清单八、程序清单................................. .................................5 一、设计功能·由单片机、温度传感器以及液晶显示器等构成高精度温度监测系统。
Design of the Temperature Control System Based on AT89C51ABSTRACTThe principle and functions of the temperature control system based on micro controller AT89C51 are studied, and the temperature measurement unit consists of the 1-Wire bus digital temperature sensor DS18B20. The system can be expected to detect the preset temperature, display time and save monitoring data. An alarm will be given by system if the temperature exceeds the upper and lower limit value of the temperature which can be set discretionarily and then automatic control is achieved, thus the temperature is achieved monitoring intelligently within a certain range. Basing on principle of the system, it is easy to make a variety of other non-linear control systems so long as the software design is reasonably changed. The system has been proved to be accurate, reliable and satisfied through field practice. KEYWORDS: AT89C51; micro controller; DS18B20; temperature1 INTRODUCTIONTemperature is a very important parameter in human life. In the modern society, temperature control (TC) is not only used in industrial production, but also widely used in other fields. With the improvement of the life quality, we can find the TC appliance in hotels, factories and home as well. And the trend that TC will better serve the whole society, so it is of great significance to measure and control the temperature. Based on the AT89C51 and temperature sensor DS18B20, this system controls the condition temperature intelligently. The temperature can be set discretionarily within a certain range. The system can show the time on LCD, and save monitoring data; and automatically control the temperature when the condition temperature exceeds the upper and lower limit value. By doing so it is to keep the temperature unchanged. The system is of high anti-jamming, high control precision and flexible design; it also fits the rugged environment. It is mainly used in people's life to improve the quality of the work and life. It is also versatile, so that it can be convenient to extend the use of the system. So the design is of profound importance. The general design, hardware design and software design of the system are covered.1.1 IntroductionThe 8-bit AT89C51 CHMOS microcontrollers are designed to handle high-speed calculations and fast input/output operations. MCS 51 microcontrollers are typically used for high-speed event control systems. Commercial applications include modems, motor-control systems, printers, photocopiers, air conditioner control systems, disk drives, and medical instruments. The automotive industry use MCS 51 microcontrollers in engine-control systems, airbags, suspension systems, and antilock braking systems (ABS). The AT89C51 is especially well suited to applications that benefit from its processing speed and enhanced on-chip peripheral functions set, such as automotive power-train control, vehicle dynamic suspension, antilock braking, and stability control applications. Because of these critical applications, the market requires a reliable cost-effective controller with a low interrupt latency response, ability to service the high number of time and event driven integrated peripherals needed in real time applications, and a CPU with above average processing power in a single package. The financial and legal risk of having devices that operate unpredictably is very high. Once in the market, particularly in mission critical applications such as an autopilot or anti-lock braking system, mistakes are financially prohibitive. Redesign costs can run as high as a $500K, much more if the fix means 2 back annotating it across a product family that share the same core and/or peripheral design flaw. In addition, field replacements of components is extremely expensive, as the devices are typically sealed in modules with a total value several times that of the component. To mitigate these problems, it is essential that comprehensive testing of the controllers be carried out at both the component level and system level under worst case environmental and voltage conditions. This complete and thorough validation necessitates not only a well-defined process but also a proper environment and tools to facilitate and execute the mission successfully. Intel Chandler Platform Engineering group provides post silicon system validation (SV) of various micro-controllers and processors. The system validation process can be broken into three major parts. The type of the device and its application requirements determine which types of testing are performed on the device.1.2 The AT89C51 provides the following standard features4Kbytes of Flash, 128 bytes of RAM, 32 I/O lines, two 16-bittimer/counters, a five vector two-level interrupt architecture, a full duple ser-ial port, on-chip oscillatorand clock circuitry. In addition, the AT89C51 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port and interrupt sys -tem to continue functioning. The Power-down Mode saves the RAM contents but freezes the oscil–lator disabling all other chip functions until the next hardware reset.1.3Pin DescriptionVCC Supply voltage.GND Ground.Port 0:Port 0 is an 8-bit open-drain bi-directional I/O port. As an output port, each pin can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as high impedance inputs. Port 0 may also be configured to be the multiplexed low order address/data bus during accesses to external program and data memory. In this mode P0 has internal pull ups. Port 0 also receives the code bytes during Flash programming, and outputs the code bytes during program verification. External pull ups are required during program verification.Port 1:Port 1 is an 8-bit bi-directional I/O port with internal pull ups. The Port 1 output buffers can sink/so -urce four TTL inputs. When 1s are written to Port 1 pins they are pulled high by the internal pull ups and can be used as inputs. As inputs, Port 1 pins that are externally being pulled low will source current (IIL) because of the internal pullups. Port 1 also receives the low-order address bytes during Flash programming and verification.Port 2:Port 2 is an 8-bit bi-directional I/O port with internal pull ups. The Port 2 output buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins they are pulled high by the internal pull ups and can be used as inputs. As inputs, Port 2 pins that are externally being pulled low will source current (IIL) because of the internal pull ups. Port 2 emits the high-order address byte during fetches from external program memory and during accesses to Port 2 pins that are externally being pulled low will source current (IIL) because of the internal pull ups. Port 2 emits the high-order address byte during fetches from external program memory and during accesses to external data memory that use 16-bit addresses (MOVX@DPTR). In this application, it uses strong internal pull-ups when emitting 1s. During accesses to external data memory that use 8-bit addresses (MOVX @ RI), Port 2 emits the contents of the P2 Special Function Register. Port 2 also receives the high-orderaddress bits and some control signals durin Flash programming and verification.Port 3:Port 3 is an 8-bit bi-directional I/O port with internal pull ups. The Port 3 output buffers can sink/sou -rce four TTL inputs. When 1s are written to Port 3 pins they are pulled high by the internal pull ups and can be used as inputs. As inputs, Port 3 pins that are externally being pulled low will source current (IIL) because of the pull ups.Port 3 also serves the functions of various special features of the AT89C51 as listed below:RST:Reset input. A high on this pin for two machine cycles while the oscillator is running resets the device.ALE/PROG:Address Latch Enable output pulse for latching the low byte of the address during accesses to external memory. This pin is also the program pulse input (PROG) during Flash programming. In normal operation ALE is emitted at a constant rate of 1/6 the oscillator frequency, and may be used for external timing or clocking purposes. Note, however, that one ALE pulse is skipped duri-ng each access to external Data Memory. If desired, ALE operation can be disabled by setting bit 0 of SFR location 8EH. With the bit set, ALE is active only during a MOVX or MOVC instruction. Otherwise, the pin is weakly pulled high. Setting the ALE-disable bit has no effect if the microcontroller is in external execution mode.PSEN:Program Store Enable is the read strobe to external program memory. When theAT89C51 is executing code from external program memory, PSEN is activated twice each machine cycle, except that two PSEN activations are skipped during each access to external data memory.EA/VPP:External Access Enable. EA must be strapped to GND in order to enable the device to fetch code from external program memory locations starting at 0000H up to FFFFH. Note, however, that if lock bit 1 is programmed, EA will be internally latched on reset. EA should be strapped to VCC for internal program executions. This pin alsreceives the 12-volt programming enable voltage (VPP) during Flash programming, for parts that require 12-volt VPP.XTAL1:Input to the inverting oscillator amplifier and input to the internal clock operating circuit.XTAL2 :Output from the inverting oscillator amplifier. Oscillator CharacteristicsXTAL1 and XTAL2 are the input and output, respectively, of an inverting amplifier which can be configured for use as an on-chip oscillator, as shownin Figure 1. Either a quartz crystal or ceramic resonator may be used. To drive the device from an external clock source, XTAL2 should be left unconnected while XTAL1 is driven as shown in Figure 2.There are no requirements on the duty cycle of the external clock signal, since the input to the internal clocking circuitry is through a divide-by-two flip-flop, but minimum and maximum voltage high and low time specifications must be observed. Idle Mode In idle mode, the CPU puts itself to sleep while all the on chip peripherals remain active. The mode is invoked by software. The content of the on-chip RAM and all the special functions registers remain unchanged during this mode. The idle mode can be terminated by any enabled interrupt or by a hardware reset. It should be noted that when idle is terminated by a hard ware reset, the device normally resumes program execution, from where it left off, up to two machine cycles before the internal reset algorithm takes control. On-chip hardware inhibits access to internal RAM in this event, but access to the port pins is not inhibited. To eliminate the possibility of an unexpected write to a port pin when Idle is terminated by reset, the instruction following the one that invokes Idle should not be one that writes to a port pin or to external memory.Power-down ModeIn the power-down mode, the oscillator is stopped, and the instruction that invokes power-down is the last instruction executed. The on-chip RAM and Special Function Registers retain their values until the power-down mode is terminated. The only exit from power-down is a hardware reset. Reset redefines the SFRS but does not change the on-chip RAM. The reset should not be activated before VCC is restored to its normal operating level and must be held active long enough to allow the oscillator to restart and stabilize. The AT89C51 code memory array is programmed byte-by byte in either programming mode. To program any nonblank byte in the on-chip Flash Memory, the entire memory must be erased using the Chip Erase Mode.2 Programming AlgorithmBefore programming the AT89C51, the address, data and control signals should be set up according to the Flash programming mode table and Figure 3 and Figure 4. To program the AT89C51, take the following steps.1. Input the desired memory location on the address lines.2. Input the appropriate data byte on the data lines. 3. Activate the correct combination of control signals. 4. Raise EA/VPP to 12V for the high-voltage programming mode. 5. Pulse ALE/PROG once to program a byte in the Flash array or the lock bits. The byte-write cycle is self-timed and typically takes nomore than 1.5 ms. Repeat steps 1 through 5, changing the address and data for the entire array or until the end of the object file is reached. Data Polling: The AT89C51 features Data Polling to indicate the end of a write cycle. During a write cycle, an attempted read of the last byte written will result in the complement of the written datum on PO.7. Once the write cycle has been completed, true data are valid on all outputs, and the next cycle may begin. Data Polling may begin any time after a write cycle has been initiated.2.1Ready/Busy:The progress of byte programming can also be monitored by the RDY/BSY output signal. P3.4 is pulled low after ALE goes high during programming to indicate BUSY. P3.4 is pulled high again when programming is done to indicate READY.Program Verify:If lock bits LB1 and LB2 have not been programmed, the programmed code data can be read back via the address and data lines for verification. The lock bits cannot be verified directly. Verification of the lock bits is achieved by observing that their features are enabled.2.2 Chip Erase:The entire Flash array is erased electrically by using the proper combination of control signals and by holding ALE/PROG low for 10 ms. The code array is written with all “1”s. The chip erase operation must be executed before the code memory can be re-programmed.2.3 Reading the Signature Bytes:The signature bytes are read by the same procedure as a normal verification of locations 030H, 031H, and 032H, except that P3.6 and P3.7 must be pulled to a logic low. The values returned areas follows.(030H) = 1EH indicates manufactured by Atmel(031H) = 51H indicates 89C51(032H) = FFH indicates 12V programming(032H) = 05H indicates 5V programming2.4 Programming InterfaceEvery code byte in the Flash array can be written and the entire array can be erased by using the appropriate combination of control signals. The write operationcycle is self timed and once initiated, will automatically time itself to completion. A microcomputer interface converts information between two forms. Outside the microcomputer the information handled by an electronic system exists as a physical signal, but within the program, it is represented numerically. The function of any interface can be broken down into a number of operations which modify the data in some way, so that the process of conversion between the external and internal forms is carried out in a number of steps. An analog-to-digital converter(ADC) is used to convert a continuously variable signal to a corresponding digital form which can take any one of a fixed number of possible binary values. If the output of the transducer does not vary continuously, no ADC is necessary. In this case the signal conditioning section must convert the incoming signal to a form which can be connected directly to the next part of the interface, the input/output section of the microcomputer itself. Output interfaces take a similar form, the obvious difference being that here the flow of information is in the opposite direction; it is passed from the program to the outside world. In this case the program may call an output subroutine which supervises the operation of the interface and performs the scaling numbers which may be needed for digital-to-analog converter(DAC). This subroutine passes information in turn to an output device which produces a corresponding electrical signal, which could be converted into analog form using a DAC. Finally the signal is conditioned(usually amplified) to a form suitable for operating an actuator. The signals used within microcomputer circuits are almost always too small to be connected directly to the outside world”and some kind of interface must be used to translate them to a more appropriate form. The design of section of interface circuits is one of the most important tasks facing the engineer wishing to apply microcomputers. We have seen that in microcomputers information is represented as discrete patterns of bits; this digital form is most useful when the microcomputer is to be connected to equipment which can only be switched on or off, where each bit might represent the state of a switch or actuator. To solve real-world problems, a microcontroller must have more than just a CPU, a program, and a data memory. In addition, it must contain hardware allowing the CPU to access information from the outside world. Once the CPU gathers information and processes the data, it must also be able to effect change on some portion of the outside world. These hardware devices, called peripherals, are the CPU’s window to the outside.The most basic form of peripheral available on microcontrollers is the generalpurpose I70 port. Each of the I/O pins can be used as either an input or an output. The function of each pin is determined by setting or clearing corresponding bits in a corresponding data direction register during the initialization stage of a program. Each output pin may be driven to either a logic one or a logic zero by using CPU instructions to pin may be viewed (or read.) by the CPU using program instructions. Some type of serial unit is included on microcontrollers to allow the CPU to communicate bit-serially with external devices. Using a bit serial format instead of bit-parallel format requires fewer I/O pins to perform the communication function, which makes it less expensive, but slower. Serial transmissions are performed either synchronously or asynchronously.3 SYSTEM GENERAL DESIGNThe hardware block diagram of the TC is shown in Fig. 1. The system hardware includes the micro controller, temperature detection circuit, keyboard control circuit, clock circuit, Display, alarm, drive circuit and external RAM. Based on the AT89C51, the DS18B20 will transfer the temperature signal detected to digital signal. And the signal is sent to the micro controller for processing. At last the temperature value is showed on the LCD 12232F. These steps are used to achieve the temperature detection. Using the keyboard interface chip HD7279 to set the temperature value, using the micro controller to keep a certain temperature, and using the LCD to show the preset value for controlling the temperature. In addition, the clock chip DS1302 is used to show time and the external RAM 6264 is used to save the monitoring data. An alarm will be given by buzzer in time if the temperature exceeds the upper and lower limit value of the temperature.3.1 HARDWARE DESIGNA. Micro controllerThe AT89C51 is a low-power, high-performance CMOS 8-bit micro controller with 4K bytes of in-system programmable Flash memory. The device is manufactured using At mel’s high-density nonvolatile memory technology and is compatible with the industry-standard 80C51 instruction set and pin out. The on-chip Flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory programmer. By combining a versatile 8-bit CPU with in-system programmable Flash on a monolithic chip, the At mel AT89C51 is a powerful micro controller which provides a highly-flexible and cost-effective solution to manyembedded control applications. Minimum system of the micro controller is shown in Fig. 2. In order to save monitoring data, the 6264 is used as an external RAM. It is a static RAM chip, low-power with 8K bytes memory.B. Temperature Detection CircuitThe temperature sensor is the key part in the system. The Dallas DS18B20 is used, which supports the 1-Wire bus interface, and the ON-BOARD Patented is used internally. All the sensor parts and the converting circuit are integrated in integrated circuit like a transistor [1]. Its measure range is -55℃~125 ℃, and the precision between -10℃~85℃is ±0.5℃[2 ,3]. The temperature collected by the DS18B20 is transmitted in the 1-Wire bus way, and this highly raises the system anti-jamming and makes it fit in situ temperature measurement of the rugged environment [4]. There are two power supply ways for the DS18B20. The first is external power supply: the first pin of the DS18B20 is connected to the ground; the second pin serves as signal wire and the third is connected to the power. The second way is parasite power supply [5]. As the parasite power supply will lead to the complexity of the hardware circuit, the difficulty of the software control and the performance degradation of the chip, etc. But the DS18B20(s) can be connected to the I/O port of the micro controller in the external power supply way and it is more popular. Therefore the external power supply is used and the second pin is connected to the pin P1.3 of the AT89S51. Actually, if there are multipoint to be detected, the DS18B20(s) can be connected to the 1-Wire bus. But when the number is over 8, there is a concern to the driving and the more complex software design as well as the length of the 1-Wire bus. Normally it is no more than 50m. To achieve distant control, the system can be designed in to a wireless one to breakthe length limit of the 1-Wire bus [6].C. LCD CircuitThe LCD 12232F is used, which can be used to show characters, temperature value and time, and supply a friendly display interface. The 12232F is a LCD with 8192 128×32 pixels Chinese character database and 128 16×8 pixels ASCII character set graphics. It mainly consists of row drive/column drive and 128×32 full lattice LCD with the function of displaying graphics as well as 7.5×2 Chinese characters. It is in a parallel or serial mode to connect to external CPU [7]. In order to economize the hardware resource, the 12232F should be connected to the AT89S51 in serial mode with only 4 output ports used. The LCD grayscale can be changed by adjustingthe variable resistor connected the pin Vlcd of the LCD. CLK is used to transmit serial communication clock. SID is used to transmit serial data. CS is used to enable control the LCD. L+ is used to control the LCD backlight power.D. Clock CircuitThe Dallas DS18B20 is used, which is a high performance, low-power and real-time clock chip with RAM. The DS18B20 serves in the system with calendar clock and is used to monitor the time. The time data is read and processed by the AT89C51 and then displayed by the LCD. Also the time can be adjusted by the keyboard. The DS18B20 crystal oscillator is set at 32768Hz, and the recommended compensation capacitance is 6pF. The oscillator frequency is lower, so it might be possible not to connect the capacitor, and this would not make a big difference to the time precision. The backup power supply can be connected to a 3.6V rechargeable battery.E. Keyboard Control CircuitThe keyboard interface in the system is driven by the HD7279A which has a +5V single power supply and which is connected to the keyboard and display without using any active-device. According to the basic requirements and functions of the system, only 6 buttons are needed. The system's functions are set by the AT89C51 receiving the entered data. In order to save the external resistor, the 1×6 keyboard is used, and the keyboard codes are defined as: 07H, 0FH, 17H, 1FH, 27H, 2FH. The order can be read out by reading the code instruction. HD7279A is connected to the AT89S51 in serial mode and only 4 ports are need. As shown in Fig. 6, DIG0~DIG5 and DP are respectively the column lines and row line ports of the six keys which achieve keyboard monitoring, decoding and key codes identification.F. Alarm CircuitIn order to simplify the circuit and convenient debugging, a 5V automatic buzzer is used in the alarm circuit [8]. And this make the software programming simplified. As shown in Fig. 7, it is controlled by the PNP transistor 9012 whose base is connected to the pin P2.5 of the AT89C51. When the temperature exceeds the upper and lower limit value, the P2.5 output low level which makes the transistor be on and then an alarm is given by the buzzer.G. Drive CircuitA step motor is used as the drive device to control the temperature. The four-phase and eight-beat pulse distribution mode is used to drive motor and thesimple delay program is used to handle the time interval between the pulses to obtain different rotational speed. There are two output states for the step motor. One: when the temperature is over the upper value, the motor rotates reversely (to low the temperature), while when lower than the lower limit value, the motor rotates normally (to raise the temperature); besides not equals the preset value. Two: when the temperature is at somewhere between the two ends and equals the preset value, the motor stops. These steps are used to achieve the temperature control. In addition, the motor speed can also be adjusted by relative buttons. As shown in Fig. 8, the code data is input through ports A11~A8 (be P2.3~P2.0) of the AT89C51 and inverted output by the inverter 74LS04. Finally it is amplified by the power amplifier 2803A to power the motor.3.2 SOFTW ARE DESIGNAccording to the general design requirement and hardware circuit principle of the system, as well as the improvement of the program readability, transferability and the convenient debugging, the software design is modularized. The system flow mainly includes the following 8 steps: POST (Power-on self-test), system initiation, temperature detection, alarm handling, temperature control, clock chip DS18B20 operation, LCD and keyboard operation. The main program flow is shown in Fig. 9. Give a little analysis to the above 8 tasks, it is easy to find out that the last five tasks require the real time operation. But to the temperature detection it can be achieved with timer0 timing 1 second, that is to say temperature detection occurs per second. The system initiation includes global variable definition, RAM initiation, special function register initiation and peripheral equipment initiation. Global variable definition mainly finishes the interface definition of external interface chip connected to the AT89C51, and special definition of some memory units. RAM initiation mainly refers to RAM processing. For example when the system is electrified the time code will be stored in the internal unit address or the scintillation flag will be cleared. The special function register initiation includes loading the initial value of timer and opening the interrupt. For example, when the system is electrified the timer is initialized. The peripheral equipment initiation refers to set the initial value of peripheral equipment. For example, when the system is electrified, the LCD should be initialized, the start-up display should be called, the temperature conversion command should be issued firstly and the clock chip DS18B20 should also be initialized. The alarm handling is mainly the lowering and the raising of temperature to make thetemperature remain with the preset range. When the temperature is between the upper and the lower limit value, it goes to temperature control handling, that is to say the temperature need to be raised or lowered according to the preset value. By doing so make the condition temperature equal to the preset value and hence to reach the temperature target.4 CONCLUSIONThe temperature control system has the advantages of friendly human-computer interaction interface, simple hardware, low cost, high temperature control precision (error in the range of ±1 ℃), convenience and versatility, etc. It can be widely used in the occasions with -55℃to 125℃range, and there is a certain practical value.。
基于单片机的温度检测系统的设计一、引言随着科技的发展和社会的进步,温度检测在各个领域中起着至关重要的作用。
为了实现对温度变化的准确监测和控制,本文将介绍一种基于单片机的温度检测系统的设计方案。
二、系统概述本系统通过采集环境温度数据,并通过单片机进行处理和控制,实现对温度的实时监测和报警功能。
三、硬件设计3.1传感器选择在温度检测系统中,传感器是获取环境温度信息的关键部件。
本系统选择了精度高、稳定性好的数字温度传感器DS18B20作为温度采集装置。
3.2单片机选择单片机是系统的核心控制部分,负责采集传感器数据、处理数据并输出相应信号。
为了满足系统的实时性和稳定性要求,本系统选择了常用的S T M32系列单片机作为控制器。
3.3电路设计基于上述选择的传感器和单片机,我们设计了相应的电路接口和连接方式,确保传感器能够正常采集数据,并将数据传输给单片机进行处理。
四、软件设计4.1系统架构本系统采用分层架构设计,包括传感器数据采集层、数据处理层和用户界面层。
每一层都有相应的功能模块,实现温度数据的采集、处理和显示。
4.2数据采集和处理系统通过定时中断方式,周期性地读取传感器数据,并通过计算得到温度值。
采集到的数据经过滤波和校正处理后,传递给用户界面层进行显示。
4.3用户界面为了方便用户操作和监测温度变化,系统设计了简洁直观的用户界面。
用户可以通过L CD显示屏上的菜单操作,查看温度数值和设置相关参数,同时系统还具备温度报警功能。
五、系统测试与结果分析5.1硬件测试在硬件实现完毕后,进行了必要的硬件测试。
通过测量不同环境下的温度,并与实际温度进行比对,验证了系统的准确性和可靠性。
5.2软件测试系统软件的测试主要包括功能测试和性能测试。
通过模拟实际使用场景,测试了系统在不同条件下的温度检测和报警功能是否正常。
六、总结与展望本文介绍了基于单片机的温度检测系统的设计方案。
通过合理的硬件选型和软件设计,实现了对温度数据的实时监测和报警功能。
基于单片机的毕业论文题目有哪些很多物联网专业的学生对单片机非常感兴趣,不光是对专业的热爱,另外由于单片机是集成电路芯片,是控制整个流程最基础的环节,大多数理科生对这种控制式设计充满着好奇,下面,我们学术堂整理了多个基于单片机的毕业论文题目,欢迎各位借鉴。
基于单片机的毕业论文题目一:1、基于单片机的压电加速度传感器低频信号采集系统的设计2、基于单片机的超声测距系统3、基于C8051F005单片机的两相混合式直线步进电机驱动系统的设计4、基于单片机的工业在线数字图像检测系统研究与实现5、基于FPGA的8051单片机IP核设计及应用6、基于单片机的军需仓库温湿度测控系统研究7、单片机多主机通信模式在粮库温湿度监控系统中的应用8、基于单片机的中小水电站闸门控制系统9、基于单片机的正弦逆变电源研制10、单片机实验教学仿真系统的设计与开发11、基于单片机的温湿度检测系统的设计12、基于单片机的蓝牙接口设计及数据传输的实现13、基于单片机的多功能温度检测系统的设计与研究14、基于单片机的温度控制系统的研究15、行为导向教学策略在职校单片机课程教学中的应用研究16、逻辑电路与单片机的虚拟实验系统设计与实现17、基于单片机的LED显示系统18、基于单片机的校园安防系统19、基于MSP430单片机的红外甲烷检测仪设计及实现20、基于高性能单片机的无线LED彩灯控制系统的设计与实现21、基于AVR单片机教学实验板的设计22、基于单片机的阀岛控制系统的研究23、基于AT89S51单片机实验开发系统设计24、基于单片机和GPRS数据传输技术的研究25、基于HCS12单片机的智能车底层控制系统研究26、单片机GPRS智能终端及远程工业监控技术研究27、基于单片机的MODBUS总线协议实现技术研究28、基于单片机的室内智能通风控制系统研究29、基于单片机的通用控制器设计与实现30、基于单片机控制的PTCR阻温特性测试系统的设计与实现31、Proteus在单片机教学中的应用32、基于单片机的变频变压电源设计33、基于单片机的监控系统控制部分的设计34、基于单片机的葡萄园防盗报警系统设计35、基于单片机的温度智能控制系统的设计与实现36、基于单片机的远程抄表系统的设计与研究37、基于单片机的温度测控系统在温室大棚中的设计与实现38、基于单片机的高精度随钻测斜仪系统开发39、基于16位单片机MC9S12DG128B智能车系统的设计基于单片机的毕业论文题目二:40、基于单片机的压力/液位控制系统的设计研究41、单片机与Internet网络的通信应用研究42、基于单片机控制的温室环境测控装置研究43、具有新型接口的MCS-51单片机实验系统设计44、基于单片机控制的直流恒流源的设计45、基于单片机的模糊控制方法及应用研究46、基于AT89S52单片机的煤矿瓦斯监测系统的研制47、基于AT89C51单片机的脉象信号采集系统研究48、基于DTMF技术的单片机远程通信系统研究49、基于单片机的GPRS无线数据采集与传输系统的设计50、基于单片机控制的柴油机喷油泵数据采集系统的设计与实现51、基于谐振技术及MK单片机的多路升压器研究设计52、基于单片机的数据串口通信53、基于单片机的智能寻迹系统设计54、压电式阀门定位器与单片机实验装置研制55、基于单片机的微型电子琴研究与实现56、基于单片机的恒温恒湿孵化器系统设计57、基于16位单片机MC9S12XS128的两轮自平衡智能车的系统研究与开发58、基于单片机的简易餐饮管理系统的设计与实现59、基于单片机的抛物槽式太阳能集热器跟踪系统设计60、基于单片机的大棚温湿度监测报警装置的研究与开发61、基于MSP430单片机的远传智能水表的设计与实现62、采用PIC单片机的真空断路器控制器设计研究63、基于IAP15F2K61S2的移动式多功能迷你单片机开发板64、基于单片机的空调红外线编解码系统的设计和实现65、基于单片机的图形化编程平台的设计与实现66、基于PIC单片机的图像数据采集系统的设计与实现67、基于单片机的仓库温湿度智能测控系统的设计与实现68、基于单片机的助爬器控制器的设计与实现69、手机和单片机控制系统的理论与应用研究70、基于FPGA的HOST与多单片机的串行通信71、基于单片机的机车试验设备数据采集器的研究72、MCS-51单片机芯片反向解剖以及正向设计的研究73、单片机自动微灌控制器的研究、设计与应用74、基于MSP430系列单片机的微机外围电路的通用化平台研究与设计75、基于CPLD的单片机结构设计研究76、单片机模糊控制晶闸管直流调压系统的研究77、模糊控制的单片机实现研究78、单片机嵌入式TCP/IP协议的研究与实现79、基于80C196KC单片机的舞蹈机器人控制系统80、基于PC+单片机的环境风洞风速控制系统的研究基于单片机的毕业论文题目三:81、单片机嵌入TCP/IP的研究与实现82、单片机系统仿真83、基于单片机的烘炉温度自动检测系统的研究与设计84、基于智能卡的预付费煤气表应用系统85、8XC196单片机集成开发环境的研制86、基于SPCE061A单片机的语音识别系统的研究87、基于嵌入式实时操作系统和TCP/IP协议的单片机测控系统88、基于单片机的电涡流式微位移传感器测量系统的研究89、基于AVR单片机的太阳光辐照测量装置研究90、基于单片机的野外信息检测记录系统的设计91、基于单片机的数据采集和无线数据传输系统设计92、基于Motorola MC68HC08系列单片机演示系统的设计与实现93、基于GSM技术的超远程无线设备监控系统研究94、微机与单片机实验平台的设计与开发95、基于单片机的TCP/IP技术研究及应用96、电渣炉单片机控制系统研究与设计97、单片机控制多功能信号发生器98、基于EDA技术的兼容MCS-51单片机IP核设计99、基于单片机的嵌入式USB主机研究与实现100、基于AVR单片机的应用设计实践101、模糊Smith智能控制方法的研究及其单片机实现102、基于单片机的直接数字频率合成(DDS)技术的应用研究103、基于单片机的机电产品控制系统开发104、基于增强型51系列单片机的TCP/IP协议栈的实现105、基于单片机的粮库温度监控系统设计106、基于VB的单片机虚拟实验软件的研究与开发107、基于单片机ATmega128的嵌入式工业控制器设计108、基于单片机控制的智能型金属探测器的设计109、基于多机通信的AVR单片机高级用户板的设计与开发110、基于单片机的数字磁通门传感器111、基于单片机的光纤光栅解调仪的研制112、MCS-51单片机构建机器人的实践研究113、基于VC的单片机软件式开发平台114、八位单片机以太网接入研究与实现115、基于单片机与Internet的数控机床远程监控系统的研发116、96系列单片机仿真器研究与设计117、单片机在中、小水电站闸门监控系统中的应用118、基于单片机大棚温湿度远程监控的设计与实现119、基于单片机和GPRS实验室安全报警监控系统研究120、基于STM32单片机的高精度超声波测距系统的设计基于单片机的毕业论文题目四:121、基于单片机的语音编码系统实现122、基于单片机的温湿度控制系统的研究与应用123、基于单片机的室内环境监测系统设计124、基于51单片机的教学实验系统的设计与开发125、基于单片机的智能控制器研究与设计126、基于8051单片机的温度控制系统127、基于单片机的超低功耗智能遥控车位锁的设计与实现128、基于单片机的智能玩具电动车的设计与实现129、基于单片机电锅炉恒温控制系统的电路设计130、基于单片机控制的离子水去污消毒装置的研究与开发131、以STM8S208单片机为主控的编程器的设计与实现132、基于单片机的温室大棚环境参数自动控制系统133、基于单片机的温室数据采集系统的研究134、基于单片机的太阳能干燥温湿度检测系统的研究135、基于单片机和FPGA的高精度智能测时仪的设计136、基于PC机和单片机主从式测控系统的设计137、基于神经元芯片和单片机双处理器结构LON节点的研究138、单片机实训课程的创新设计探讨139、AT89S52单片机实验系统的开发与应用140、基于单片机的模糊控制在节水灌溉控制系统中的实现141、基于ATmega128单片机的运动控制系统的设计与实现142、基于FPGA和单片机的CCD数据采集与处理143、基于MCS_51单片机安防系统监控主机的设计与实现144、基于单片机的超声测距仪研究与开发145、基于STC89单片机的实验教学系统146、单片机系统应用研究147、单片机在太阳能中央热水系统中的应用148、AVR单片机在试验机设备开发中的应用149、基于单片机的二维运动控制系统的研究150、基于LabVIEW和单片机的切削温度虚拟仪器的研究151、单片机编程仿真实验系统的设计与实现152、基于单片机的卫星天线自动定位控制系统开发与研究153、MC9S12系列单片机程序下载系统的设计与实现154、基于单片机控制的电动机保护器设计155、基于MSP430单片机的多路信号采集与无线传输系统的设计156、基于C51系列单片机LED驱动电源设计157、基于Synopsys的8051单片机IP核的设计158、基于单片机的大棚温湿度远程监测系统的设计159、基于单片机的室内无线环境监测系统设计与应用160、单片机控制的步进电机文检系统基于单片机的毕业论文题目五:161、基于飞思卡尔单片机的智能车及其调试系统设计162、基于单片机控制的金属探测器设计163、基于单片机的场地分类仪设计164、基于单片机的温湿度控制系统的设计165、基于AVR单片机的教学实验系统的设计与开发166、单片机温度测量和控制系统的设计与实现167、基于LabVIEW和单片机的太阳自动跟踪监控系统168、基于AVR高速单片机的以太网络终端设计169、基于AT89C52单片机温度控制系统的设计170、基于PC机与单片机的分布式禽舍环境监控系统研究171、基于单片机的昆虫加热板温度测控系统设计172、基于单片机平台下的语音识别技术应用方式研究173、基于单片机的家庭智能防火防盗系统174、基于AVR单片机的空气净化器控制系统的硬件设计与实现175、基于单片机的语音识别系统设计及实现176、基于单片机的智能物料搬运控制系统研究177、基于单片机和PC串口通信的温度采集系统设计178、基于单片机的智能家居系统的研究179、基于“教师主导-学生主体”教学模式下的单片机教学策略研究180、单片机模糊PID控制双闭环直流调速系统研究181、基于PROTEUS的单片机仿真实验系统研究及应用182、停车场引导系统的研究与实践183、基于单片机的温度检测系统的研究与实现184、基于IAP15F2K61S2单片机实验系统的设计185、基于AT89C51单片机的LED点阵显示系统设计186、基于ATmega128单片机的空气净化器控制系统设计与研究187、基于AT89C52单片机的智能微喷灌控制系统设计188、基于单片机的蔬菜大棚温度控制系统189、基于单片机的轮式机器人设计190、基于单片机的LED显示屏系统设计与PROTEUS仿真191、基于STC单片机的智能温湿度控制器的设计与实现192、基于Simulink与AVR单片机的多接口音频系统的仿真与构建193、基于单片机的定时温控系统设计与研究194、基于单片机的100kV高压直流电源的研制195、基于单片机的LED智能照明驱动及控制系统196、基于虚拟仪器的单片机实验平台开发197、基于行动导向的中职机电专业《单片机》课程教学研究198、USB接口打印机的单片机控制系统开发199、基于多核心板互换的单片机实训教学系统的设计200、基于单片机的传感器综合电路的设计。
外文翻译--基于51单片机温度报警器的设计(适用于毕业论文外文翻译+中英文对照)XXX: Design of a Temperature Alarm Based on 51 MCUDepartment: n EngineeringMajor: Measurement and Control Technology and nClass:Student ID:Name:Supervisor:Date:A microcontroller。
also known as a single-chip computer system。
XXX its ns being integrated on a small chip。
it has most of the components needed for a complete computer system。
such as CPU。
memory。
internal and external bus systems。
and mostof them also have external storage。
At the same time。
it integrates XXX interfaces。
timers。
real-time clocks。
etc。
The most XXX integrate sound。
image。
ork。
and complex input-output systems on a single chip.XXX used in the industrial control field。
Microcontrollers XXX CPUs inside the chip。
The original design concept was to integrate a large number of peripheral devices and CPUs on a chip to make the computer system XXX's Z80 was the first processor designed according to this concept。
基于单片机的多功能温度检测系统设计1 引言随着社会的发展和技术的进步,人们越来越注重温度检测与显示的重要性。
温度检测与状态显示技术与设备已经普遍应用于各行各业,市场上的产品层出不穷。
温度检测及显示也逐渐采用自动化控制技术来实现监控。
本课题就是一个温度检测及状态显示的监控系统。
2 系统方案本系统采用 AT89S52 作为该系统的单片机。
系统整体硬件电路包括,电源电路,传感器电路,温度显示电路,上下限报警电路等如图1 所示。
图中报警电路可以在被测温度不在上下限范围内时,发出报警鸣叫声音。
温度控制的基本原理为:当DSl8B20 采集到温度信号后,将温度信号送至AT89S52 中处理,同时将温度送到LCD 液晶屏显示,单片机根据初始化设置的温度上下限进行判断处理,即如果温度大于所设的最高温度就启动风扇降温;如果温度小于所设定的最低温度就启动报警装置。
温度控制器的原理图3 系统硬件设计(1)单片机AT89S52 的介绍AT89S52 是一种低功耗、高性能CMOS8 位微控制器,具有8K 可编Flash 存储器。
使用Atmel 公司高密度非易失性存储器技术制造,与工业80C51 产品指令和引脚完全兼容。
片上Flash 允许程序存储器在系统编程,亦适于常规编程器。
在单芯片上,拥有灵巧的8 位CPU和在系统可编程Flash,使AT89S52 为众多嵌入式控制应用系统提供高灵活、超有效的解决方案[5]。
AT89S52 具有以下标准功能: 8k 字节Flash,256 字节RAM,32 位I/O 口线,看门狗定时器,2 个数据指针,三个16 位定时器/计数器,一个6 向量2 级中断结构,全双工串行口,片内晶振及时钟电路。
另外,AT89S52 可降至0Hz 静态逻辑操作,支持2 种软件可选择节电模式。
空闲模式下,CPU 停止工作,允许RAM、定时器/计数器、串口、中断继续工作。
掉电保护方式下,RAM 内容被保存,振荡器被冻结,单片机一切工作停止,直到下一个中断或硬件复位为止。
(2) DS18B20 传感器的介绍在传统的模拟信号远距离温度测量系统中,需要很好的解决引线误差补偿问题、多点测量切换误差问题和放大电路零点漂移误差问题等技术问题,才能够达到较高的测量精度。
另外一般监控现场的电磁环境都非常恶劣,各种干扰信号较强,模拟温度信号容易受到干扰而产生测量误差,影响测量精度[5]。
因此,在温度测量系统中,采用抗干扰能力强的新型数字温度传感器是解决这些问题的最有效方案,与其它温度传感器相比DSl820 具有以下特点:(1)独特的单线接口方式。
DSl820 在与微处理器连接时仅需要一条接口线即可实现微处理器与DSl820 的双向通讯。
(2)多点功能简化了分布式温度检测的应用。
(3)DSl820 在使用中无需任何外围元件。
(4)可用数据线供电,电压范围从3.0V 到5.5V。
(5)可测量的温度范围从-55℃到+125℃,增量值0. 5℃;华氏温度范围从-67 到+257,增量值0.9。
(6)支持多点组网功能。
多个DS1820 可以并接在同一条总线上,实现多点测温。
(7)9 位的温度分辨率。
测量结果以9 位数字量方式串行传送。
(8)用户可设定温度报警门限值。
(9)有超温度搜寻功能。
① DSl8B20的工作原理DS18B20 的内部结构DSl8B20 的测温原理框图如图3.2 所示。
图中低温度系数品振的振荡频率受温度影响很小,用于产生同定频率的脉冲信号送给计数器l。
高温度系数晶振随温度变化其振荡频率明显改变。
所产生的信号作为计数器2 的脉冲输入。
计数器1、计数器2 和温度寄存器被预置在-55℃所对应的一个基数值。
计数器l 对低温度系数晶振产生的脉冲信号进行减法计数,当计数器1 的预置值减到O 时,温度计数器的值将加l,计数器l 的预置值将被重新装人,计数器l 重新开始对低温度系数晶振产生的脉冲信号进行计数,如此循环直到计数器2 计数到O 时,停止温度寄存器的累加,此时温度寄存器中的数值即为所测温度。
图3.2 中的斜率累加器用于补偿和修正测温过程中的非线性,其输出小于修正计数器l 的预置值。
② DS18B20 与AT89S52 的接口方式DS18B20 与单片机的连接方式有两种:即寄生电源方式和外部电源方式。
寄生电源方式:在寄生电源供电方式下,DS18B20 从单线信号线上汲取能量:在信号线DQ 处于高电平期间把能量储存在内部电容里,在信号线处于低电平期间消耗电容上的电能工作,直到高电平到来再给寄生电源(电容)充电。
寄生电源方式有三个好处: 1)进行远距离测温时,无需本地电源。
2)可以在没有常规电源的条件下读取ROM。
3)电路更加简洁,仅用一根I/O 口实现测温。
要想使DS18B20 进行精确的温度转换,I/O 线必须保证在温度转换期间提供足够的能量,由于每个DS18B20 在温度转换期间工作电流达到1mA,当几个温度传感器挂在同一根I/O 线上进行多点测温时,只靠4.7K 上拉电阻就无法提供足够的能量,会造成无法转换温度或温度误差极大。
外部电源供电方式:在外部电源供电方式下,DS18B20 工作电源由VDD 引脚接入,此时I/O 线不需要强上拉,不存在电源电流不足的问题,可以保证转换精度,同时在总线上理论可以挂接任意多个DS18B20 传感器,组成多点测温系统。
本系统采用外部电源方式。
连接方法即DS18B20 的1 脚接地,2 脚(DQ 引脚)与AT89S52 的一根I/O 口线相连,3 脚接+5V。
在A89S52 的I/O 口线与+5V 之间连接一4.7K 的上拉电阻,以保证数据采集的正常进行。
若要组成多点温度检测系统,可在单片机的同一根I/O 口线上,以相同的连接方法并联多片DS18B20 芯片。
(3) LCD1602 液晶屏1602 液晶显示模块可以和单片机AT89S52 直接接口。
(4)蜂鸣器驱动电路由于蜂鸣器的工作电流一般比较大,以致于单片机的I/O 口是无法直接驱动的,所以要利用放大电路来驱动,一般使用三极管来放大电流就可以了。
当所测的温度低于6 摄氏度时,报警。
(5)风扇电路当所测的温度高于80 摄氏度时,启动风扇电路。
因为工作电流比较大,所以用放大电路来驱动,即用三极管来放大电流就可以了。
当温度高于80℃时,给单片机一个命令,单片机P2.6 引脚输出高电平,三极管导通,风扇电路接通,电风扇开始转动,从而起到降温作用。
4 系统的软件设计本系统采用AT89S52 作为核心处理器件,把经过DSl8B20 现场实时采集到的温度数据,存入AT89S52 的内部数据存储器,送液晶显示,并与预先设定值进行比较,然后由单片机输出信号去控制风扇电路和报警电路。
多功能温度检测显示系统软件主要包括:函数声明、延迟时间函数、DS18B20 初始化函数、读出DS18B20 当前的温度、温度数据转化成液晶字符显示等程序。
5 小结随着工业的不断发展,对温度测量的要求来越高,而且测量范围也越来越广,因此对温度检测技术的要求也越来越高。
本文介绍了以DSl8B20 新型数字温度传感器、AT89S52 单片机、LCD1602 液晶显示模块为主体构建的温度检测显示系统。
说明了系统硬件电路、系统主程序与各模块子程序的设计。
本系统采用的是DALLAS 公司推出的数字式温度传感器DS18B20,无需外加A/D 即可输出数字量,把温度信号直接转换成串行数字信号供微机处理。
因此。
该系统具有硬件电路结构简单、转换精度高、显示结果清晰稳定、成本低等显着优点。
在诸如粮库测温、智能建筑、中央空调等多种需要温度检测的场合具有较好的应用前景。
Based on SCM multi-functional temperature testingsystem design1 prefaceWith the development of society and the technological progress, people pay more and more attention to the importance of temperature detection and display. Temperature detection and status display technology and equipment has been widely applied in industries, products on the market emerge in endlessly. Temperature testing and also gradually adopt the automatic control technology to realize the monitor. This topic is a temperature testing and status of the monitoring system.2 System solutionsThis system USES the monolithic integrated circuit AT89S52 as this system. The whole system, the hardware circuit including power supply circuit, sensor, the temperature display circuit circuit, upper alarm circuit such as shown in figure 1. Figure in the alarming circuit can be measured in upper temperature range, screaming voice alarm. The basic principle for the temperature control DSl8B20: when the temperature signal acquisition to after temperature signal sent to handle, AT89S52 temperature to LCD screen, SCM according to initialize the upper temperature setting, namely, if the judgement of temperature than the highest temperature cooling fan is started, If the temperature is less than the lowest temperature setting on alarm device. Temperature controller diagram3 The system hardware design(1)AT89S52 SCM are introducedAT89S52 devices is a low power consumption, high CMOS8 bit micro-controller, 8K programmable Flash memory. Use Atmel company high-density nonvolatile storage technology, and industrial 80C51 product instruction and pin fully compatible. The Flash memory chips allows programs in system programming, also suitable for conventional programming. In a single chip, have clever 8 bits CPU and programmable Flash in the system, for many embedded control AT89S52 applicationsystem provides a highly flexible, efficient solutions [5]. AT89S52 has the following functions: the standard 256 bytes, 8k byte Flash RAM, 32 I/O port, the watchdog timer, 2 data, three pointer 16 timer/counter, a 6 vector level 2 interrupt structure, full-duplex serial, timely clock circuit within crystals. In addition, 0Hz AT89S52 can drop to the static logic operation, support two software can choose power saving mode. Idle mode, the CPU to stop working, and allows the RAM, timer/counters, serial, continue to work. Protection mode, RAM by MCU, oscillator is frozen, all the work to stop until the next interruption or hardware reset.(2)The sensor DS18B20In the traditional analog signal distance temperature measuring system, need good solve lead error compensation, multi-point measurement error and amplifying circuit switching technologies such as zero drift error problem, can achieve high measuring accuracy. Another general monitoring site of the electromagnetic environment is very bad, all kinds of jamming signal is stronger, the simulated temperature signal interference and vulnerable to produce measurement error and measuring precision [5]. Therefore, in temperature measuring system, the strong anti-jamming capability of the new digital temperature sensor is the most effective to solve these problems, compared with other temperature sensor DSl820 has the following features:(1) the unique singleline interface way. DSl820 in connection with the microprocessor only need one interface to implement line DSl820 microprocessors and two-way communication. (2) more function simplifies distributed temperature detection application. (3) DSl820 in use without any peripheral devices. (4) power, voltage range data available from 3.0 V to 5.5 V. (5) can measure temperature range from - 55 degrees c + + to 125, incremental value 0. 5 ° c, Fahrenheit temperature range from - 67 to + 257, incremental value 0.9. (6) support multi-point network function. Multiple DS1820 can pick on the same bus and, more temperature measurement. (7) 9 temperature resolution. Measuring results in nine serial transmission way the digital quantity. (8) user can set temperature alarm threshold. (9) have super temperature search function.①DSl8B20 principle of workThe internal structure of DS18B20 DSl8B20 temperature measurement principle diagram shown in figure 3.2. Low temperature coefficient graph oscillation frequency vibration product temperature is used to produce with fixed frequency, pulse signal to counter l. High temperature coefficient crystals temperature-dependent its oscillation frequency change significantly. The signal generated as the counter 2 input pulses. Counter 1, 2 and temperature registers are counter in - 55 degrees preset corresponding a base value. Counter l to low temperature coefficient of the pulse signal generated crystals, when the counter for subtraction counting the preset value reduced to 1, when the temperature counter O value will add l, counter the preset value will be l man again, to counter the l start low temperature coefficient of crystal oscillator pulse signal, so cycle count until the counter 2, stop counting to O accumulative temperature, temperature of the register for the register is measured values. Figure 3.2 accumulative used for the slope compensation and fixed temperature measurement, the output of the process of nonlinear correction is less than the preset value counter l.②AT89S52 interface mode and DS18B20Chip DS18B20 and the connection has two kinds: namely parasitic power and external power supply mode.Parasitic power way: in the parasitic power supply mode, the signal from the single chip DS18B20 in line drawing energy during the high level in the DQ energy stored in the internal capacitance, low level in signal in the energy consumed during the capacitance on working until high-level coming again to parasitic power (battery). Parasitic power mode has three advantages: 1) distance measuring temperature, without the local power supply. 2) no conventional power in the condition reads the ROM. 3) circuit, with only one more concise root I/O realize temperature measurement. Want to make precise temperature conversion chip DS18B20, I/O line must ensure that the temperature conversion period, due to provide enough energy conversion in temperature during each DS18B20, when the current 1mA to work a few temperature sensor in the same root hanging on the I/O multi-point temperaturemeasurement, only by 4.7 K and resistance will not be able to provide enough energy, which cannot be switchover temperature or errors.The external power source supply way: in the external power supply modes, DS18B20 work power by VDD pin, I/O access line does not need strong pull up, there is no shortage of electricity power, can ensure accuracy and conversion in the bus theory can be articulated multiple sensor DS18B20, multipoint temperature measuring system.This system USES the external power source. Connection method is one foot grounding and DS18B20 2 feet (DQ) and AT89S52 foot an I/O port, 3 feet line up + 5V. A89S52 in the I/O port and + 5V connection between a 4.7 K pull-up resistors, to ensure the normal operation of the data collection. If you want to test system, composed multi-point temperature in the same root chip I/O port in the same line, and the method of connecting the parallel more pieces of DS18B20 chip.(3)LCD1602 LCD1602 LCD module can and monolithic integrated circuit AT89S52 directly interface.(4)Buzzer driver circuitDue to the working current buzzer is compared commonly big, so I/O microcontroller is not directly driven by amplifying circuit, so it is generally used to drive, to enlarge current transistor. When the temperature is below six degrees Celsius, alarm.(5)Fan circuitWhen the temperature is higher than 80 ° c, start fan circuit. Because the job is great, so use current amplifier circuit to drive, to enlarge current transistor. When the temperature is above 80 ° c, give a command, P2.6 single-chip microcontroller foot output level, triode conduction, fans, electric circuit, which began to turn it down.4 The design of the software systemThis system USES AT89S52 devices as the core, with DSl8B20 after the collected data, and the temperature inside the data storage AT89S52 deposit, LCDdisplay, and compared with the prior value, and then the output signal by MCU control circuit and alarm circuit fan. Multi-functional temperature testing system software mainly include: function declarations, time delay function and DS18B20 initialization function, read the temperature, temperature DS18B20 data into a liquid crystal display characters such programs.5 SummaryWith the continuous development of industry of temperature measurement, the higher requirement, and more and more wide measuring range, so are the requirements for temperature detection technology more and more is also high.DSl8B20 introduced new digital temperature sensor and AT89S52 SCM, LCD1602 LCD module for constructing the temperature testing system. The hardware circuit and main program and system design of each module subroutines. This system USES the DALLAS is the digital temperature sensor DS18B20, plus A/D can output the digital quantity, the temperature signal directly convert serial digital signal processing for microcomputer. Accordingly. This system has the hardware circuit structure is simple, high precision, and shows the result conversion clear stability, low cost and significant advantages. In temperature measurement, such as grain of intelligent building, central air conditioning of the occasion to temperature testing has good application prospects.。