基于AT89C51单片机倒车防撞报警系统设计

基于AT89C51单片机倒车防撞报警系统设计

目 录

1、引言 ..................................................................... 3 2、系统组成及工作原理 ....................................................... 4 3、系统硬件电路的设计 ....................................................... 5 3.1超声波发射与回波接收电路 ................................................ 5 3.2超声波电信号放大电路 .................................................... 6 3.3单片机控制电路和显示、报警电路 .......................................... 6 4、系统软件的设计 ........................................................... 7 4.1主程序 .................................................................. 8 4.2 T0中断服务程序 ......................................................... 9 4.3外部中断0服务程序 ..................................................... 10 4.4超声波发生子程序 ....................................................... 10 5、实现应用分析 ............................................................ 11 6、结 语 ................................................................... 12 致词 ....................................................................... 13 参考文献 ................................................................... 14

基于AT89C51单片机倒车防撞报警系统设计

摘要:先容基于单片机节制的倒车雷达体系,该体系采纳通用型单片机行为控制电路,便利的系统功

用扩大。体系电路集中采用集成器件组成,外围元件少,电路简练、调试简易、本钱低,利于商品化出产,本体系充分利用了单片机的本身资源,用软件编程发出超声波矩形脉冲,替代硬件的超声波产生电路,节约硬件成本。

论文的内容是基于AT89C51单片机倒车防撞系统的设计,主要是利用超声波的特点和优势,将超声波测距系统

和AT89C51单片机结合于一体,设计出一种基于AT89C51单片机的倒车防撞报警系统。该系统采用软、硬件结合的方法,具有模块化和多用化的特点。

关键词:蜂鸣器、脉冲电压、AT89C2051单片机、LED数码管、倒车雷达

1

Design of reverse collision warning system based on AT89C51 single chip microcomputer

Student majoring in Heze University

Abstract: Introduction based on single-chip microcomputer control of reversing radar system, the system

adopted a common type of behavior control circuit, the system functions to facilitate the expansion of. Concentration circuit system composed of integrated devices, less peripheral elements, concise circuit, debugging simple, low cost, to commodity production, the system makes full use of the microcontroller of the resource itself, with software programming sound wave of rectangular pulse, alternative hardware of the ultrasonic wave generating circuit, save the cost of hardware.

The contents of the thesis is the AT89C51 monolithic integrated circuit reverse collision

avoidance system design based on, mainly using the features and advantages of the ultrasonic, ultrasonic ranging system and AT89C51 microcontroller integrates design based on AT89C51 reverse collision warning system. This system adopts the method of software and hardware combination, and has the characteristics of modularization and multi use.

KEY WORDS: Buzzer, pulse voltage, AT89C2051 microcontroller, LED digital tube,

reversing radar

1、前 言

通常,自动倒车防撞报警系统被称为倒车雷达的一种辅助汽车泊车的。在泊车时,倒车雷达显示的是车的后部与障碍物的距离,当车的后部与障碍物距离达到检测范围内时,倒车雷达是根据数码管实像动态显示距离的超声波测距原理。当车辆与障碍物达到设定的安全距离警告值时,倒车雷达发出警报声传达警告驾驶员并协助驾驶员安全倒车。现在生产的大部分高档车都配备倒车雷达,而且出于成本考虑,比如节约成本、经济型车、公交车等车辆都没有配备倒车雷达。有市场需求的产品,必然导致产品的开发和设计。有很多种反向雷达电路。本文介绍了一种基于单片机的倒车雷达系统,作为控制电路,便于系统功能的扩展。该系统电路主要由一个集成的器件组成,外围元件少,电路简单,调试方便,成本低,有利于生产的商品化。

2

基于AT89C51单片机倒车防撞报警系统设计

2、系统组成及工作原理

倒车防撞预警体系组成是由四收发器关闭(防水)超声波传感器和超声波的发射与接收电路、超声波电信号放大电路、单片机控制电路、LED数码管显示电路和蜂鸣器声音报警电路各原件相互协调完成。系统组成框图如图1所示。

当汽车倒车时由倒车换挡装置自动接通系统电源,系统上电复位,进入工作状态。单片机编程,产生一个字符串的40千赫的矩形电压脉冲,四个选择了模拟开关,加入到超

3

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4