With the increasing desire for intelligent goods, which has occurred numerous issues for technology developers, especially in the area of new energy vehicles. Several instances exist in which intelligent robots or autonomous vehicles may automatically patrol the line. However, few goods can be made a larger advance in the poor endurance. Through utilizing mobile refueling station as a starting point, this paper will establish a service that can offer mobile charging for automobiles during regular driving by following and chasing. Utilizing a pair of master-slave electric cars, the mobile charging design will be simulated. Additionally, The relative position between two vehicles is managed by overtaking and counter-overtaking and the trolley employs a five-way grayscale tracing module as its primary method of patrolling and track element detection. Adjustment parameter, the chasing and overtaking portion are utilized as ultrasonic distance measurement module to transmit back the distance information of two cars through the serial port in real time. From our extensive experimental results, we can conclude that the system as a whole accurately replicates the numerous functional needs of the actual world and attains excellent performance indices.