摘要本设计采用的STC89C52芯片是STC公司研制的一种极具性价比的CMOS8位微控制器,8051单片机的增强版,拥有6时钟周期和12时钟周期两种选择。更低的工作频率,只有0到40MHz。进行编程时,不需要特殊接口,程序录入迅速,价格低廉等等其他优点。所以,在广泛的单片机爱好者人群中,受到很大的欢迎。本次设计主要是通过STC89C52芯片控制,由蜂鸣器报警电路、数码管显示电路和超声波传感器模块电路组成。超声波传感器采用市面上常见的HC-SR04超声波测距模块,该模块同时拥有发射和接收功能。能够发射的超声波范围最多可达4m,最少也有2cm。工作电压5V,完全可以用干电池供电或者USB供电。最终的成品能够实现误差范围为[-5,5](单位:cm)的距离测量。满足倒车功能,适用于汽车等载具。拥有三个设置键可以设置自己想要设置的安全数值,最后超声波测距模块所测的值与自己设置的值比对,大于及等于不报警,小于的时候蜂鸣报警器报警。51803
毕业论文关键词:超声波传感器模块 STC89C52芯片 倒车雷达 蜂鸣器
Design of Reversing radar Based on Microcontroller Unit
Abstract
This design uses STC89C52 chip STC company developed a highly cost-effective CMOS8 bit microcontroller, an enhanced version of 8051, with 6 clock cycles and 12 clock cycles two options. Lower operating frequency, only 0 to 40MHz. When programming, no special interface, rapid entry procedures, low price and so on other benefits. Therefore, a wide range of SCM lovers crowd, is greatly welcomed. This design is mainly through STC89C52 chip control, buzzer alarm circuit, digital display circuit and the ultrasonic sensor module circuit. Ultrasonic sensor uses the common market, HC-SR04 ultrasonic ranging module, which have both transmit and receive functions. Capable of emitting ultrasonic range of up to 4m, there are at least 2cm. Operating voltage 5V, can use battery-powered or USB powered. The final product can be achieved error range [-5,5] (Unit: cm) distance measurement. Meet reversing function for cars and other vehicles.Has three settings buttons to set the value you want to set security, the value of the last measured ultrasonic ranging module with its own set of values than, greater than or equal to not alarm, less than when the alarm buzzer alarm.
Key words: Ultrasonic sensor module STC89C52 chip Reversing radar Buzzer alarm
目 录
摘要 Ⅰ
Abstract Ⅱ
目录...Ⅲ
图清单...Ⅴ
1 绪论
1.1 设计研究背景及意义 1
2 总体设计方案及论证 3
2.1 总体方案设计 3
3 硬件实现及单元电路设计 5
3.1 最小系统模块 5
3.2 硬件电路的设计. 5
3.3 电源设计 6
3.4 超声波测距模块 6
3.5 超声波 7
3.6 超声波传感器原理 10
3.7 测距分析 11
3.8 复位电路的设计 12
3.9 声音报警电路的设计 12
3.10 显示模块 STC89C52单片机的倒车雷达设计+电路图+程序:http://www.youerw.com/zidonghua/lunwen_55571.html