基于单片机的汽车倒车防撞系统的设计与制作毕业设计开题报告(编辑修改稿)内容摘要:
BB A, 3CH MOV 30H, A SETB EX0 ; 开外部中断 0 POP ACC POP PSW RETI 对于一个平坦的目标,距离测量包括两个阶段 :粗糙的测量和精细测量。 第一步:脉冲的传送产生一种简单的超声波。 第二步:根据公式改变回波放大器的获得量直到回拨被检测到。 第三步:检测两种回波的振幅与过零时间。 第四步:设置 回波放大器的所得来规格输出,假定是 3伏。 通过脉冲的周期设置下一个脉冲。 根据第二部的数据设定时间窗。 第五步:发射两串脉冲产生干扰波。 测量过零时间与回波的振幅。 如果逆向发生在回波中,决定要不通过在低气压插入振幅。 第六步:通过公式计算距离 y。 四、超声波测距系统的软件设计 软件分为两部分,主程序和中断服务程序,如图 3( a)( b) (c) 所示。 主程序完成初始化工作、各路超声波发射和接收顺序的控制。 定时中断服务子程序完成三方向超声波的轮流发射,外部中断服务子程序主要完成时间值的读取、距离计算、结果的输出等工作。 系统初始化后就启动定时器 T1 从 0开始计数,此时主程序进入等待,当到达定时时间时 T1 溢出进入 T1 中断服务子程序;在 T1 中断服务子程序中将启动一次新的超声波发射,此时将在 引脚上开始产生 40KHz 的方波,同时开启定时器 T0计时,为了避免直射波的绕射,需要延迟 1ms 后再开 INT0 中断允许; INT0 中断允许打开后,若此时出现低电平则代表收到回波信号,将提出中断请求进入 INT0 中断服务子程序,在 INT0 中断服务子程序中将停止定时器 T0计时,读取定时器 T0 时间值到相应的存储区,同时设置接收成功标志;主程序一旦 检测到接收成功标志,将调用测温子程序,采集超声波测距时的环境温度,并换算出准确的声速,存储到 RAM 存储单元中;单片机再调用距离计算子程序进行计算,计算出传感器到目标物体之间的距离;此后主程序调用显示子程序进行显示;当一次发射、接收、显示的过程完成后,系统将延迟 100ms 重新让 T1置初值,再次启动 T1 以溢出,进入下一次测距。 如果由于障碍物过远,超出量程,以致在 T0溢出时尚未接收到回波,则显示 “ERROR” 重新回到主流程进入新一轮测试。 五、结论 对所要求测量范围 30cm~200cm 内的平面物体做了多次测量发现 ,其最大误差为,且重复性好。 可见基于单片机设计的超声波测距系统具有硬件结构简单、工作可靠、测量误差小等特点。 因此,它不仅可用于移动机器人,还可用在其它检测系统中。 思考:至于为什么接收不用晶体管做放大电路呢,因为放大倍数搞不好, CX20206 集成放大电路,还带自动电平增益控制,放大倍数为 76dB,中心频率是 38k 到 40k,刚好是超声波传感器的谐振频率。 附件 2:外文原文 (复印件) Ultrasonic distance meter Document Type and Number:United States Patent 5442592 Abstract:An ultrasonic distance meter cancels out the effects of temperature and humidity variations by including a measuring unit and a reference unit. In each of the units, a repetitive series of pulses is generated, each having a repetition rate directly related to the respective distance between an electroacoustic transmitter and an electroacoustic receiver. The pulse trains are provided to respective counters, and the ratio of the counter outputs is utilized to determine the distance being measured. Publication Date:08/15/1995 Primary Examiner:Lobo, Ian J. OF THE INVENTION This invention relates to apparatus for the measurement of distance and, more particularly, to such apparatus which transmits ultrasonic waves between two points. Precision machine tools must be calibrated. In the past, this has been acplished utilizing mechanical devices such as calipers, micrometers, and the like. However, the use of such devices does not readily lend itself to automation techniques. It is known that the distance between two points can be determined by measuring the propagation time of a wave travelling between those two points. One such type of wave is an ultrasonic, or acoustic, wave. When an ultrasonic wave travels between two points, the distance between the two points can be measured by multiplying the transit time of the wave by the wave velocity in the medium separating the two points. It is therefore an object of the present invention to provide apparatus utilizing ultrasonic waves to accurately measure the distance between two points. When the medium between the two points whose spacing is being measured is air, the sound velocity is dependent upon the temperature and humidity of the air. It is therefore a further object of the,present invention to provide apparatus of the type described which is independent of temperature and humidity variations. OF THE INVENTION The foregoing and additional objects are attained in accordance with the principles of this invention by providing distance measuring apparatus which includes a reference unit and a measuring unit. The reference and measuring units are the same and each includes an electroacoustic transmitter and an electroacoustic receiver. The spacing between the transmitter and the receiver of the reference unit is a fixed reference distance, whereas the spacing between the transmitter and receiver of the measuring unit is the distance to be measured. In each of the units, the transmitter and receiver are coupled by a feedback loop which causes the transmitter to generate an acoustic pulse which is received by the receiver and converted into an electrical pulse which is then fed back to the transmitter, so that a repetitive series of pulses results. The repetition rate of the pulses is inversely related to the distance between the transmitter and the receiver. In each of the units, the pulses are provided to a counter. Since the reference distance is known, the ratio of the counter outputs is utilized to determine the desired distance to be measured. Since both counts are identically influenced by temperature and humidity variations, by taking the ratio of the counts, the resultant measurement bees insensitive to such variations. DESCRIPTION of ultrasonic distance measurement 1, the principle of piezoelectric ultrasonic generator Piezoelectric ultrasonic generator is the use of piezoelectric crystal resonators to work. Ultrasonic generator, the internal structure as shown in Figure 1, it has two piezoelectric chip and a resonance。基于单片机的汽车倒车防撞系统的设计与制作毕业设计开题报告(编辑修改稿)
相关推荐
阻呈指数关 系减小、具有负温度系数的热敏电阻现象和材料。 它 的 主要材料 是 锰、 镍和铜等金属氧化物, 采用陶瓷工艺制造而成的。 这些金属氧化物材料都具有半导体性质,在导电方式上完全类似锗、硅等半导体材料。 随着温度的升高,载流子数目增加,所以电阻值降低 ; 当 温度低时 ,这些氧化物材料的载流子(电子和孔穴)数目少,所以其电阻值较高。 NTC 热敏电阻器在室温下的 电阻 变化范围 一般 在
地线)。 用于读写和温度转换的电源可以从数据线本身获得,无需外部电源。 因为每个 DS1820 都有一个独特的片序列号,所以多只 DS1820 可以同时连在一根单线总线上,这样就 可以把温度传感器放在 许多不同的地方。 这一特性在 HVAC 环境控制、探测建筑物、仪器或机器的温度以及 过程监测和控制等方面非常有用。 16 脚 SSOP PR35 符号 说明 8 2 DQ 数据输入 /输出脚。
(论文) 第 10 页 共 35 页 涡轮流量计 , 是速度式流量计中的主要种类 , 它采用多叶片的转 子 (涡轮 ) 感受流体平均流速 , 从而推导出流量或总量的仪表。 一般它由传感器和显示仪两部分组成 , 也可做成整体式。 涡轮流量计和容积式流量计、科里奥利质量流量计称为流量计中三类重复性、精度最佳的产品 , 作为十大类型流量计之一 , 其产品己发展为多品种、多系列批量生产的规模。
钟频率微调和稳定的作用,因此,在本时钟系统的的实际应用中一定要正确的选择参数 ( 30 3 PF) ,并保证对称性(尽可能匹配),选用正牌厂家生产的瓷片或云母电容,如果可能的话,温度系数要尽可能地低。 实验表明,这两个电容元件对时钟的 走时误差有很大的关系。 基于单片机的液晶屏显示的电子时钟设计 3 图 2 系统时钟电路 复位电路 随着微电子技术的的飞速发展,单片机的性能迅速提高,在运算
线保持高电平,这样也允许在变换期间其它数据在单总线上传送。 此外,在单单片机的水温控制 9总线上可以并联多个 DS18B20,而且如果它们全部采用外部电源工作方式,那么通过发出相应的命令便可以同时完成温度变换。 图 29 DS18B20 供电方式 2 ( 4) DS18B20 设计中应注意的几个问题 DS18B20具有测温系统简单、测温精度高、连接方便、占用接口线少等优点 ,
作方便。 错误 !使用“开始”选项卡将 标题 1,章标题 (有序号 ) 应用于要在此处显示的文字。 错误 !使用“开始”选项卡将 标题 1,章标题 (有序号 ) 应用于要在此处显示的文字。 3 2 汽车超速报警系统设计方案的选择 设计要求 我们要求设计一个具有数字显示功能的单片 机系统,实现车辆当前速度输出,当达到公路限定速度值时蜂鸣器报警,提醒驾驶员减速,以保证驾驶人员及行人的人身安全。