This article explores the application of the Espressif ESP32 System-On-Chip (SoC) for managing vehicle dynamics through real-time digital proportional–integral (PI-like) control. We present the development of advanced driving assistance algorithms for Active Front Steering (AFS) and Rear Torque Vectoring (RTV) on this cost-effective, commercially available embedded system. Using digital PI-like control algorithms designed for AFS and RTV, the primary ESP32 board receives and processes steering signals, executing a discrete-time control model of the vehicle dynamic to enable dynamic adjustments to steering and torque. To enhance simulation realism, a secondary ESP32 is employed to generate the steering signal, effectively mimicking a steer-by-wire system via its analog output ports. This configuration facilitates the simulation and evaluation of control algorithms in a realistic test environment, ensuring enhanced vehicle dynamic stability and maneuverability under various conditions. Additionally, simulations are conducted using MATLAB 2023a and CarSim 2017.1 to compare the efficacy and benefits of the implementation. Our objective is to establish a platform for evaluating discrete controllers capable of real-time vehicle operation. This methodology accelerates and reduces the cost of improving vehicle system stability and responsiveness, enabling the immediate verification and fine-tuning of control parameters as needed.
Read full abstract