超声波传感器定位的智能小车控制系统设计

目录
引言 1
一、设计要求及目的 1
(一)设计要求 1
(二)设计目的 1
二、选定单片机的方法 1
三、系统硬件电路设计 2
(一)电源模块论证与选择 2
(二)红外模块 2
(三)红外遥控接收电路 4
(四)按键部分 4
(五) 电机驱动的选择 4
(六)显示模块 4
四、软件设计 5
(一)超声波定位的系统设计 6
(二)小车遥控模块 7
(三)定位计算法 8
(四)发射板控制程序设计 8
(五)接收处理程序的设计 8
(六)系统的仿真程序 9
结语 12
参考文献 13
致谢 14
附录一:总原理图 15
附录二:程序 16
摘 要
这个作品主要采用了红外发送、接收技术,把数据传送到AT89C52单片机中进行数据处理,从而控制L298N电机的驱动。实现小车的遥控控制功能。同时采用超声波定位技术,实现运动小车的跟踪定位。以AT89C52单片机为核心开发的遥控小汽车系统。该系统利用了红外传感器HS0038设计小车的遥控接收电路,从单片机的硬件接口原理出发给出软件解码的方法,通过软件程序对红外遥控器的发射脉冲进行波形检测,从而得出信号编码为软件解码提供依据。在遥控方面设计了两种方案:一是遥控器通过单片机程序的编码、解码来实现红外遥控的收发功能;二是利用现有的遥控器系统,对其进行解码来实现红外遥控的收发功能。单片机经过处理将信号送入驱动芯片L298N来控制电机,可以让小汽车实现左、右转弯,前后进退、停止及可识别障碍物的自动驾驶功能。小车的电路可靠性高,结构简单,展示出来的结果可以满足该功能。
【关键词】:单片机、超声波定位、智能小车
Abstract
This work mainly adopts the technology of receiving,sends to the AT89C52 single- chip microcomputer for d
 *好棒文|www.hbsrm.com +Q: ^3^5^1^9^1^6^0^7^2^* 
识别障碍物的自动驾驶功能。小车的电路可靠性高,结构简单,展示出来的结果可以满足该功能。
【关键词】:单片机、超声波定位、智能小车
Abstract
This work mainly adopts the technology of receiving,sends to the AT89C52 single- chip microcomputer for data processing, so as to control motor L298N drive. To realize the car remote control function. By ultrasonic positioning technology at the same time ,the realization sports car location tracking and AT89C52 single chip microcomputer, the core development of remote control car system. The system USES infrared sensor HS0038 design car remote control receiving circuit, starting from the principle of hardware interface of MCU software decoding method is given, through the software program for the launch of the infrared pulse waveform detection, which provide the basis for software decoding signal coding are obtained. The remote control design of the two plans: one is the remote control by single chip microcomputer program to send and receive infrared control function; Another is to use of the existing remote control system, the decoding to send and receive infrared remote control function, Single chip microcomputer after processing the signal into drive L298N chip to control the motor, make the car forward, backward, turn left, turn right, stop and automatic driving function can identity obstacles. Circuit has simple structure,high reliability, test results meet the function.
【key words】:single chip microcomputer、ultrasonic positioning、The small car
引言
在如今,利用超声波、单片机实现小车的一些功能也是常见的,本文主要采用了红外发送、接收技术,控制L298N电机的驱动,实现小车的遥控控制功能。同时采用超声波定位技术,实现运动小车的跟踪定位。以AT89C52单片机为核心开发的遥控小汽车系统。该系统利用了红外传感器HS0038设计小车的遥控接收电路。来实现小车的功能。
一、设计要求及目的
(一)设计要求
1.作一个遥控电动小车,要具有遥控前进、转向、倒车功能,可实时显示小车当前运动速度,并无线传输至遥控器端显示,速度误差小于10%,小车速度大于0.1米
/秒。
2.加小车运动位置跟踪节点,可在平面内进行位置定位,示意图如下,定位误差小于10%。
3.各小车位置跟踪节点数据传输至遥控器并进行实时位置显示。
(二)设计目的
通过要求,用软件程序对红外遥控器的发射脉冲进行波形检测,从而得出信号编码为软件解码提供依据。单片机经过处理将信号送入驱动芯片来控制

版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/dzxx/txgc/1372.html

好棒文