基于at89s51单片机智能超声波测距系统原理设计论文内容摘要:
子质量,[12]. [J].电子产品世界,[13]. 葛恒清,[J].通化师范学院学报,2004 .10[14]. 周晗晓,[J].电子工艺技术,2004 .6[15]. 王丰,[J].电子产品世界,[16]. 王占操,梁厚琴,[J].电子技术,[17]. [M].武汉:武汉华中科技大学出版社,2002 .5[18]. 程继兴,[J].电子测量技术,2003,[19]. 苏伟,[J].传感器技术,[20]. Tom R. Watt .Cooling our tomorrows economically ,ASHRAE Journal.[21]. Army Kayla. Improving efficiency in existing chillers with optimization technology ,ASHRAE Journal.[22]. mutter , Eerily , , ,Refine the use of the evaporation in an experimental downdraft cool tower ,Energys .1995[23]. Artori S,ZHANG G X. Geometric Error Measurement and Compensation of Machines.Annals of the CIRP. 1995:599609[24]. Bolton W. Instrumentationamp。 process measurement. Longman Scientificamp。 Technical. 1991Design Of Control System Of Belt Grain Dryer Student majoring in Mechanical and Automation ZhangPeipei Tutor: ChenJuan ZhouChong Abstract:This paper has presented a microcontrollerbased singlepulse reflection ultrasonic distance measuring system. The ultrasonic have strong pointing, slow enery consumed ,a far spread and so on, he ultrasonic distance measuring technology is free of light effect, and has advantages of simple structure, low costs, simple reliable information processing etc。 it also has certain adaptive capacity for measured things which are in abominable environment, such as dark, poisonous, smoggy. The whole circuit use blocking design, the paper firstly exoatiate on transducer’s truth and characteristic, regarding the range measuring system ultrasonic wave frequency, the signal pulse, the ponent models and so on the main parameter has carried on the discussion。 it is made of main formality ,seed formality, beam seed formality ,incept seed formality, vision seed formality and so on , singlepulse deal with signal with colligation analyse ,carry on ultrasonic measure. and in the foundation of introducing ultrasonic distance measuring system functions, the total system constitution was proposed and hardware design proposal of the system launching, receiving, examination and displaying modules are demonstrated. According to the system requests, the system the algorithm is designed by modular the programming mentality, the ultrasonic launching and the distanceamplitude displaying function is pleted. Finally through software and hardware synthesis debugging, the basic measuring function of the system in short range is realized. Keyword: ultrasonic, ultrasonic sensor, AT89S51 singlechip puter, LCD display unit, range finde图1 智能超声波测距装置 图2 单片机最小系统图3 超声波接收与发射系统图4 超声波显示装置主程序:/**************************************包含头文件****************************************/includeincludedefine NOP _nop_()。 _nop_()。 _nop_()define uchar unsigned chardefine uint unsigned intdefine ulong unsigned long/***************************************位定义****************************************/sbit csb=P3^6。 sbit green=P2^3。 sbit yellow=P2^4。 sbit red=P2^5。 bit flag_1=0。 uchar vo_vo=0xe7。 uint speed=340。 include//includeincludeincludeincludeincludedefine nop _nop_()float distance。 uint count=0。 uchar high_time,low_time,flag=0,tc=2。 uchar flag_2=0。 uchar tc_say=0。 ulong dis,dis_4[3]。 /***************************************函数名:float Distance_count()功能:距离计算函数****************************************/float Distance_count(){ float temp。 temp=high_time*256+low_time。 temp=(temp*10/9216)/2。 temp*=speed。 return temp。 }/***************************************函数名:ulong do_s(ulong dis_1)功能:距离补偿****************************************/ulong do_s(ulong dis_1){ uchar n。 if((dis_170)amp。 (dis_1100)) { n=dis_1/10。 switch(n) { case 7:dis_1=40。 break。 case 8:dis_1=22。 break。 case 9:dis_1=26。 break。 } return(dis_1)。 } else { n=dis_1/100。 switch(n) { case 1:dis_1=46。 break。 case 2:dis_1=48。 break。 case 3:dis_1=50。 break。 case 4:dis_1=53。 break。 case 5:dis_1=7。 break。 case 6:dis_1=60。 break。 case 7:dis_1=65。 break。 case 8:dis_1=72。 break。 case 9:dis_1=80。 break。 case 10:dis_1=84。 break。 case 11:dis_1+=30。 break。 case 12:dis_1=87。 break。 case 13:dis_1+=27。 break。 case 14:dis_1+=34。 break。 //? case 15:dis_1+=38。 break。 case 16:dis_1+=45。 break。 case 17:dis_1+=49。 break。 case 18:dis_1+=53。 break。 case 19:dis_1+=50。 break。 case 20:dis_1+=55。 break。 case 21:dis_1+=56。 break。 case 22:dis_1+=60。 break。 case 23:dis_1+=72。 break。 case 24:dis_1+=78。 break。 case 25:dis_1+=84。 break。 case 26:dis_1+=92。 break。 case 27:dis_1+=95。 break。 case 28:dis_1+=98。 break。 case 29:dis_1+=101。 break。 case 30:dis_1+=114。 break。 case 31:dis_1+=110。 break。 case 32:dis_1+=103。 break。 case 33:dis_1+=114。 break。 case 34:dis_1+=120。 break。 case 35:dis_1+=119。 break。 case 36:dis_1+=119。 break。 case 37:dis_1+=120。 break。 case 38:dis_1+=122。 break。 case 39:dis_1+=124。 break。 case 40:dis_1+=125。 break。 case 41:dis_1+=150。 break。 case 42:dis_1+=155。 break。 case 43:dis_1+=155。 break。 case 44:dis_1+=155。 break。 case 45:dis_1+=break。 case 46:dis_1+=175。 break。 case 47:dis_1+=185。 break。 case 48:dis_1+=195。 break。 case 49:dis_1+=175。 break。 case 50:dis_1+=175。 break。 } return(dis_1)。 } }/***************************************函数名:void tran(),void tran1(),void tran2()功能:超声波的发射****************************************/void tran(){ uchar i。 TH0=0。 TL0=0。 TR0=1。 for(i=4。 i0。 i) { csb=!csb。 nop。 nop。 nop。 nop。 nop。 nop。 nop。 nop。 nop。 } csb=1。 delay_ms(2)。 EX1=1。 delay_ms(30)。 if(flag==1) { distance=Distance_count()。 dis=(ulong)distance。 flag=0。 } else dis=0。 }void tran1(){ uchar i。 TH0=0。 TL0=0。 TR0=1。 for(i=8。 i0。基于at89s51单片机智能超声波测距系统原理设计论文
相关推荐
35% 文题相符 较好地完成论文选题的 目的要求。 5 写作水平 论点鲜明;论据充分;条理清晰;语言流畅。 15 写作规范 符合学术论文的基本要求。 用语、格式、图表、数据、量 和单位、各种资料引用规范化、符合标准。 10 论文篇幅 10000 字左右。 5 实评总分 成绩等级 评阅教师评审意见: 评阅教师签名: 说明:评定成绩分为优秀、良好、中等、及格、不及格五个等级,实评总分 90— 100
了许多新型方法。 纳米固体材料具有庞大的界面,提 供了大量气体通道,从而大大提高了灵敏度 ,工作温度大大降低, 大大缩小了传感器的尺寸。 当然,在己获得明显进展的纳米传感领域中尚存在很多问题,从敏感材料到制作技术都很不成熟,其性能也有不尽人意的地方 [5]。 气敏传感器在家用电器中也有相当广泛的应用。 吸油烟机等产品上常用 MQ3 型半导体气敏传感器,它采用旁热式结构,陶瓷管内装有高阻抗加热丝
2zVkumamp。 gTXRm6X4NGpP$vSTTamp。 ksv*3t nGK8! z89Am YWpazadNuKNamp。 MuWFA5uxY7JnD6YWRr Wwc^vR9CpbK! zn% Mz849Gx^Gjqv^$UE9wEwZQc@adNuKNamp。 MuWFA5uxY7JnD6YWRr Wwc^vR9CpbK!zn%Mz849Gx^Gj
单的部分,根据功能要求 ,功能移位键、功能加键、功能减键、定闹键。 并采用独立式按键。 3 键盘电路图: S 3 4S 3 1S 2 8 S 2 9S 3 3S 3 0S 2 7S 3 2S 2 4S 2 3S 2 2S 3 5S 2 1 S 4 1 S 4 0P 2 .0 P 2 .1 P 2 .2 P 2 .3P 2 .4P 2 .5P 2 .6INT1C/T0启动 键盘工作原理:
源)得到 3V 电压工作 , 晶体管驱动扬声器发出声音 , 按下复位按钮 SR 停止发声。 图 2: 数字倒数 计时器 电路 计数功能 计数就是对外部时间进行计数。 外部事件的发生以单片机外部引脚 T0( )和 T1( )端的输入脉冲表示 , 外部输入脉冲的负跳变计数器加 1。 最高计数频率为单片机时钟频率的1/24, 这一点在实际应用中要注意 , 如时钟频率为 12MHz, 则最高计数频率为
题作答,因为程序不是很大不需要扩展存储空间,选手按键跳入相应的子程序,回答倒记时 与普通抢答器相比,本作品有以下几方面优势 : 具有清零装置和抢答控制,可由主持人操纵避免有人在主持人说“开始”前提前抢答违反规则。 具有定时功能,在 10秒内无人抢答表示所有参赛选手获参赛队对本题弃权。 10 秒时仍无人抢答其报警电路工作表示抢答时间耗尽并禁止抢答。 为使硬件电路设计尽可能合理,应注意以下几方面: