Intelligent car with automatic route recognition
Table of Contents
This research taked Freescale (NXP) Cup Intelligent Car Race as the starting point, lasted for nearly two years, finally achieved excellent results in the race.
The intelligent car system is composed of camera, steering gear, motor, speed encoder, MCU and car model, with functions such as track information acquisition, steering control and speed control. The system operates by first using the camera to complete the track information collection, then processing the image to plan the driving path of the car, and finally using the steering gear to control the steering and the motor for acceleration and deceleration control.
In order to win the race, it is necessary to distinguish various complex track types, such as straights, curves, S-curves, cross-curves and right-angle curves, so as to achieve reasonable control of steering and speed and enable the car to pass different track types quickly and stably.
The intelligent car mainly includes the main control board, drive board, camera, MCU, motor and steering gear, as shown in Figure 2.
The main control board circuit includes: power supply, motor control interface, communication interface, switch, MCU slot, etc, as shown in Figure 3.
The motor driving circuit is designed according to the official Manual of bts7960 chip, as shown in Figure 4.
3 Software Design
The binary image is collected by digital camera, and then the edge information of the track is extracted, so as to calculate the center line position of the track. In order to speed up the S-curve, the weighted average algorithm is used to optimize the path, and the weight of each line in the whole image is adjusted to achieve better path planning.(Process as shown in Figure 5.)
4.1.Car race video