摘 要:该设计应用 AT89C51,可以与数码显示管、电路等相结合的元件作为小车的控制核心,可以与数码显示管、电路等相结合。基于单片机设计,AT89C51 作为报警装置的控制器,可以充分运用 AT89C51 的数据处理和实时控制功能,让小车处于最好的状态。当电机信号产生驱动灭火小车行进时,根据寻迹模块的红外对管能否寻到黑线产生的高低电平信号再传送到单片机,单片机根据程序设计要求做出相应的判断送给电机驱动模块.让小车在黑线上实现运行及转向的功能。通过超声波传感器接受到障碍物信号,实现超声波避障功能。通过红外传感感知温度,实现小车的灭火功能。关键词:单片机 路况检测 报警 超声波 灭火Speech Control Robot based on STM32 Abstract:This design USES AT89C51 as the control core of the car, and digital display tube, circuit, etc. Based on MCU design, AT89C51 as the controller of the alarm device, can fully AT89C51 data processing and real-time control functions. Keep the car in top condition. When the motor signal is generated to drive the fire fighting cart, the high-low level signal generated by the black line can be detected by the infrared pair tube of the tracing module and then transmitted to the MCU, which makes the corresponding judgment according to the program design requirements and sends it to the motor drive module to realize the function of running and turning on the black line. Ultrasonic obstacle avoidance function is realized by receiving the obstacle signal through ultrasonic sensor. The fire extinguishing function of the car is realized by sensing the temperature with the infrared sensor.Key words:Single chip microcomputer tracking alarm ultrasonic目录前言 ........................................................................................................................................................................... 2 1 方案设计 ..................................................................................