2011 全 国 大 学 生 电 子 设 计 大 赛 设 计 报 告 智 能 小 车 ( C 题 ) 2011.09.03 前 言 摘 要 本设计以STC12C5A60S2 单片机为控制核心,STC12C5A60S2 是一款16 位Flash单片机,它的易用性和多功能性受到了广大使用者的好评。小车采用L298 驱动芯片控制直流减速电机,用大功率、大容量的12V/6800mAh 蓄电池给电机供电,通过内部程序对智能小车的左右电机进行 PWM 调速控制。根据题目要求,前进过程中安放在车身不同位置的检测器件对小车的周围环境进行检测,包括采用光电传感器检测黑线命令小车转弯、无线模块作为两智能车之间的通信工具以完成在行车道正常行走及交替领跑任务。其中,本系统设计的重点是控制直流电机使两小车在转弯及正常行驶;难点是实现在规定区域的超车以达到交替领跑。 采用的技术主要有: (1)、通过编程来控制小车的速度及转向; (2)、传感器的有效应用及新型芯片的采用; ( 3 )、放射式红外 光电传感器 ST188 的使用; (4)、无线模块作为俩 小车的通信工具及交替领跑。 关 键 词 :STC12C5A60S2 单片机;PWM 调速;无线通信;交替领跑。 Abstract: This design to STC12C5A60S2 microcontroller as control core, STC 12 C5A60S2 is a 16 bit Flash microcontroller, it's easy to use and more functional by many user high praise. The L298 drive chip control motor, with high power and large capacity 6800 mAh battery to power supply, through the internal procedures motor of intelligent electric vehicles or so motor speed control PWM. According to the topic request, progressive process of the body and laid it in different locations of the detection devices to the circumstances of the car testing, including adopting photoelectric sensor test black line command module as the turning of the car, wireless communication between two intelligent car tool to finish walk normally and lead the alternate task. Among them, the system design is the focus of the control dc motor car in turning to both on the turn and normal operation; Diffic...