This design plan, making use of MCU P89C51RA and softwares of Keil uvision2, ZLGISP, gives the realization of brainpowering maze car. MCU P89C51RA has greater capability of calculating and a-hundred-thousand class erasuring times. First of all, it bears the function of programming online, which is favor of our design Uses the 9V power source. I use (7805) branches out astable 5V voltage,.The dolly adopt the technology of infrared-ray detecting to explore the obstacles around, subsequently P89C51 gives the right judgments and chooses the right route .Installed two stepper motors , the car can gives the value of the distance it passed in running, by counting the stepper motors’ wheeling times. And compared to direct current motor, the stepper motor can be much more easily operated. The numerical code demonstrated the module mainly is actuates eightcommon cathodes numerical codes tube with chip ZLG7289 to realize,Output content including movement distance and about curve number oftimes. The C51 language is a much popular programming language to MCU, which can realize more functions in short programming sentences. That is why we choose it as our programming language in the design plan.
It is easy to control the electric machinery and it is easy to calculate the circles accurately, which are beneficial to control the switching of the car, even calculating the circles of the car moved. The accurate calculation of electric machinery has thorough application in many manufacturing devices. Compared with sensitized parts, the scope infrared detector can examined much wider. In addition, infrared detector can distinguish more objects. Firstly, it is infrared detector to examine the barriers. When there is no barrier from the angle of front, right, and left, the car judges no moving, i,e, car is at the exit. When one model of the infrared detector examined there is barrier, the program should be applied.
As a general, the car has features as listed:
1) It has an elastic controlling and a swift and exact turning.
2) Its infrared-ray detecting distance can be adjusted, which make it fit to different mazes.
3) It has a good expansibility. For example, we can add more detecting-modules to car.
Keywords: P89C51RA、Stepper motor、Infrared-ray detecting、C51 Language