Bài báo này nghiên cứu ứng dụng xử lý ảnh để xác định đối tượng và từ đó, định vị đối tượng. Bài báo cũng ứng dụng bộ điều khiển vi tích phân tỷ lệ PID (Proportional Integral Derivative) để điều khiển tốc độ của động cơ trên xe theo giá trị được đặt trước nhằm bám chính xác theo đối tượng mong muốn. Phần xử lý ảnh sẽ ứng dụng thị giác máy tính để phát hiện đối tượng trên Kit Raspberry Pi 3. Dựa vào video đầu vào, Kit Raspberry Pi 3 sẽ tính toán các thông số cần thiết cho Kit Arduino thông qua chuẩn giao tiếp UART (Universal Asynchronous Receiver/Transmitter). Sau đó, Kit Arduino sẽ xuất các xung điều chế độ rộng xung PWM (Pulse Width Modulation) từ bộ điều khiển PID để điều khiển động cơ cho xe bám theo đối tượng khi đối tượng di chuyển theo thời gian thực. Nhiều kết quả minh họa cho thấy xe bám theo đối tượng với độ chính xác cao.This article researches the application of image processing to identify the object and then, determine the location of the object. This article also applies the Proportional Integral Derivative (PID) controller to adjust the speed of the vehicle’s engine according to a preset value to precisely track the desired object. The image processing part will apply computer vision to detect the object on Kit Raspberry Pi 3. Based on the input video, the Kit Raspberry Pi 3 will calculate necessary parameters for Kit Arduino through UART (Universal Asynchronous Receiver/Transmitter) communication standard. Then, the Kit Arduino will output PWM (Pulse Width Modulation) pulses from the PID controller to control motors for the vehicle to track the object when the object is moving in real time. The results in this article expose that the vehicle tracks the object with high accuracy.