当前位置: 首页 > news >正文

【dz-1048】基于单片机的自动避障小车

摘要

在智能移动设备快速发展的当下,自动避障技术作为移动设备自主导航的核心,对提升设备的自主性、安全性和工作效率具有重要意义。传统的手动控制小车不仅依赖人为操作、响应存在延迟,还存在操作繁琐、适用场景有限等问题,难以满足自动化、智能化移动的需求。​

基于 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

附录三:主程序

http://www.jsqmd.com/news/309274/

相关文章:

  • 秒级采集 × 万级点位 × 两万亿条数据管理,「红河复烤」复烤工艺数字化实践
  • 【dz-1040】热水器控制系统
  • 【dz-1041】基于STM32的智能体重秤的设计与实现
  • 【dz-1042】车内滞留儿童远程报警系统设计
  • 如何用CLAUDECODE重塑嵌入式开发
  • springboot企业进销存管理系统演vue论文
  • springboot企业人力资源系统-vue
  • 干法制粒机生产厂家哪家好?混合搅拌机厂家哪家好?2026综合实力推荐盘点
  • 2026超微粉碎机定做厂家推荐/超微振动磨生产厂家推荐分析
  • 粉碎机出口厂家哪家好?2026精选使用好评厂家汇总盘点
  • 米尔顿・弗里德曼:货币主义巨擘与自由市场的思想旗手
  • WeifenLuo
  • 腾讯广告营销服务商:厚拓科技11年全链路赋能,驱动企业增长
  • 更弱智的算法学习 day56
  • 运动粘度仪/全自动运动粘度测定仪/自动低温乌氏粘度测定仪关键技术、应用场景与行业解决方案研究
  • 在哪下载主管护师备考资料?高分心得与资源分享
  • 主管护师备考资料获取与下载通径
  • 什么是SLA、DLP和LCD?一文读懂光固化3D打印三大技术
  • 1.4 xue
  • 2.1xue
  • 微信支付直连商户,自动处理消费者投诉,100多个商户、处理53000多条数据
  • vue2 单文件组件加入浏览器的title和ico的方法
  • 4.2XUE
  • vue展示node express调用python解析tdms
  • 2026执业药师考试资料推荐:高口碑实力榜推荐,测评对比全解析!
  • 3.3 xue
  • 执业药师考试资料推荐,这份推荐清单实力榜够靠谱!
  • 科普MB、mb、KB、GB、TB、KiB
  • 2026执业药师考试辅导班推荐:备考“宝藏”网课推荐,口碑与实力兼具
  • 2026执业药师考试辅导班推荐:三大执业药师网课深度解析,靠谱之选一目了然