设计说明书
总字数:12000+
本毕业论文基于单片机STC89C52设计了一款具有避障功能的小车。该小车通过超声波传感器实时检测前方是否存在障碍物,并通过舵机驱动超声波传感器进行左右侧障碍物的检测。当检测到障碍物时,根据左右侧的情况采取相应的动作,如左转、右转或后退,并通过PWM调速控制小车的速度。此外,本设计使用MX1508驱动模块实现直流电机的控制,实现小车的前进、后退、左转和右转。当检测到障碍物时,蜂鸣器会发出提醒声音,引起用户的注意。另外,通过LCD1602显示屏,实时显示超声波传感器检测到的距离值,为用户提供直观的信息反馈。该设计使用STC89C52单片机作为核心控制器,通过多种传感器和模块的协同工作,实现了小车的避障功能。通过检测障碍物并采取相应动作,有效避免碰撞,提高了小车的安全性。本设计具有实用性和可行性,可用于智能导航、环境监测等领域。
关键词:单片机;避障小车;超声波传感器;舵机;直流电机;蜂鸣器;LCD1602显示屏
This graduation thesis presents the design of an obstacle avoidance car based on the STC89C52 microcontroller. The car utilizes an ultrasonic sensor to detect obstacles in real-time. A servo motor is employed to rotate the ultrasonic sensor for detecting obstacles on the left and right sides. When an obstacle is detected, the car responds accordingly by turning left, turning right, or reversing, utilizing PWM for speed control.Additionally, the car employs an MX1508 driver module to control the DC motors, enabling forward, backward, left, and right movements. A buzzer is incorporated to generate an alert sound when obstacles are detected. Furthermore, a LCD1602 display screen provides real-time distance readings from the ultrasonic sensor, offering visual feedback to the user.The core controller of the design is the STC89C52 microcontroller. Through the collaborative operation of various sensors and modules, the car achieves obstacle avoidance functionality. By detecting obstacles and taking appropriate actions, collisions are effectively prevented, enhancing the safety of the car. The design is practical and feasible, with potential applications in intelligent navigation, environmental monitoring, and other related fields.
Keywords: Microcontroller; Obstacle Avoidance Car; Ultrasonic Sensor; Servo Motor; DC Motor; Buzzer; LCD1602 Display Screen.
目 录
摘 要
Abstract
第1章 引 言
1.1 选题背景及实际意义
1.2 国内外研究现状
1.3 本论文研究目标
第2章 系统设计方案
2.1 主要元器件选择
2.1.1 主控芯片选择
2.1.2 距离检测模块方案选择
2.1.3 显示块方案选择
2.2 整体设计方案
第3章 硬件设计
3.1 主控电路模块
3.2 超声波模块电路
3.3 显示模块电路
3.4直流电机驱动模块电路
3.5 舵机模块电路
3.6 蜂鸣器报警模块电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 LCD1602液晶显示子流程
4.4 直流电机-MX1508驱动模块子流程
4.5 舵机模块子流通
4.6 超声波检测模块子流程
第5章 实物测试
5.1 整体实物测试图
5.2 实物功能测试
总结与展望
参考文献
致 谢
附录一: 原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!