文档介绍:毕业设计说明书
基于STC89C52单片机的避障智能小车设计
基于STC89C52单片机的避障智能小车设计
摘要
本文介绍了基于STC89C52单片机的避障智能小车的设计与实现。小车主要通过单片机实现对自身的控制,使其能够识别黑线并检测障碍物,实现在固定跑道行驶并且具有自动避障功能。本设计对单片机最小系统、电机驱动、红外避障等硬件电路分别给出了相应的设计方案。依据PCB设计的原则、抗干扰措施,自行设计了印刷电路板。该设计采用STC89C52单片机为控制系统,L298N作为电机驱动,四路红外线探测系统为避障系统,单片机产生PWM波并通过L298N来对小车的方向和速度进行控制。实验测试结果基本满足要求。
采用的技术主要有:
(1)小车以单片机作为控制器;
(2)采用红外线探测系统实现对黑线及障碍物的检测;
(3)通过单片机产生PWM波并通过L298N来对小车的方向和速度进行控制。
关键词:STC89C52,单片机,L298N,红外线探测系统,避障,PWM
STC89C52 microcontroller-based intelligent car obstacleavoidanceDesign
Abstract
This paper describes 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. 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 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 controller;
(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
目录
1 引言1
本课题的研究背景1
本课题的发展现状及前景2
国外研究现状2
国研究现状3
本课题研究的意义4
2 避障智能小车总体方案论证6
直流调速方案论证6
设计方案的论证6
单片机