2025年基于STM32 智能抓物小车的设计 电子设计II课程报告.doc
摘要
本试验重要分析把握對象的智能車基于STM32F103的设计。智能系统的构成重要包括STM32F103控制器、伺服驱動電路、紅外检测電路、超声波避障電路。本试验采用STM32F103微处理器作為关键芯片,速度和转向的控制采用PWM技术,跟踪模块、检测、障碍物检测和防止功能避障模块等外围電路,实現系统的整体功能。
小車行驶時,避障程序跟踪程序,具有紅外线跟踪功能的汽車检测電路。然後用颜色传感器识别物体的颜色和抓取。在硬件设计的基础上提出了实現伺服控制功能,简朴的智能車跟踪和避障功能的软件设计和控制程序,在STM32集成開发环境IAR编译,并使用JLINK下载程序。
关键詞:stm32;紅外探测;超声波避障;颜色传感;舵机控制
ABSTRACT
ThisexperimentmainlyanalyzedthegraspingobjectintelligentcarbasedonSTM32F103design.ThecompositionoftheintelligentsystemmainlyincludesSTM32F103controller,servodrivecircuit,infrareddetectioncircuit,ultrasonicobstacleavoidancecircuit.ThistestusestheSTM32F103microprocessorasthecorechip,thespeedandsteeringcontrolusingPWMtechnology,trackingmoduleanddetection,obstacleavoidancemoduleforobstacledetectionandavoidancefunction,otherperipheralcircuittoachievetheoverallfunctionofthesystem.
Thecarismoving,obstacleavoidanceprocedurespriortotrackingprogram,cartrackingfunctionwithinfrareddetectioncircuit.Thenusecolorsensortorecognizeobjectcolorandgrab.Onthebasisofthehardwaredesignisproposedtorealizetheservocontrolfunction,simpleintelligentcartrackingandobstacleavoidancefunctionofthesoftwaredesign,andthecontrolprogramiscompiledintheSTM32integrateddevelopmentenvironmentIAR,anddownloadtheprogramusingJlink.
Key?words:?STM32;infrareddetection;ultrasonicobstacleavoidance;colorsensing;steeringcontrol
目录
TOC\o1-3\u第一章绪论 1
1.1研究意义概况 1
1.2研究思绪 1
第二章硬件设计部分 2
2.1中央处理模块 2
2.1.1stm32f103内部构造 3
2.1.2stm32最小系统電路设计 3
2.1.3stm32软件设计的基本思绪 6
2.2避障模块设计 6
2.2.1避障模块器件构造及其原理 7
2.2.2HC-SR04模块硬件電路设计 8
2.3循迹模块设计 9
2.3.1循迹模块构造及其原理 9
2.3.2循迹模块電路设计 11
第三章软件调试及实物展示 12
3.1程序仿真 12
3.2程序下载 12
3.3实物展示 13
第四章总結 14
致謝 15
参照文献 16
第一章绪论
1.1研究意义概况
智能小車通過多种感应器获得外部环境信息和内部运動状态,实目前复杂环境背景下的自主运動,從而完毕具有特定功能的机器人系统。而伴随智能化電器時代的到来,它們在為人們提供的舒适的生活环境的同步,也提高了制造智能化電器對于人才规定的门槛。智能小車是集成了多种高新技术,它不仅融合了電子、传感器、计算机硬件、软件等許多