With the continuous advancement of science and technology, automation has become more sophisticated, and intelligent remote control systems are now being applied across various industries. The development of robotic cars is a key part of mobile robotics, integrating multiple technologies such as computer science, sensing, and communication. These vehicles are designed to recognize paths and control speed and direction using wireless network video technology.
The car in this project uses an STM32 microcontroller as its main processor and relies on a Wi-Fi RF module, the RT5350, to transmit real-time video. This project involves a wide range of technical areas, including MCU programming, OpenWrt router configuration, and Windows-based software development. The implementation of the video-controlled car is divided into three levels:
1. **The underlying driver layer**: This layer is responsible for controlling the movement of the car’s motors and the camera’s pan/tilt mechanism. Since the STM32 microcontroller alone cannot provide enough current to drive the motors, a motor driver module is necessary. In this project, the L298N motor driver is used to control the DC motors of the vehicle.
2. **The middle transport layer**: This layer handles the transmission of control commands and video streams via the RT5350 router platform. It ensures that data flows smoothly between the remote control interface and the car.
3. **The top-level control layer**: This layer runs on a Windows-based system, allowing users to interact with and control the car remotely through a graphical user interface.
**1.1 Motor Drive Principle**
The car has two DC motors connected to the left and right wheels. The direction of each motor—forward, backward, or stopped—is determined by the signals sent from the STM32 microcontroller. The four control lines (IN1–IN4) of the STM32 are connected to the corresponding input pins of the L298N, while the PWM signal lines (ENA and ENB) control the motor speed. A detailed circuit diagram is shown in Figure 1.

Figure 1: Circuit schematic
The IN1 and IN2 pins control Motor A, which is connected to OUT1 and OUT2. Similarly, IN3 and IN4 control Motor B. The motion modes of the car are determined by the combination of these inputs, as shown in Table 1.
Table 1: Corresponding motion modes of the car

**1.2 Motor Speed Control Principle**
The L298N chip has two enable pins, ENA and ENB, which are active low. These pins allow the motor to respond to the control signals only when they are pulled low. By modulating the duty cycle of the PWM signals sent to ENA and ENB, we can control the speed of the motor.
The basic principle of PWM speed control is that the motor receives power for a certain period of time (T), and the average voltage across the motor is calculated as U = V × t / T, where t is the time the switch is on, and T is the total cycle time. The duty cycle (a = t / T) determines the effective voltage, which directly affects the motor speed. Therefore, the higher the duty cycle, the faster the motor rotates. This method allows for smooth and precise control of the vehicle's speed.
3.2v12-30Ah Lithium Battery Cells
3.2v12-30Ah Lithium Battery Cells,3.2v12-30Ah Lithium Battery Cells price,3.2v12-30Ah Lithium Battery Cells product
Jiangsu Zhitai New Energy Technology Co.,Ltd , https://www.zttall.com