摘要:该设计应用AT89C51,可以与数码显示管、电路等相结合的元件作为小车的控制核心,可以与数码显示管、电路等相结合。基于单片机设计,AT89C51作为报警装置的控制器,可以充分运用AT89C51的数据处理和实时控制功能,让小车处于最好的状态。当电机信号产生驱动灭火小车行进时,根据寻迹模块的红外对管能否寻到黑线产生的高低电平信号再传送到单片机,单片机根据程序设计要求做出相应的判断送给电机驱动模块.让小车在黑线上实现运行及转向的功能。通过超声波传感器接受到障碍物信号,实现超声波避障功能。通过红外传感感知温度,实现小车的灭火功能。关键词:单片机路况检测报警超声波灭火SpeechControlRobotbasedonSTM32Abstract:ThisdesignUSESAT89C51asthecontrolcoreofthecar,anddigitaldisplaytube,circuit,etc.BasedonMCUdesign,AT89C51asthecontrollerofthealarmdevice,canfullyAT89C51dataprocessingandreal-timecontrolfunctions.Keepthecarintopcondition.Whenthemotorsignalisgeneratedtodrivethefirefightingcart,thehigh-lowlevelsignalgeneratedbytheblacklinecanbedetectedbytheinfraredpairtubeofthetracingmoduleandthentransmittedtotheMCU,whichmakesthecorrespondingjudgmentaccordingtotheprogramdesignrequirementsandsendsittothemotordrivemoduletorealizethefunctionofrunningandturningontheblackline.Ultrasonicobstacleavoidancefunctionisrealizedbyreceivingtheobstaclesignalthroughultrasonicsensor.Thefireextinguishingfunctionofthecarisrealizedbysensingthetemperaturewiththeinfraredsensor.Keywords:Singlechipmicrocomputertrackingalarmultrasonic目录前言...........................................................................................................................................................................21方案设计...............................................................................................................................................................41.1方案论证...........................................................................................................................................................41.1.1控制器的选择与论证...................................................................................................................................41.1.2电机驱动芯片的选择与论证.......................................................................................................................41.1.3显示器件的选择与论证...............................................................................................................................51.1.4路况检测模块...............................................................................................................................................52系统硬件电路与实现...........................................................................................................................................52.1红外遥控及解码模块.......................................................................................................................................52.2红外遥控模块及解码模块...............................................................................................................................62.2.1二进制信号的调制.......................................................................................................................................62.2.2二进制信号的解调.......................................................................................................................................72.2.3二进制信号的解码......