CAN Network |
Wheels |
IMU Sensor Fusion |
Receiver and Transmitter Comparison |
I've created a CAN (Controller Area Network) bus system to simulate transmitter and receiver signals between the powertrain and ECU (Electric Control Unit) of the vehicles. To create virtual channels and CAN Pack/ CAN Unpack connections, I used Simulink Vehicle Network Toolbox. Furthermore, I decided to add a Sensor Fusion algorithm to my project in order to observe signal characteristics between IMU sensors and vehicle dynamics. Figure 1 represents the CAN Network. Figures 2 and 3 are showing the wheel and IMU sensor respectively. The last image depicts the comparison of the transmitter and receiver signals. According to the plot, CAN bus can be implemented to create a connection between ECU and the wheels.
* MATLAB 2023a
* Simulink
* Simulink Powertrain Blockset
* Simulink Desktop Real-Time
* Simulink Vehicle Network Toolbox
- Download WheelsCanCommunication.slx and CANCommunicationPlot.m files.
- Open the Simulink Model. You can use the .m file to plot and compare receiver and transmitter CAN Signals.
- You can create your C code using Code Generator to implement it to your hardware.
Please share your comments and ideas about the project with me. Thank you for your time.