设计说明书
总字数:14000+
摘要
在智能移动设备快速发展的当下,自动避障技术作为移动设备自主导航的核心,对提升设备的自主性、安全性和工作效率具有重要意义。传统的手动控制小车不仅依赖人为操作、响应存在延迟,还存在操作繁琐、适用场景有限等问题,难以满足自动化、智能化移动的需求。
基于 STC89C52 单片机的自动避障小车,整合了 HC-SR04 超声波传感器、SG90 舵机、SDC9150 直流电机驱动模块、CN-TTS 语音播报模块、LCD1602 显示屏及按键,实现了小车的自动避障与智能行驶。系统核心功能包括:通过 HC-SR04 超声波检测前方障碍物,若前方有障碍物,启动 SG90 舵机带动超声波检测左侧是否有障碍物,左侧无障碍物则左转,左侧有障碍物则启动舵机检测右侧,右侧无障碍物则右转,右侧有障碍物则小车退后,再依次检测左右是否有障碍物;通过 SDC9150 直流电机驱动模块驱动直流电机,控制小车的行驶状态;借助 CN-TTS 语音播报模块播报小车左转、右转或后退等动作;利用 LCD1602 显示障碍物距离值;支持通过 1 个按键启动小车。
该系统的实现,有效提升了小车的自动避障能力和智能化行驶水平,减少了人工干预,确保了小车在复杂环境中的稳定运行,为智能移动设备的研发提供了高效、可靠的解决方案,同时为同类自动避障设备的设计提供了参考,具有较高的实际应用价值。
关键词:STC89C52;自动避障小车;超声波传感器;智能行驶;语音播报
ABSTRACT
With the rapid development of intelligent mobile devices, automatic obstacle avoidance technology, as the core of autonomous navigation for mobile devices, is of great significance for improving the autonomy, safety, and work efficiency of devices. Traditional manually controlled cars not only rely on human operation with delayed responses but also have problems such as cumbersome operation and limited applicable scenarios, making them difficult to meet the needs of automated and intelligent movement.
The automatic obstacle-avoiding car based on the STC89C52 microcontroller integrates HC-SR04 ultrasonic sensors, SG90 servos, SDC9150 DC motor driver modules, CN-TTS voice broadcast modules, LCD1602 displays, and buttons, realizing automatic obstacle avoidance and intelligent driving of the car. The core functions of the system include: detecting obstacles in front through HC-SR04 ultrasonic waves. If there is an obstacle ahead, start the SG90 servo to drive the ultrasonic wave to detect whether there is an obstacle on the left. If there is no obstacle on the left, turn left; if there is an obstacle on the left, start the servo to detect the right. If there is no obstacle on the right, turn right; if there is an obstacle on the right, the car retreats and then detects whether there are obstacles on the left and right in turn; drive the DC motor through the SDC9150 DC motor driver module to control the driving state of the car; broadcast actions such as the car turning left, right, or retreating with the help of the CN-TTS voice broadcast module; display the obstacle distance value using LCD1602; support starting the car through one button.
The implementation of this system effectively improves the car’s automatic obstacle avoidance ability and intelligent driving level, reduces manual intervention, ensures the stable operation of the car in complex environments, provides an efficient and reliable solution for the research and development of intelligent mobile devices, and also offers a reference for the design of similar automatic obstacle-avoiding equipment, with high practical application value.
Keywords: STC89C52; Automatic obstacle-avoiding car; Ultrasonic sensor; Intelligent driving; Voice broadcast
目录
第 1 章 绪论
1.1 研究的目的及意义
1.2 国内外发展情况
1.3 本文主要研究内容
第2章 设计思路与方案论证
2.1 主要元器件选择
2.1.1 主控芯片选择
2.1.2 超声波传感器选择
2.1.3 舵机选择
2.1.4 直流电机驱动模块选择
2.1.5 语音播报模块选择
2.1.6 显示模块选择
2.1.7 按键模块选择
2.2整体设计方案
第 3 章 硬件设计
3.1 主控电路模块
3.2 超声波传感器电路
3.3 舵机电路
3.4 直流电机驱动电路
3.5 语音播报模块电路
3.6 显示模块电路
3.7 按键模块电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 LCD1602显示模块子流程设计
4.4 独立按键子流程设计
4.5 直流电机速度调节子流程设计
4.6 超声波检测模块子流程设计
4.7 舵机子流程设计
4.8 语音播报模块子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 超声波传感器功能测试
5.3 语音播报模块功能测试
5.4 显示模块功能测试
5.5 按键功能测试
5.6 自动避障整体功能测试
第 6 章 总结与展望
6.1 总结
6.2 展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!