| With the rapid development of embedded technology,video image acquisition technology,wireless video surveillance technology and wireless network communication technology,the demand for intelligent products is increasing.The smart car adopts wireless network communication,which has the advantages of simple wiring and low cost compared with the traditional communication method,and can be applied in some complicated environments.This paper designs a smart car with automatic obstacle avoidance function with STM32 series development board as the core controller and μC/OS-III operating system as the software platform.The STM32 main controller is used to drive the car DC motor,controlling the actual operation of the car and driving the camera to collect video information;the video information collected by the camera on the car system will be transmitted to the PC host computer or Android mobile phone interface through the WIFI signal for real-time.The display of the PC host computer or mobile phone can transmit the control signal sent to the main controller,thereby achieving the purpose of controlling the car by the PC host computer or the mobile phone.The hardware design and software design of the system together constitute the overall design.Among them,the software design is the transplantation of μC/OS-III operating system,hardware driver design,automatic obstacle avoidance algorithm,PC host computer and Android mobile phone control terminal design.The hardware design is mainly to design the circuit in the system.Specifically,it includes ultrasonic obstacle avoidance module design,video capture module design,motor drive module design,wireless router module design and STM32 minimum system module design.In the automatic obstacle avoidance algorithm,the image acquisition module is used to acquire the road environment image information,and the region growth method is used to extract the target obstacle.According to the positional relationship between smart cars and obstacles,an obstacle avoidance algorithm based on fixed region segmentation is proposed.The test results of the software and hardware system of the smart car show that the functions of the car have reached the expected target,and the system can work correctly.The realization of this system is of great significance for the anti-theft system and the future development of smart home. |