The design uses STC12C5A60S2 microcontroller as the core controller,using the ultrasonic ranging sensor range data,using IO trigger location,providing about high level signal,using 25us formula:test distance=(high level time * speed of sound(340M/S))/2 to calculate the distance,the L298N driver module using PWM drive circuit,so as to realize the automatic an alarm automatically adjust vehicle speed,accessibility.%本设计采用STC12C5A60S2单片机为核心控制器,用超声波测距传感器采集距离数据,采用IO触发测距,提供约为25 us的高电平信号,利用公式:测试距离=(高电平时间*声速(340 m/s))/2来计算距离,采用L298N 驱动模块利用PWM驱动电路,从而实现自动调节小车速度、无障碍时自动发出警报的功能。
展开▼