This repository contains a MATLAB/Simulink implementation of an Anti-lock Braking System (ABS). The simulation focuses on the longitudinal dynamics of a vehicle during a hard braking maneuver, utilizing the Pacejka "Magic Formula" to accurately model the friction interface between the tire and the road.
The goal of this system is to prevent wheel lock-up by modulating braking torque, maintaining the Slip Ratio (
- Pacejka Tire Model: Realistic tire-road interaction using non-linear equations.
-
Hydraulic Dynamics: Modeling of hydraulic resistance (
$R_h$ ) and compliance ($C_h$ ). - Simulink Integration: A modular block diagram approach for control logic testing.
-
Automated Plotting: A Live Script (
Vars.mlx) for parameter initialization and post-simulation analysis.
The simulation is configured with the following default values (editable in Vars.mlx):
| Category | Variable | Value | Description |
|---|---|---|---|
| Hydraulic | 0.1 | Hydraulic Resistance | |
| 0.1 | Hydraulic Compliance | ||
| Vehicle | 1200 kg | Vehicle Mass | |
| 28 m/s | Initial Speed (~100 km/h) | ||
| 0.28 m | Wheel Radius | ||
| Pacejka | A, B, C, D | Custom | Shape factors for the |
- Clone the repository:
git clone https://github.com/AntoineBert/GNSS-Positioning-And-Signal-Analysis.git``` - Initialize Variables: Open MATLAB and run the
Vars.mlxscript. This loads all constants into the Workspace. - Open Model: Open the
ABS_Simulink_Model.slxfile. - Simulate: Click the Run button in the Simulink toolstrip.
- Analyze: Return to the
Vars.mlxwindow to view the generated subplots and performance analysis.
The simulation generates four key performance indicators via subplot:
- Brake Torque: Visualizes the pressure modulation by the ABS controller.
- Distance: Compares the stopping distance of the vehicle vs. the theoretical wheel distance.
- Speed: Shows the synchronization between vehicle speed and wheel speed.
- Slip Ratio: Monitors the controller's ability to stay near the Pacejka curve peak.
- MATLAB (R2020b or later recommended)
- Simulink
- Control System Toolbox
This project is licensed under the MIT License - see the LICENSE file for details.
AntoineBert - GitHub Profile