1、 毕业设计说明书 毕业设计说明书 基于 STC89C52 单片机的避障智能小 车设计 毕业设计说明书 基于基于STC89C52单片机的避障智能小车设计单片机的避障智能小车设计 摘要摘要 本文介绍了基于 STC89C52 单片机的避障智能小车的设计与实现。小车主要 通过单片机实现对自身的控制,使其能够识别黑线并检测障碍物,实现在固定跑 道内行驶并且具有自动避障功能。本设计对单片机最小系统、电机驱动、红外避 障等硬件电路分别给出了相应的设计方案。依据 PCB 设计的原则、抗干扰措施, 自行设计了印刷电路板。该设计采用 STC89C52 单片机为控制系统,L298N 作为 电机驱动,四路红外线探测系
2、统为避障系统,单片机产生 PWM 波并通过 L298N 来对小车的方向和速度进行控制。实验测试结果基本满足要求。 采用的技术主要有: (1)小车以单片机作为控制器; (2)采用红外线探测系统实现对黑线及障碍物的检测; (3)通过单片机产生 PWM 波并通过 L298N 来对小车的方向和速度进行控制。 关键词:关键词:STC89C52,单片机,L298N,红外线探测系统,避障,PWM 毕业设计说明书 STC89C52 microcontroller-based intelligent car obstacle avoidance Design Abstract This paper descri
3、bes the design and implementation of the smart car obstacle avoidance STC89C52 microcontroller based. Trolley primarily through MCU control of their own to be able to identify the black line and detect obstacles and achieve traveling in a fixed track and has an automatic obstacle avoidance function.
4、 The design for the smallest single-chip systems, motor drives, infrared obstacle avoidance were given the corresponding hardware circuit design. Based on the principles of PCB design, anti-jamming measures, to design a printed circuit board. The design uses STC89C52 microcontroller for the control
5、system, L298N as motor drive, four infrared detection system as obstacle avoidance system microcontroller PWM wave generated by L298N to the direction and speed of the car can be controlled. Experimental test results meet the basic requirements. Technologies used are: (1) car microcontroller as a co
6、ntroller; (2) using four infrared detection system to achieve the detection of black lines and obstacles; (3) generated by the microcontroller PWM wave through L298N to the direction and speed of the car can be controlled. Keywords: STC89C52, Microcontroller, L298N, Infrared detection system, obstacle avoidance, PWM 毕业设计说明书 第 I 页 共 II 页 目 录 1 1 引言引言 1 1 1.1 本课题的研究背景 . 1 1.2 本课题的发展现状及前景 2 1.2.1 国外研究现状 2 1.2.2 国内研究现状 3 1.3 本课题研究的意义 . 4 2 2 避障智能小车总体方案论证避障智能小车总体方案论证 6 6 2.1 直流调速方案论证直流调速方案论证 . 6