




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、毕业设计外文资料翻译 外文出处:2007 Second IEEE Conference on Industrial Electronics and Applications学 院: 信息工程 系:电子信息工程专 业: 电子信息工程 班 级: 电子073 学 号: 6100207237 学生姓名: 彭均均 外文原文:A Design of the Temperature Test System Based on Grouping DS18B20LI Ping ZHOU Yucai Xiangjun ZENG YANG Ting-fangChangsha University of Science
2、 and Technology,Changsha 410077, Hunan, P. R. China. Abstract- All the DS18B20 sensors, used for the multipoint test temperature, are connected with MCU on one of IO bus, and temperature data are collected by turns. If the system has a large amount of sensors, the time of MCU used in processing the
3、temperature data is obviously prolonged, so the cycle of alternate test gets longer. In this paper, a new method that DS18B20 are rationally grouped is presented, and some measures are taken in software; as a result, the speed of alternate test advances distinctly.Key words- DS18B20 Group ,temperatu
4、re test, time spent on the alternate test.I. INTRODUCTIONAs the simple structure, convenient installment, low loss and wide range of temperature test, DS18B20 temperature test sensors are applied to the fields which need the multipoint temperature test, such as the chemical industry, the grain, the
5、environment supervision and so on. Because of the adoption of one bus in the DS18B20 multipoint temperature test system, all DS18B20 are hung on one bus, and then the temperature conversion value of each test point is read by turns. As the conversion value must be read after reading-pin state for 8
6、times, and position and store data must be moved, so time spend much in reading one point of the data system by every time. If the temperature test system is large-scaled, the system loss caused by it is rather much, and then the alternate test speed of the system decreases obviously, which influenc
7、es the efficiency of the multipoint temperature test system seriously. In this paper, DS18B20 are hung on some I/O buses by grouping DS18B20 evenly, and the conversion temperature data is obtained by reading the state of DS18B20, then the system loss decreases and the alternate test speed increases
8、obviously, which wont influence the precision and the reliability of the conversion. A set of multipoint temperature test of artificial environment laboratory is achieved in this paper, which increases the test efficiency of the former system. . CHARACTERISTICS OF DS18B20 DS18B20 is the si
9、ngle bus digital temperature sensor from American Dallas Company. DS18B20 is consisted of the 64 figures ROM engraved by laser, the temperature sensitivity component, non-volatile temperature alarms trigger (Device TH and TL).DS18B20 communicates with the microprocessor by the single bus port and th
10、e test range of DS18B20 is from -55 centigrade to +125 centigrade, and the incremental value is 0.5 centigrade. The temperature can be changed into figures within 720ms and each DS18B20 has the sole 64 figures serial number. The specific content is revealed as Fig 1: There are two 8 figures storages
11、 (No.0 and No.1) for storing temperature value in DS18B20. No.0 storage stores complement of the temperature value, and No.1 stores symbols of the temperature value. The user can define non-volatile temperature alarms sets and distinguish the alarms search order and seek the component temperature al
12、arms state outside the scheduled limit. There are two alternative ways of power supply: Signal bus high-level borrow power is adopted, or the +5v power supply externally is adopted directly.Fig 1 DS18B20 64bit ROM. APPLICATION THE GROUPING TEST METHOD This paper illustrates the grouping method with
13、the interface of DS18B20 and 89C52. Assuming the amount of the buses on P1 port is 4 and the temperature test system needs 100 DS18B20 sensors, which can be distributed equally to the 4 I/O lines. If the number of sensors cannot be divided by the number of buses even, the number disparity of sensors
14、on buses is no more than one, which can be handled while reading numbers. The power is supplied externally. Owning to the synchronistic conversion in each DS18B20, the intense current is needed, and the signal bus cannot be used for the power supply, otherwise the system cannot work in order. The sc
15、hematic circuit is shown as Fig 2 (the DS18B20 signal buses of the same group are hung on some buses of P1 port). When read and write the DS18B20, the strict schedule must be kept. First a reversion pulse is sent to all DS18B20. After the reversion, Skip ROM order is sent to each circuitsimultaneous
16、ly from the I/O port, and the conversion order is sent, then all sensors begin transform. After the conversion, Match Rom order is sent to each circuit simultaneously, and 64 bits serial number is sent. DS18B20 is selected for each group, and Scratch Pad data is read. Finally the data is transformed
17、. The data of serial-read is transformed into the actual temperature value. One alternate test is finished after the DS18B20 temperature data is read completely by the cyclical reading for 25 times. The whole flow chart is shown as Fig 3.Fig 3 the diagram of collecting temperature by grouped DS18B20
18、 Now the time-consuming in the test system of the single bus and the grouping analyses method is illustrated respectively. The reversion time sequence and the timesequence of writing and reading one bit for the microprocessor are revealed in figures 4-6. The figure show: The reversion period of DS18
19、B20 is 495us-1020us;the writing period of one bit is 60us-120us;the reading period of one bit is above 60us; the span of writing or reading the next bit is 1us. As the A/D conversion time is 97.35ms (9 precisions), if it is counted by the shortest way, the total time-consuming of alternate test is c
20、alculated respectively as follows:(1) Single bus495us+2*(8*60+7)us+97.35ms+495us+100*(64*60+63+8*60+7+9*60+8)us=552.534ms(2) Grouping mode495us+2*(8*60+7)us+97.35ms+20(64*60+63+8*60+7+9*60+8)us=189.804ms As the small proportion of the numeration system conversion and the storage time in the whole pe
21、riod, the unknown crystal-oscillator frequency, the numeration systemconversion and storage time is not counted. Accordingly, the alternate test time which grouping mode consumes is much shorter than single bus mode obviouslyFig 4 DS18B20 reversion time sequenceFig 4 DS18B20 reversion time sequenceI
22、V. EXAMPLE OF THE DESIGN The asphalt transportation vehicle is the main transportation equipment between the material field and road surface. The unavoidable temperature decreasing because of the asphalt transportation vehicles long working and transportation distance influences the paving quality o
23、f the road surface, the specific measures must be taken according to the heat release of the shell. This paper designed a set of wireless temperature using DS18B20 grouping mode test system for testing the temperature of the asphalt transportation vehicle shell, and the total points is 120. Temperat
24、ure test system software adopts the modular design. The hypogenous machine collects data, stores data, sets up DS18B20, and sends the wireless module and so on. The epigenous machine adopts PC machines, mainly receives the temperature data from the hypogenous machine. The epigenous machine displays,
25、 stores and manages data. The simple communication between people and machines is performed by the epigenous machine. This paper will not illustrate the simple procedure of the epigenous machine in detail. The following is the illustration of parts of hypogenousmachine. including the components of s
26、ystem hardware , software functions and process.A. System hardware Considering the multipoint temperature number of the temporary storage and the considerable internal RAM during the value conversion, the chief controlling chip adopts ATMEL 89C52 Single-Chip Microcomputer with 256 bytes RAM and 8KB
27、E2PROM procedure storage. As the distinguishable code of DS18S20 is read and numbered, the liquid crystal module (Ao Kela Chinese integrated module ofOCMJ Jin Peng Company) and the keyboard module are added. The wireless digital transmission adopts the wireless module PTR2000 in the whole reception-
28、sending form, which may has two amateur bands to choose and the regulative BaudRate ( the max is 20Kbit/s), and the Single-Chip Microcomputer serial port data can be received directly. The system hardware structure is shown as Fig 7:DS18B20, with the power supply, divided into 8 groups hung on P1 po
29、rt (P1.0-P1.7). The wireless module is hung on serial port directly and the hardware watchdog adopts the MAX813 chip. When the power is added to the system, the 89C52 reversion signal is transmitted from the MAX813 reversion pin, and the value of the reversion pulse is 200ms. When the procedure is i
30、n order, a pulse signal must be sent to MAX813 WDI pin in no more than the interval of 1.6s to clear away the watch-dog timer. If the interval is more than 1.6s, the pin does not receive the pulse signal, and then the 89C52 must be reversed. As 120 DS18B20 serial numbers must be stored in the system
31、, the data storage DS1225 (8K) against the power failure is developed.B. System software function and process The software part of the temperature test system numbers DS18B20, collects and transforms data, performs the wireless communication, manages keyboard and so on. For the convenience of the pr
32、ocedure debugging and the reliability, the module design is adopted, mainly including the keyboard processing module, the wireless communication module, the module of temperature collection and processing, the display module and so on. The software flow chart is shown as Fig 8 After the reversion of
33、 add power 89C52 self-checks first, then allocates each branch procedure module. The chief procedure manages the keyboard, initializes the system andtransfers each functional module. The haul line is kept to perform DS18B20 edit mission. 120 points serial number of DS18B20 is read by the keyboard an
34、d display coordination and numbered into DS1225Y. First the wireless module is set up as the reception state to receive the collection parameters and start the order (The transmission content is sent by pack ; the same content is sent for three times ; two out of three logic is performed according t
35、o the bit). The wireless module is set up as the sleep state during the conversion and the transforming state during the temperature data transmission. Packing sends the temperature data and the DS18B20 numbers in the system to epigenous machine. Theparts of collection and conversion start the DS18B
36、20 conversion, read the temperature data by grouping methods, store data and so on. The following procedure is the maincontent of collecting and conversion modules:void Get_ Temperature(void) uchar i,j , temp_ lsb, temp_ msb;for(i=0;i<8;i+)skip_rom(i);/skip over the serial numbers to checkwrite_b
37、ytes(0x44 );/transform the temperature in each circuit at the same timefor(j=0;j<100;j+)/ prolong the time for 0.1s; wait for the end of conversiondelay(1000);For(j=0;j<15;j+) match_ rom(j); read_ scratchpads (j); /each temperature value is read in 8 busesfor(j=0;j<120;j+)temp_lsb = temp_pa
38、dj0 ;/the data conversion of the temperature valuetemp_msb = temp_padj1 ;temp_lsb >>= 4 ; temp_msb <<= 4 ;temp_lsb |=temp_msb; temp_msb = (temp_lsb/10) ;temp_msb <<=4 ; temp_lsb %= 10 ;temp_lsb |=temp_msb; temperature_ velj =temp_lsb;V. CONCLUSION Authors create the following new i
39、deas1)Alternate test time difference of the multipoint temperature test system in the grouping method and the single bus method is analyzed, then the alternate test speed can be increased greatly by grouping method.2)A set of wireless multipoint temperature test system is designed by DS18B20 groupin
40、g method. This system is applied to the technology reform of the asphalt transportation vehicle in some domestic large-scale engineering mechanical company and the good result of the application is achieved.REFERENCES1 ShenJin,SongJingLing. An All-digital Temperature Measuring System Used in Grain B
41、arns.Transaction of the chese society for Agricultural Machinery,2001,(2):89 91.2 LiMinHui, Jung Deqiong. A Device of Temperature Measuremen Made up of DS1820 and AT89C205. Journal of Sichan Normal University 1997,(5):93-963 Qi ZhiCai Gai Shuang. Embedded Control System of the CentralAir conditioner
42、 Room,InstrumentTechnique and Sensor 2002,(5):25-26.4 ZhangPeiren ZhouYanping. A Large-Scale Temperature Alarm System Based on 1 Wire Bus and CAN bus, Control&Automation 2003,(2):25-26译文:基于DS18B20分组方式温度测试系统设计摘要:当用于多点测温时,所有的DS18B20传感器都连接在单片机的某根总线上,采用轮流采集温度数据的方式。当系统有多个传感器时,单片机用于处理温度数据的时间就会明显延长,从而导
43、致测温系统周期增长。在本文中,采取对DS18B20合理的分组的方法,并在软件上采取一定措施,从而明显的提高交替检测速度。关键词:DS18B20分组 ;温度测试;交替检测时间.引言DS18B20温度传感器由于其结构简单、安装方便、低损耗以及测温范围宽而被广泛应用于需要多点测温的地方,像化工,粮食,环境监测等等。由于多点温度测试系统采用的是单总线方式,所有的DS18B20传感器挂在一根总线上,然后轮流读取每一个测试点的温度转换值。由于读取单个传感器的转换值需要读8次管脚状态,并要进行移位存储数据,所以系统读取每一点的数据花费的时间不小,如果测温系统规模较大的话,由此造成的系统损耗也是相当大的。从而
44、导致系统的交替检测速度明显下降,极大的影响了多点测温系统的检测效率。本文中,对DS18B20平均分组并挂到多根I/O线上,通过同时读取DS18B20的状态得到转换的温度数据,从而明显提高交替检测速度并降低系统开销,同时又不影响转换精度及可靠性。本文实现了一套人工环境实验室的多点温度测试,明显提高了原有测试系统的检测效率。.DS18B20的特性DS18B20是由美国Dallas公司设计的单线数字温度传感器它由64位激光刻印ROM、温敏元件、非易失性温度报警触发器TH和TL器件三个部分组成,其与单片机的通信采用单线接口,DS18B20的测量范围是-55到+125,增量值为0.5。温度变换为数字可在
45、720ms内完成,每一个DS18B20具有唯一的64位的序列号(图1),DS18B20内部有两个8位存储器RAM用来储存温度值(0号和1号),其中0号存储器存放温度值的补码,1号存储器存储温度值的符号。用户可以定义非易失性的温度告警设置并且区分告警搜索命令,寻求组件温度警报状态以外的预定的限制。有两种供电方式:利用信号线高电平时借电供电,或直接用+5V电源。.应用分组测试方法 本文以DS18B20与89C52的接口说明分组测试方法,假定P1口上的总线数为4,温度测试系统需要100个DS18B20传感器,可将100个传感器平均分配到4根I/O线上,如果传感器数量不能被总线数整除,可使连在总线上的
46、传感器数量差别不超过1个,这样读数时就能解决。电源采取外部供电,由于每个DS18B20都是同步转换,所以需要较强电流,不能用信号线供电,否则系统无法正常工作。 线路连接如图2示(同组的DS18B20信号线都连接在P1口的一根总线上)。当对DS18B20进行读写时,必须严格保持时序要求。首先给所有的DS18B20发一个复位脉冲,复位后,从各I/O口发送跳转ROM命令,转换以后,向各路同时发匹配ROM命令,接着发送64位序列号,每组选择一个DS18B20,读取Scratch Pad 数据,最后进行数据转换,将串行读取的数据转换成实际值,循环读取25次将所有DSl8820温度数据完全读完,一次交替测
47、试完成,整个流程如图3所示。图3.DS18B20分组方式温度采集流程现在来分析单总线方式和分组方式测试系统耗时,图4-6分别为DSl8B20的复位时序、单片机写一位和读一位的时序。DS18B20的复位时间为495us一1020us,写一位时间为60us一120us,读一位时间为60us以上,读写相临一位时间间隔为1us。因为A/D转换时间为97.35ms(9位精度),如果按最短时间计算,整个交替检测时间分别为:(1)单总线495us+2f8女60+7)us+9735ms+495us+100"(64*60+63+8*60+7+9*60+8)us=552534ms(2)分组模式495us+28(8"60+7)us+9735ms+20(64+60+63+8+60+7+9460+8)us=189804ms因为数制转换和存储时间占整个交替检测时间很小,以及无法确定晶振频率,这里就不计算数制转换和存储时间。因此,分组模式所用时间明显少于单总线模式。.设计实例沥青运输车是用于原料场和路面之间的主要输送设备,。由于沥青转运车在高寒地区作业或运送距离过长时不可避免的产生温降,这会影响路面的摊铺质量,所以必须根据外壳的散热情况采取具体的保温措施。本文设计了一套用于沥青运输车外壳温度分布的无线温度测试系统基于DS18B20分组方式,总共120个点。
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 厦门三中考试试题及答案
- 义乌电工理论考试试题及答案
- 双11活动方案策划琴行
- 成语考试题及典故答案
- 电工学试卷试题及答案
- 大专政治试题及答案
- 部门调职面试题及答案
- 初中数学课标试题及答案
- 会计实务考试最佳备考方式及试题试题及答案
- 大专测试题目及答案
- 抚养权争取变更协议书范本
- APQC跨行业流程分类框架(PCF)V7.4版-2024年8月21日版-雷泽佳编译
- 1.-轮胎模具简介
- DL∕T 5210.2-2018 电力建设施工质量验收规程 第2部分:锅炉机组
- DL∕T 788-2016 全介质自承式光缆
- 大数据与人工智能营销智慧树知到期末考试答案章节答案2024年南昌大学
- 公司关键岗位绩效评估与激励管理制度
- DB11-T 1875-2021 市政工程施工安全操作规程
- 中国车载冰箱行业市场前景及投资研究报告
- 道德与法治《我们的衣食之源》教案教学设计(公开课)四年级下册
- 《高级护理实践》课件
评论
0/150
提交评论