江苏理工学院毕业设计论文基于蓝牙遥控的多功能智能小车设计与制作学院名称:机械工程学院专业:机械电子工程班级:09机电2Z学号:09324234姓名:祁星指导教师姓名:李尚荣指导教师职称:讲师二零一三年六月一日JIANGSUUNIVERSITYOFTECHNOLOGY本科毕业设计(论文)江苏理工学院毕业设计论文I基于蓝牙遥控的多功能智能小车设计与制作摘要:无线遥控的机器人小车在危险环境作业、人员搜集等应用中可发挥特殊的作用。本次毕业设计选择基于蓝牙遥控的多功能智能小车为对象。设计了该系统的硬件电路原理图和PCB图,控制系统以STC12C5A60S2单片机为主控芯片,采用L293D为电机驱动芯片、蓝牙无线遥控模块、红外光电传感器模块、超声波发射与接收模块等构成外围扩展电路。将自制的控制电路、控制程序和四轮小车机械结构相结合,制作多功能机器人小车。实验调试实现了智能小车的蓝牙无线遥控、自动避障、自动循迹、自动测速、自动测距等功能。关键词:单片机;蓝牙遥控;PWM调速;光电传感器江苏理工学院毕业设计论文IIDevelopmentofasmartremotecontrolvehiclebasedonblue-toothcommunicationAbstract:Wirelessremotecontrolrobotcarcouldplayaspecialroleinthehazardousenvironmentoperationsandsearch&rescuepersonnel.Amulti-functionsmartcarwithbluetoothremotecontrolisselectedasmygraduationthesissubject.ThedesignofthesystemhardwarecircuitschematicandPCBdiagramispresentinpaper.ThecontrolsystemcircuitismainlyconsistofaSTC12C5A60S2MCUasthemainchip,aswellasaL293Dchipformotordriving,abluetoothwirelesscommunicationmoduleforremotecontrol,ainfraredphotoelectricsensormoduleforobjectdetection,aultrasonictransmitterandreceivermodulefordistancemeasurement.Thesmartcarisimplementedbythecombinationoftheself-controlcircuit,thecontrolprogramcodeandfour-wheelcarmechanicalstructure.ExperimentaltestsshowedthatsomefunctionssuchasBluetoothwirelessremotecontrol,automaticobstacleavoidance,automatictrackingroute,auto-sensingobjectsandauto-detectingdistancewerecompletelyachievedinthesmartcar.Keywords:SingleChipMicrocomputer;Blue-ToothRemotecontrol;PWMSpeedRegulation;OpticalElectronicSensor江苏理工学院毕业设计论文Ⅳ目录第一章前言..................................................1第二章方案比较与论证.........................................22.1总体方案设计..............................................................................................................................................22.2无线模块设计..............................................................................................................................................32.3显示模块设计..............................................................................................................................................32.4测速模块设计..............................................................................................................................................42.5调速模块设计..............................................................................................................................................62.6循迹模块设计..............................................................................................................................................72.7避障模块设计..............................................................................................................................................8第二章智能车机结构分析......................................93.1底板设计......................................................................................................................................................93.2电机与底板的连接支架设计....................................................................................................................103.3整体装配图................................................................................................................................................11第四章控制系统电路设计.......................................124.1MCU的选型...............................................................................................................................................124.2电机驱动电路设计....................................................................................................................................144.3显示电路设计..........................................................................................................................................164.4蓝牙模块设计..........................................................................................................................................184.5电源电路设计..........................................................................................................................................204.6PCB图设计...............................................................................................................................................21第五章蓝牙遥控小车程序设计...................................245.1主程序设计................................................................................................................................................245.2电脑端蓝牙控制软件的设置.....................................................................................................................265.3蓝牙模块参数设置.....................................................................................................................................27江苏理工学院毕业设计论文Ⅳ5.4超声波测距程序设计................................................................................................................................285.5超声波避障程序设计................................................................................................................................295.6红外循迹程序设计...................................................................