设计简介:
项目名:基于单片机的避障小车的设计
项目编号:mcuclub-dz-068
单片机:STC89C52
功能简介:
1、通过超声波检测前方障碍物,如果前方出现障碍物,则启动舵机带动超声波检测左侧是否有障碍物,如果左侧没有,则左转,如果左侧有障碍物,则启动舵机带动超声波检测右侧是否有障碍物,如果右侧没有,则右转,如果右侧有障碍物,则小车退后,再依次检测左右是否有障碍物(PWM进行调速
2、通过MX1508驱动直流电机
3、当检测有障碍物时,会蜂鸣器提醒
4、通过LCD1602显示距离值
实物链接:点击跳转
设计说明书链接:点击跳转
开题报告链接:点击跳转
答辩PPT链接:点击跳转
摘 要
本毕业论文基于单片机STC89C52设计了一款具有避障功能的小车。该小车通过超声波传感器实时检测前方是否存在障碍物,并通过舵机驱动超声波传感器进行左右侧障碍物的检测。当检测到障碍物时,根据左右侧的情况采取相应的动作,如左转、右转或后退,并通过PWM调速控制小车的速度。此外,本设计使用MX1508驱动模块实现直流电机的控制,实现小车的前进、后退、左转和右转。当检测到障碍物时,蜂鸣器会发出提醒声音,引起用户的注意。另外,通过LCD1602显示屏,实时显示超声波传感器检测到的距离值,为用户提供直观的信息反馈。该设计使用STC89C52单片机作为核心控制器,通过多种传感器和模块的协同工作,实现了小车的避障功能。通过检测障碍物并采取相应动作,有效避免碰撞,提高了小车的安全性。本设计具有实用性和可行性,可用于智能导航、环境监测等领域。
关键词:单片机;避障小车;超声波传感器;舵机;直流电机;蜂鸣器;LCD1602显示屏
Abstract
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章 引 言
第2章 系统设计方案
第3章 硬件设计
第4章 系统程序设计
第5章 实物测试
总结与展望
参考文献
致 谢