资源描述
______________________________________________________________________________________________________________
西 南 交 通 大 学
本科毕业设计
外文翻译
年 级:
学 号:
姓 名:
专 业:
指导老师
xx 年xx、月
精品资料
______________________________________________________________________________________________________________
院 系 xxx 专 业 电气工程及其自动化
年 级 xx 姓 名 xxx
题 目 外文翻译
指导教师
评 语
指导教师 (签章)
评 阅 人
评 语
评 阅 人 (签章)
成 绩
答辩委员会主任 (签章)
年 月 日
精品资料
______________________________________________________________________________________________________________
目 录
ABSTRACT 1
I. INTRODUCTION 1
II. DESIGN OF HARDWARE FOR TEMPERATURE CONTROL SYSTEM 2
III. DESIGN OF SIGNAL WIRELESS TRANSMISSION 2
IV. SOFTWARE DESIGN 4
V. CONCLUSION 10
REFERENCES 11
摘 要 12
I 介绍 12
II 对温度控制系统的硬件是合计 12
III 设计信号的无线传输 13
IV 软件设计 14
V 结论 18
______________________________________________________________________________________________________________
Design of Temperature Control Device Underground Coal Mine Based on AT89S52
ABSTRACT
Abstract-Temperature underground coal mine is an important index, especially for mining workers underground. To monitor the temperature effectively, a temperature measurement and control system is necessary to design. Temperature value is displayed on LED screen on line. When temperature value reaches the maximum, conditioning device connected with the opening end of the relay controlled by the MeV will start up. Temperature signal and control information is all transmitted by wireless signal transmission module nRF905. The system program consists of transducer control and display of the temperature value. The control program of transducer is compiled according to its communication protocol. Program of wireless data transmission should be debugged between the data transmission modules. Alarm device is designed to provides effective information to workers when the temperature value is unusual. Thus monitoring of the temperature underground coal mine can be real and effective.
Keywords: Index Terms-DS18B20, AT89S52, nRF905, coal mine temperature control
I. INTRODUCTION
The environment underground coal mine is poor, and various dangers can easily occur. Therefore, in order to ensure safe production of coal mine, it is needed to supervise various parameters underground coal mine, including temperature, pressure, gas, wind speed and distance. Timely monitoring temperatures of some mine key points and coal face is an important monitoring project to guarantee safe production. Moreover, the ultrasonic measurement of distance is usually used in coal mine, to ensure the accuracy of measurement, it is also needed to make accurate temperature measurement. Traditional temperature measurement is done by classical isolated sensors, which has some disadvantages as follows: slow reaction rate, high measuring errors, complex installation and debugging and inconvenient long-distance transmission. In this paper intelligent temperature measurement and control is realized by taking DS18B20 temperature sensor and AT89S52 MCU as platform. DS18B20 has some advantages, mainly including digital counting, direct output of the measured temperature value in digital form, less temperature error, high resolution, strong anti-interference ability, long-distance transmission and characteristic of serial bus interface. Comparing with the traditional method of temperature measurement, MCU temperature measurement can achieve storage and analysis of temperature data, remote transmission and so on. DS18B20 sensor is a series of digital single bustemperature sensor made in DALLAS company ofUSA.[I]
II. DESIGN OF HARDWARE FOR TEMPERATURE CONTROL SYSTEM
The device is composed of the temperature sensor DS18B20, MCU AT89S52, display module and relay for main fan control. The principle diagram of this hardware is shown in Fig.l.
DS18B20 temperature sensor converts the environmental temperature into signed digital signal (with 16 bits complementary code accounting for two bytes), its output pin 2 directly connected with MCU Pl.2. Rl is pull-up resistor and the sensor uses external power supply. Pl.7 is linked to relay and PO is linked to LED display. AT89S52 is the control core of the entire device. Display modules consists of quaternity common-anode LED and four 9012. The read-write of sensor, the display of temperature and the control of relay are completed by program control ofthe system. [2]
III. DESIGN OF SIGNAL WIRELESS TRANSMISSION
Tested signal is transmitted by wireless mode, as shown in Fig. 1. Wire transmitting of signal underground coal mine has some disadvantages:
1) The mineral products are mined by excavation of shaft and tunnel. Meanwhile, there are so many equipments used underground coal mine. Therefore, it is more difficult to wiring in shaft and tunnel, and environmental suitability is poor for wire transmitting of signals;
2) Support workers should check up cables for transmitting signals at any moment when combined motion of the coal machine support occurs. Thus, workers' labor intensity is increased;
3) The long-distance transmission of sensing element with contact method may lead to larger errors. To reduce errors, the long-distance line driver and safety barrier are needed. Thus, the cost is increased;
4) The work load of maintenance underground coal mine is larger.
Figure 1. Structure diagram of signal wireless transmission system
By contrast, adopting wireless data transmission can effectively avoid the above disadvantages. [3]
Wireless signal transmission module nRF905 is used in the design. Its characteristics are as follows: Integrated wireless transceiver chip nRF905 works in the ISM band 433/868/915 MHz, consists of a fully integrated frequency modulator, a receiver with demodulator, a power amplifier, a crystal oscillator and a regulator. Its working mode of operation is Shock Burst. Preambles and CRC code are automatically generated in the mode, and can easily be programmed through the SPI interface. Current consumption of the module is very low. When the transmit power is +10 dBm, the emission current is 30 rnA and receiving current is 12.2 rnA. It also can enter POWERDOWN model to achieve energy-saving. [4]
IV. SOFTWARE DESIGN
For doing the read-write programming for DS18B20, its read-write time sequence should be guaranteed. Otherwise, the result oftemperature measurement will not be read.
Figure 2. Software design flow chart
Therefore, program design for operation on DS18B20 had better adopt assembly language.[5] Software design flow chart is shown in Fig.2.
Structure of Main program for temperature measurement is shown as following:
INIT 1820:
SETB DIN
NOP
CLRDIN
MOV RO,#250
TSRI: DJNZ RO,TSRI
SETB DIN
NOP
NOP
NOP
MOV RO,#60
TSR2: DJNZ RO,TSR2
JNB PI.0,TSR3
LJMPTSR4
TSR3: SETB FLAGI
LJMPTSR5
TSR4: CLR FLAG1
LJMPTSR7
TSR5: MOY RO,#6BH
TSR6: DJNZ RO,TSR6
TSR7: SETB DIN
SETB DIN
RET
GET TEMPER:
SETB DIN
LCALL INIT 1820
18 FLAG1,TSS2
RET
TSS2: MOY A,#OCCH
LCALL WRITE 1820
MOY A,#44H
LCALL WRITE 1820
LCALL DELAY
LCALL DELAY
LCALLDELAY
LCALLDELAY
LCALL DELAY
LCALLDELAY
LCALL INIT 1820
MOY A,#OCCH
LCALL WRITE 1820
MOY A,#OBEH
LCALL WRITE 1820
LCALL READ 1820
RET
WRITE 1820:
MOY R2,#8
CLRC
READ_l 820:
MOVR4,#2
MOV Rl,#29H
REOO: MOV R2,#8
REOl: CLR C
SETB DIN
NOP
NOP
CLRDIN
NOP
NOP
NOP
SETB DIN
MOVR3,#9
ADJUST_TEMPER:
CLR TEM_BIT
JNB 47H,AJUST
SETB TEM_BIT
XRL TEMPER_L,#OFFH
MOV A,TEMPER_L
ADDA,#OlH
MOV TEMPE~L,A
XRL TEMPER_H,#OFFH
MOV A,TEMPER_H
ADDCA,#OOH
MOV TEMPER_H,A
ADJUST:
MOV A,TEMPER_L
MOV B,#lOO
DIVAB
MOV B_BIT,A
MOV A,B
MOV B,#lO
DIVAB
MOV S_BIT,A
MOV G_BIT,B
DISP MAIN:
LCALL D_DISP
LCALL G_DISP
LCALL S_DISP
LCALL B_DISP
MOV A,#OFFH
LCALLDISP
MOV A,#OFFH
LCALL DISP
MOV A,#OFFH
LCALLDISP
MOV A,#OFFH
LCALL DISP
LCALLDELAY
RET
D DISP:
MOVC,D_BIT
JC D DISPI
MOV A,#03H
LCALL DISP
RET
D DISPl:
MOV A,#49H
LCALL DISP
RET
G DISP:
MOV A,G_BIT
MOV DPTR,#TAB
MOVC A,@A+DPTR
ANLA,#OFEH
LCALL DISP
RET
S DISP:
MOV A,S_BIT
MOV DPTR,#TAB
MOVC A,@A+DPTR
LCALL DISP
RET
B DISP:
JNB TEM_BIT,B_DIS
MOV A,#Ofdh
LCALL DISP
RET
B DIS:
JB l8H,B_l
MOV A,#Offh
LCALL DISP
RET
B 1: MOV A,#03H
LCALL DISP
RET
DISP: CLRC
MOVR2,#8
DIS: RRCA
MOVDAT,C
CLRCLK
SETBCLK
CLRCLK
DJNZ R2,DIS
RET
DELAY: MOV R3,#80h
Dl: MOV R4,#OfEh
DJNZ R4,$
DJNZ R3,Dl
RET
TAB:DB 03H,9FH,25H,ODH,99H
DB 49H,4IH,IFH,OIH,09H
END
V. CONCLUSION
The performance of measurement-control device mainly depends on the performance of sensing element, the processing circuit and the transmission efficiency of collected data. Digital temperature sensor DSl8B20 and processing chip AT89S52 have characteristics of good technical indexes, and the field operations indicate that circuits system has many advantages, such as accurate data detection, good stability and easy adjustment.
After industrial operation test, the system is excellent for worst mine environment, which provides powerful assurance for safe production in the coal industry, and brings good economic and social benefits.
REFERENCES
[1] WANG Furui, "Single chip microcomputer measurement and control
system comprehensive design," Beijing University of Aeronautics and
Astronautics Press, 1998.
[2] XIA Huguo, "Technology application in automation combined-mining
face," Shaanxi Coal, 2007.
[3] SHA Zhanyou, "Principle and application of intelligent integrated
temperature sensor," Mechanical Industry Publishing House, 2002.
[4] CAO Shujuan, HE Yinyong, GUO San-rning, On-line temperaturemeasuring
system involving coal mine, Journal of Heilongjiang Institute
of Science & Technology,7(2005)
[5] SUN Xiaoqing, XIAO Xingming, WANG Peng, "Design of Measuring
System for Rotating Speed of Hoist Based on Virtual Instrument," Coal
Mine Machinery, 12(2005).
基于AT89S52煤矿井下的温度控制装置的设计
摘 要
煤矿井下抽象温度是评价学术期刊的重要指标,特别是对在地下工作的采矿工。为了有效地监控温度,进行温度测量和控制系统的设计是很有必要的。温度是显示在屏幕上的,当温度达到最大时,通过MeV控制的以开放的空调设备连接的继电器将开始工作,温度信号和控制信息都是通过无线信号传输模块nRF905。该系统由变频器控制程序和显示温度值组成,传感器的控制程序是根据它自己的通信协议进行编制的。无线电数据传输程序应该在数据传输模块中进行。报警装置的设计是向工人为了提供温度异常的有效的信息。通过这样进行煤矿井下的温度检测可以是真实的和有效的。
关键字:DS18B20, AT89S52, nRF905,煤矿的温度控制
I 介绍
煤矿井下的环境很差,各种各样的危险会很容易发生。因此,为了确保煤矿安全生产,需要监督煤矿井下各种参数,包括温度、压力、气体、风的速度和距离。及时对一些矿藏的关键点和和采煤工作面进行温度监控是保证安全生产的一种重要监控,此外,超声波测量距离通常是用于煤矿,有利于保证计量的精确,它被用来做出准确的温度测量,有利于保证计量的精确, 还需要作出准确的温度测量。传统的温度测量是由经典的孤立传感器,它的缺点如下:缓慢的反应速率、高测量误差、复杂的安装、调试和不方便远距离传输。在这篇论文里,智能温度监控和控制已经通过DS18B20温度传感器和以AT89S52单片机为平台而成为现实。DS18B20具有一些优势,主要包括数字计数,直接以数字的形式输出测量的温度,更少的温度误差,分辨率高、抗干扰能力强的特点, 远距离输送和串行总线接口。与传统的温度测量方法比较,单片机实现了温度测量的温度数据存储和分析、远程传输等。DS18B20传感器是由美国达拉斯一家公司制作的一系列的数字单一传感器[I]。
II 对温度控制系统的硬件是合计
该装置由温度传感器DS18B20,单片机AT89S52,显示模块和继电器为主要风机控制。这些硬件的原理图如图一所示。DS18B20温度传感器把环境温度转换为有正负的数字信号(与16位互补码占两个字节),那么它的输出直接连接销与单片机的Pl.2 2。Rl是拉电阻和传感器使用外接电源。连接到Pl.7继电器和博是与LED显示屏。AT89S52是整个装置的控制核心。显示模块由四位一体的common-anode 9012发光二极管(LED)和4个。读写的传感器显示的是其温度控制的继电器完成程序控制种群系统。[2]
III 设计信号的无线传输
测试信号是通过无线方式,显示在图一。在煤矿井下用电线传送信号有一些缺点。
1) 矿产的开采是通过挖掘轴荷隧道,与此同时,矿井下有很多设备在使用,因此,它是更难接线轴和隧道,电线传输的信号换进很很差。
2) 支持员工就应该在煤机器出现问题时随时检查传输信号的电缆,因此,工人的劳动强度在提高。
3) 通过敏感原件用接触法进行远程传输传感和联系方式,可能会导致更多的错误。为了减少错误,远程线驱动器和安全屏障是非常必要的,因此,成本在增加。
4) 在矿井下进行维护的工作量比较大。
图一 信号无线传输系统的的结构框图
相比之下,采用无线数据传输可以有效地避免上述弊端。[3]
无线信号传输模块nRF90是用于设计的,其特点如下: 集成无线收发器芯片nRF905的ISM工作频段是433/868/915兆赫,由一个完全整合的频率调制器和解调器,接收器,功率放大器,晶体振荡器和调节器组成,它工作的运行方式是突发脉冲,前导资料和CRC码的自动生成模式,它能容易的通过程控SPI接口。现在的模块消耗是很低的,当发射功率是+10bDm,发射电流是30 rnA和接收电流12.2 rnA,它也可以进入POWERDOWN模式实现节能。[4]
IV 软件设计
为了DS18B20的读写程序编制,它的读写时间顺序应该要得到保证,否则,温度测量的结果将不会被阅读。
图2 软件设计流程图
因此,为了 DS18B20操作的程序设计,最好采用汇编语言编写。[5]图2是软件设计流程图显示。
软件设计流程图显示
INIT-1820:
SETB DIN
NOP
CLRDIN
MOV RO,#250
TSRI: DJNZ RO,TSRI
SETB DIN
NOP
NOP
NOP
MOV RO,#60
TSR2: DJNZ RO,TSR2
JNB PI.0,TSR3
LJMPTSR4
TSR3: SETB FLAGI
JMPTSR5
TSR4: CLR FLAG1
LJMPTSR7
TSR5: MOY RO,#6BH
TSR6: DJNZ RO,TSR6
TSR7: SETB DIN
RET
GET-TEMPER:
SETB DIN
LCALL INIT 1820
18 FLAG1,TSS2
RET
TSS2: MOY A,#OCCH
LCALL WRITE 1820
MOY A,#44H
LCALL WRITE 1820
LCALL DELAY
LCALL DELAY
LCALLDELAY
LCALLDELAY
LCALL DELAY
LCALLDELAY
LCALL INIT 1820
MOY A,#OCCH
LCALL WRITE 1820
MOY A,#OBEH
LCALL WRITE-1820
LCALL READ-1820
RET
WRITE-1820:
MOY R2,#8
CLRC
READ-1820:
MOVR4,#2
MOV Rl,#29H
REOO: MOV R2,#8
REOl: CLR C
SETB DIN
NOP
NOP
CLRDIN
NOP
NOP
NOP
SETB DIN
MOVR3,#9
ADJUST_TEMPER:
CLR TEM_BIT
JNB 47H,AJUST
SETB TEM_BIT
XRL TEMPER_L,#OFFH
MOV A,TEMPER_L
ADDA,#OlH
MOV TEMPE~L,A
XRL TEMPER_H,#OFFH
MOV A,TEMPER_H
ADDCA,#OOH
MOV TEMPER_H,A
ADJUST:
MOV A,TEMPER_L
MOV B,#lOO
DIVAB
MOV B_BIT,A
MOV A,B
MOV B,#lO
DIVAB
MOV S_BIT,A
MOV G_BIT,B
DISP MAIN:
LCALL D_DISP
LCALL G_DISP
LCALL S_DISP
LCALL B_DISP
MOV A,#OFFH
LCALLDISP
MOV A,#OFFH
LCALL DISP
MOV A,#OFFH
LCALLDISP
MOV A,#OFFH
LCALL DISP
LCALLDELAY
RET
D-DISP:
MOVC,D_BIT
JC D DISPI
MOV A,#03H
LCALL DISP
RET
D-DISPl:
MOV A,#49H
LCALL DISP
RET
G-DISP:
MOV A,G_BIT
MOV DPTR,#TAB
MOVC A,@A+DPTR
ANLA,#OFEH
LCALL DISP
RET
S-DISP:
MOV A,S_BIT
MOV DPTR,#TAB
MOVC A,@A+DPTR
LCALL DISP
RET
B-DISP:
JNB TEM_BIT,B_DIS
MOV A,#Ofdh
LCALL DISP
RET
B-DIS:
JB l8H,B_l
MOV A,#Offh
LCALL DISP
展开阅读全文