用户名: 密码: 验证码:
基于单片机的昆虫加热板温度测控系统设计
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
为了研究昆虫热特性,本文以单片机、可控硅及DS18B20数字温度传感器为核心,运用单片机开发方法、程序设计方法和系统仿真调试方法设计了一个昆虫加热板温度测控系统。
     根据系统要求,设计了系统基本结构,确定系统总体方案;根据加热板工作过程,设计了加热板控制方案,以可控硅过零方式调节加热板加热功率,以PID控制算法计算控制量。分析系统主要功能,设计了系统硬件电路,编写系统软件程序。以AT89C51单片机为控制核心,运用Keil C51开发平台、采用C语言设计了单片机程序对加热板温度进行采集、处理和传输。温度采集电路以1-Wire总线型数字温度传感器DS18B20作为温度采集单元,分四路采集加热板温度,输出数字信号给单片机以供处理。采用PID控制规律和可控硅过零触发方式调节加热板加热功率,设计了过零脉冲产生电路和可控硅触发电路。在单片机与计算机通信过程中,由于单片机的串行接口输出的是TTL电平,本文采用MAX232芯片设计了通用的RS232电平转换电路对其进行电平转换,计算机与单片机之间采用串行通信异步传输。在上位计算机操作界面部分,利用VB6.0集成开发环境制作了人机交互界面。在加热过程中,人机界面能实时显示昆虫的温度并能绘制出温度随时间变化的曲线,还能根据需要设置系统参数,包括加热速率、通信端口等;界面操作简单、方便。
     运用Proteus ISIS仿真软件对设计的系统进行仿真调试,在仿真调试过程中弥补系统的不足之处并逐步完善系统,最终完成系统设计。该系统具有良好的人机交互界面,能够准确记录各种昆虫特别是一些害虫在加热过程中的温度变化过程。所测得的昆虫温度变化过程的一些数据将会给昆虫的检疫以及射频热处理杀虫技术提供有价值的参考。
In order to study the thermal characteristics of insects, SCM, SCR and digital temperature sensor DS18B20 were used as the major parts in designing a set of heating block temperature measuring and control system.
     On the basis of system requirements, the basic structure of the system is designed and the system overall plan is determined. According to the working process of heating block, the controlling scenario of heating block is designed. It used triac Zero-crossing way to adjust the heating block heating power and used PID control algorithm to calculate the control volume. Analyzing the main functions of the system, the hardware circuit is designed and the procedures of system software are written. Using AT89C51 as the control core, using Keil C51 development platform and C language to design SCM program to collect, process and transmit the temperature of the heating block. 1-Wire bus digital temperature sensor DS18B20 is used as the temperature acquisition unit to design temperature acquisition circuit. It divided four groups to collect the temperature of heating block and output digital signal to the SCM for processing. Using PID control law and triac zero-crossing trigger way to adjust heating power of heating block, zero-crossing pulse generator circuit and thyristor trigger circuit is designed. Because SCM output TTL electricity, we need to design the conversion circuit in the communication course of SCM and computer. In the communication of SCM and computer, because SCM serial interface output is TTL level, this paper used MAX232 chip to design common RS232 level conversion circuit for its conversion. It used asynchronous transmission of serial communication between SCM and computer. In the upper part of the computer interface, a man-machine interface is produced, using VB6.0 integrated development environment. In the heating process, the human-machine interface can display the temperature of insects and can draw up the curve about temperature along with the time variation. It can also according to need to set the system parameters, including heating rate, communication port and so on. Interface is simple and convenient.
     The system which has been designed is simulated and debugged using the simulation software Poteus ISIS. Then it can make up for the inadequacies of the system , gradually improve the system, and finished the system at last. This system has a good man-machine interface. It can record temperature history of insect pests which were heated. The data about temperature history of insect pests offers valuable reference insects quarantine and RF insecticidal treatment technology.
