为使传统智能车在环境改变时做出更为及时的响应,设计并实现了一种基于μC/OS-Ⅱ系统的智能寻迹模型车。采用高性能、低功耗的AVR系列8位ATmega16单片机为核心控制单元。在程序设计时应用μC/OS-Ⅱ系统。采用红外探测法,根据单片机是否收到反射回来的红外光为依据来确定黑线的位置,由单片机控制进行PWM变频调速,实现小车沿黑线行驶。该智能车定位准确,系统响应快且稳定,证明了μC/OS-Ⅱ系统的有效性。
To enable the traditional intelligent car to make more timely response while the environment changes,an intelli- gent - searching track car model based μC/OS-Ⅱ system is designed and implemented, The intelligent car system uses the AVR series 8 b single chip which has low power and high performance as its control micro - processor. TheμC/OS-Ⅱ system is used for designing program. With infrared detection method, according to whether the single chip microcomputer has re- ceived reflected infrared light, the intelligent car determines location of the black line, then it can track the black- guide line automatically by single chip PWM control. This intelligent car can locate accurately and the system can response fast and stably, therefore,it proves superiority of theμC/OS-Ⅱ system.