引文
[1]杨杏,管维,陈定虎.热处理对昆虫生理生化的影响及其在进境水果检疫处理中的研究生应用[J].植物检疫,2007,21(3):180~182.
    [2]乔勇进,冯双庆,赵玉梅.热处理对黄瓜冷害及生理变化的影响[J].食品科学,2003,24(1):131~135.
    [3] Tang J , Ikediala JN , Wang S etc. . High-temperature-short-time thermal quarantine methods[J].Postharvest Biology and Technology,2000,21:129~145.
    [4] Ikediala JN,Tang J,Wig T.A Heating Block System for Studying Themal Death Kinetics of Insect Pests[J].American Society of Agricultural Engineers,2000,43(2):351~358.
    [5]陈慧,郑伟,陆洋.探究微波技术防止挂面出虫[J].粮食与食品工业,2006,13(5):11~13.
    [6]何丹军,严继宁.微波加热技术在除害处理中的应用[J].中国检验检疫,2006(8):28.
    [7]景卫东,李珂.微波杀虫灭菌性能效果及副作用比较研究[J].档案学研究,2001(3):45~49.
    [8]梁静波,陈洪俊.微波处理植物种子灭虫试验[J].植物检疫,1997,11(2):90~91.
    [9]彭远明.微波杀菌处理对档案纸张破坏作用的研究[J].档案学研究,1999(2):61~63.
    [10] Birla SL,Wang S,Tang J etc..Quality of oranges as influenced by potential radio frequency heat treatments against Mediterranean fruit flies[J].Postharvest Biology and Technology,2005,38:66~79.
    [11] Mitcham EJ,Veltman RH,Feng X etc..Application of radio frequency treatments to control insects in in-shell walnuts[J].Postharvest Biology and Technology,2004,33:93~100.
    [12] Wang S,Tang J,Cavalieri RP.Modeling fruit internal heating rates for hot air and hot water treatments[J].Postharvest Biology and Technology,2001,22:257~270.
    [13] Wang S,Tang J,Johnson JA etc..Thermal-death kinetics of fifth-instar Amyelois transitella (Walker) (Lepidoptera: Pyralidae)[J].Journal of Stored Products Research,2002,38:427~440.
    [14] Wang S,Tang J,Johnson JA etc..Dielectric Properties of Fruits and Insect Pests as related to Radio Frequency and Microwave Treatments[J].Biosystems Engineering,2003,85(2):201~212.
    [15] Wang S,Yin X,Tang J etc..Thermal resistance of different life stages of codling moth (Lepidoptera: Tortricidae)[J].Journal of Stored Products Research,2004,40:565~574.
    [16]梁帆,梁广勤,吴佳教等.应用热水处理技术对进境木瓜作杀虫处理[J].植物检疫,2006,20(3):139~140.
    [17]余小林,徐步前,梁佳伟.热处理技术改善果蔬贮藏品质的研究[J].果树科学,1999,16(增刊):37~41.
    [18]袁海娜.国内外果蔬热处理保鲜技术研究进展[J].粮油加工与食品机械,2002(10):30~32.
    [19]张海芳,赵丽芹,韩育梅.热处理在果蔬贮藏保鲜上的应用[J].保鲜与加工,2005,5(2):13~15.
    [20]林峰,徐金汉,黄可辉等.出口原竹制品的热处理杀虫技术[J].植物检疫,2008,22(5):290~292.
    [21]戚龙君,宋绍伟,严振汾等.热处理杀灭木质包装中松材线虫的技术研究[J].植物检疫,2005,19(6):325~329.
    [22]叶宇煌,程文正.竹料的微波干燥与杀虫防霉技术[J].福州大学学报(自然科学版),1994,22(5):124~126.
    [23]周璐,王少彬,兰敏等.热处理法防除花卉栽培基质线虫的技术研究[J].检验检疫科学,2006,16(增刊):28~31.
    [24] Feng X,Hansen JD,Biasi B.Use of hot water treatment to control codling moths in harvestedCalifornia‘Bing’sweet cherries[J].Postharvest Biology and Technology,2004,31:41~49.
    [25] Hansen JD,Wang S,Tang J.A cumulated lethal time model to evaluate efficacy of heat treatments for codling moth Cydia pomonella (L.) (Lepidoptera: Tortricidae) in cherries.[J].Postharvest Biology and Technology,2004,33:309~317.
    [26]林垂涛,郭文川,刘娜等.基于单片机的昆虫热特性测量控制系统的设计[J].安徽农业科学,2009,37(1):429~431.
    [27] Gan YC,Chen N,Zhong NS.A total distributed control system for the GK-270 rubber mixing production line[C] . Industrial Technology, Proceedings of the IEEE International Conference.Guangzhou China,1994.156~158
    [28]陶冶,袁永超,罗平.基于DS18B20的单片机温度测量系统[J].农机化研究,2007(10):160~163.
    [29]薛燕红.基于89C51+DS18B20的智能温控器的研制[J].《微计算机信息》(测控自动化),2007,23(3):198~199.
    [30]余志勇,李忠义.晶闸管交流调压器触发电路分析与设计[J].电力电子技术,1998(1):1~3.
    [31]刘政,黄席樾.基于单片机的可控硅全控桥数字触发控制系统[J].重庆大学学报(自然科学版),2002,25(1):84~87.
    [32]刘克伟,郭绍明.PID调节和可控硅技术在自动温控设备上的应用[J].职大学报,2003(4):45.
    [33]陈晓英,王德江,陈骁峰.利用单片机实现可控硅导通角控制[J].辽宁工学院学报,2001,21(2):15~16.
    [34]贲洪奇,万鹏程.一种过零调功控温方法及实现[J].电测与仪表,1997,34(380):32~35.
    [35]连世江,陈军,贾海政等.基于PID控制的拖拉机自动转向系统[J].农机化研究,2009(6):211~213.
    [36]郭文川.单片机原理与接口技术[M].北京:中国农业出版社,2007.
    [37]李华.MCS-51系列单片机实用接口技术[M].北京:北京航空航天大学出版社,1993.
    [38]方彦军,孙健.智能仪器技术及其应用[M].北京:化学工业出版社,2003.
    [39]张毅刚.新编MCS-51单片机应用设计[M].哈尔滨:哈尔滨工业大学出版社,2004.
    [40]许伟.基于AT89C51单片机的脉象信号采集系统研究[D].长春:东北师范大学硕士学位论文,2007.
    [41] ATMEL公司.AT89C51说明书.http://www.21icsearch.com/.
    [42]广州周立功单片机发展有限公司.AT89C51使用说明.http://www.zlgmcu.com.
    [43]开发板精品网.AT89C51单片机中文资料.www.mcu361.com.
    [44]吴晓明.基于单片机的沼气反应器温控系统的研究[D].杨凌:西北农林科技大学硕士学位论文,2008.
    [45]当当电子工作室.DS18B20中文资料.www.dangdangdz.com.
    [46]伟纳电子.DS18B20资料手册.www.willar.com.
    [47]农静,郑宗亚,刘志杰.单总线数字温度传感器DS18B20原理及应用[J].贵州师范大学学报(自然科学版),2007,25(3):119~122.
    [48]王晓娟,张海燕,梁延兴.基于DS18B20的温度实时采集与显示系统的设计与实现[J].青岛远洋船员学院学报,2007,28(2):38~41.
    [49]王永青,周金香,孙荣霞.基于DS18B20的车用双路测温装置[J].电子测量技术,2007,30(11):120~125.
    [50]张越,张炎,赵延军.基于DS18B20温度传感器的数字温度计[J].微电子学,2007,37(5):709~711.
    [51] Dallas.DS18B20 Programmable Resolution.www.dalsemi.com.
    [52]柴锁柱,王炳章,赵秋.基于C51的DS18B20驱动电路设计[J].传感器世界,2007(8):36~39.
    [53]彭敏.基于DS18B20的温度显示和报警装置的研制[J].快速消费品行业应用,2007(11):116~118.
    [54]平凡单片机工作室.用单片机制作温度计.http://www.mcustudio.com/wdwz/ds18b20.pdf,2007.
    [55]戴蓉,游凤荷,周景霞.由单片机和多片DS1820组成的多点温度测控系统[J].国外电子元器件,2001(1):60~62.
    [56]刘卫,刘定良.基于DS18B20设计的多点测温系统[J].长沙民政职业技术学院学报,2007,14(2):92~95.
    [57]陈志康,张书常.可控硅的原理特性及应用[J].商洛师专学报(自然科学版),1997,8(12):81~85.
    [58]徐昆武.可控硅及其应用[J].家庭电子,1999(2):55.
    [59] BT136-600 Datasheet.www.alldatasheet.com.
    [60]樊世科.智能温度控制系统[J].高校实验室工作研究,2006(4):35~37.
    [61]樊月珍,毛恩荣.双向可控硅过零调功调速的技术实现方法[J].中国农业大学学报,2004,9(6):56~59.
    [62]李丽敏,张玲玉,解浩等.单片机温度测控系统设计[J].佳木斯大学学报,2008,26(1):37~39.
    [63] MOC3041 Datasheet.www.fairchildsemi.com.
    [64]范逸之,陈立元.Visual Basic与RS-232串行通信控制(最新版)[M].北京:清华大学出版社,2002.
    [65]郝小江.单片机和PC机串行通信系统设计[J].攀枝花学院学报,2007,24(3):29~31.
    [66]黄镇建.单片机与微机的串行通信[J].韩山师范学院学报,2004,25(3):53~57.
    [67]匡万,毛幼菊.单片机与PC机串行通信的研究[J].微计算机信息,1998,14(4):24~26.
    [68]张淑俭.PC机与单片机之间的串行通信[J].电脑知识与技术,2005(14):50~54.
    [69]张晓海,任杰,张宁等.单片微型计算机与PC机串行通信的研究[J].石河子大学学报(自然科学版),2002,6(2):147~149.
    [70]济源职业技术学院.单片机的串行通信.http://www.jyvtc.com/jpkc/dpj/Read.asp?Lab=94.
    [71]郭成林.AT89系列单片机与PC机之间的串行通信接口设计[J].山西电子技术,2008(1):31~32.
    [72]甄任贺,愈寿益.单片机与PC机串行通信的实现方法[J].广东技术师范学院学报,2004(6):25~27.
    [73] MAX232 Datasheet.http://www.maxim-ic.com.
    [74]电子发烧友.MAX232中文手册.http://ww.elecfans.com.
    [75]电子开发网.Keil C51使用详解.www.dzkf.cn.
    [76]包松,鲍可进,余景华.基于单片机PID算法的直流电机测控系统[J].微机发展,2003,13(8):72~74.
    [77]蒋斌.Visual Basic 6.0程序设计[M].北京:电子工业出版社,2001.
    [78]李怀明,骆原,王育新.Visual Basic 6.0中文版参考详解[M].北京:清华大学出版社,1999.
    [79]王虹,贾胜利,姚学礼等.Visual Basic 6.0实用教程[M].北京:人民邮电出版社,1999.
    [80]李宁.基于PC机和单片机主从式测控系统的设计[D].西安:西安理工大学硕士学位论文,2008.
    [81]黄润发,强莎莎.VB程序设计技术[M].上海:中国纺织大学出版社,2001.
    [82]周子琛,申振宁.用VB实现计算机与单片机的串行通信[J].半导体技术,2002,27(1):42~44.
    [83]高永强.VB环境下如何利用MScomm进行串行通信[J].吕梁教育学院学报,2006,23(2):68~70.
    [84]冯莉,李巨.MScomm控件通讯方式的使用[J].电脑开发与应用,2006,19(9):49~50.
    [85]阚能琪,汪鑫.MScomm控件在串口编程中的应用[J].四川工业学院学报,2003,增刊:3~5.
    [86]许光泞,高永岩,孙艺敏等.VB中MScomm控件的设置与应用[J].电脑学习,2004(5):27~28.
    [87]张玉强,白少民.串口通信编程分析及其VB编程实例[J].延安大学学报(自然科学版),2003,22(3):38~40.
    [88]毕建涛,钟道昌,田茜堂.Visual Basic 6. 0下串行通信的编程方法[J].山东科技大学学报(自然科学版),2002,21(1):88~90.
    [89]柴学宁.利用VB实现计算机与单片机的串口通信[J].电脑编程技巧与维护,2005(12):56~58.
    [90]陈三风,刘晓波.基于VB6.0与单片机串行通信的数据采集系统设计[J].自动化与仪表,2004(1):66~68.
    [91]巩伟,陈志坚,梁冬莹.VB语言与MCS-51单片机在主从式通信中的应用[J].自动化技术与应用,2000,19(6):23~25.
    [92]杨世品,陈林.基于Proteus的单片机出租车计价器的设计[J].《微计算机信息》(嵌入式与SOC),2007,23(4-2):106~108.
    [93]王文海.基于PROTEUS的PC机与单片机串口通信的仿真[J].科技咨询导报,2007(26):1~3.
    [94]王红仓,张俊涛.基于PROTEUS的单片机多路温度采集系统的仿真设计[J].陕西科技大学学报,2007,25(5):84~87.
    [95]倪升跃.PROTEUS——一种集单片机模拟和SPICE分析于一身的软件[J].电子世界,2004(12):38~39.
    [96]董普松.Protues在单片机系统设计中的应用[J].现代电子技术,2008(14):153~154.
    [97]邓小武,王栋,李勇.基于Proteus的单片机软硬件实时动态仿真[J].工业控制计算机,2007,20(5):24~25.
    [98]陈文辉.基于单片机控制的装饰灯系统设计——Proteus和Keil C结合使用[J].福建轻纺,2007(8):15~21.
    [99]陈朝元,鲁五一.Proteus软件在自动控制系统仿真中的应用[J].系统仿真学报,2008,20(2):318~320.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700