Arduino Based Can Protocol Implementation in Vehicle Control
Arduino Based Can Protocol Implementation in Vehicle Control
In modern automotive systems, the Controller Area Network (CAN) protocol has
become the standard for efficient and real-time communication between various electronic
control units (ECUs). Traditional point-to-point wiring in vehicles increases complexity,
weight, and cost, making CAN-based communication a superior alternative.
The study implements a safety-enhanced vehicle monitoring system using Arduino
and CAN, integrating features like collision avoidance, speed monitoring, and
emergency alerts. The study also evaluates real-time message scheduling and bus
utilization in CAN networks to optimize communication efficiency.
By addressing challenges like wiring complexity, real-time data transmission, and
system scalability, this research contributes to the advancement of intelligent,
efficient, and safe vehicle communication systems.
Literature Review
t w.r.t
solutions.
SDG
- Improves urban mobility and traffic safety
SDG 11: Sustainable Cities and Make cities and human settlements through CAN-based smart vehicle control.
Communities inclusive, safe, resilient, and sustainable - Supports electric vehicle adoption,
reducing pollution and traffic congestion.
Modern vehicles require intelligent safety and monitoring systems to prevent accidents. Existing
systems are either:
•Limited to high-end vehicles, making them unaffordable for common users.
•Inefficient in real-time communication, leading to delayed accident response.
•Dependent on point-to-point wiring, increasing installation and maintenance costs.
Identified Problems:
1.Driver Mistakes Cause Accidents: Many accidents result from driver errors, such as lack of
awareness or drunk driving.
2.No Real-Time Collision Avoidance: Existing systems lack a real-time alert mechanism for
avoiding obstacles.
3.Limited Speed and Lane Monitoring: Vehicles lack an affordable automated speed control and
lane departure warning system.
4.Lack of Emergency Communication: In case of an accident, there is no automatic alert system
to notify emergency services.
•Lack of efficient data communication between multiple controllers in an EV.
•Difficulty in integrating new vehicle features due to non-modular architectures.
•Need for real-time monitoring and control of motor, lighting, and battery systems.
Real-time communication in a CAN network is essential for critical applications, such as automotive
control systems. However:
•Message scheduling in CAN networks needs optimization to prevent delays.
•High-priority messages may face latency issues, affecting safety-critical operations.
•Bus utilization must be optimized to ensure smooth data transmission.
•Error handling needs to be efficient to maintain reliability in real-world applications.
Identified Problems:
1.Fixed-priority scheduling can lead to message delays, especially when low-priority messages
occupy the bus.
2.Error recovery mechanisms (like bit stuffing) impact real-time performance.
3.Existing CAN systems may fail to meet strict real-time constraints, leading to potential data loss
or control failures.
4.High bus utilization can cause congestion, affecting latency-sensitive message
Proposed System/Architecture/Design
Architecture/Design:
• Main Features:
• Collision Avoidance System – Uses ultrasonic sensors to measure
distance and avoid rear-end collisions.
• Speed Monitoring System – Alerts the driver if the vehicle exceeds a
speed threshold.
• Lane Departure Warning System – Uses IR sensors to detect lane
drift.
• CAN Communication Structure:
• ATMEGA328-based microcontroller processes sensor data.
• MCP2515 CAN Controller transmits data to the main controller.
• Each safety module operates as a separate CAN node, ensuring
efficient communication.
Hardware Layout:
•A central microcontroller manages message transmission.
•MCP2515 CAN Controller interfaces modules with the CAN bus.
Software Implementation:
•The system follows the ISO 11898 CAN protocol for message exchange.
•The Arduino IDE is used for coding in Embedded C/C++.
•CAN Data Rate: 125 Kbps for high-speed communication.
•Error Detection Mechanism: Uses 15-bit CRC (Cyclic Redundancy Check).
•The system models worst-case response times for different message priorities.
•Piggybacking Optimization:
•Multiple periodic signals are combined into a single message to reduce bus load.
Made the abstract and the literature review after doing the
30 – 12 – 2024 necessary research.
The progress made so far lays a strong foundation for completing the remaining tasks. The
expected outcome is a fully integrated, safe, efficient, and real-time vehicle control
system that meets industry standards and is ready for real-world application.
•Full integration testing: Although individual modules are working, full system integration
with communication between battery, motor, and lighting requires more thorough testing
for reliability and coordination.
Team member Contribution
1. Zhao, Y., Zhang, W., & Wu, B. (2022). "CAN Bus-based communication for vehicle
control systems." IEEE Transactions on Industrial Electronics, 69(5), 5423-5434.
2. Hosseinzadeh, M., & Saldaña, A. (2021). "A review on the applications of CAN bus
in modern electric vehicle systems." Electric Power Systems Research, 189, 106573.
3. Kou, B., & Zhang, L. (2020). "Development of an intelligent driver assistance system
based on CAN communication and IoT." Sensors and Actuators A: Physical, 303, 111875.
4. Azzam, M. I., & Elbeltagi, E. (2019). "CAN bus-based real-time data transmission for
electric vehicle energy management." Journal of Energy Engineering, 145(4), 04019028.
5. Li, Y., Zhang, H., & Xu, X. (2018). "Implementation of advanced driver assistance
systems using CAN protocol for automotive applications." Journal of Vehicle Design, 39(3),
243-257.
6. Chen, M., & Guo, J. (2017). "Optimization of real-time CAN bus scheduling for
intelligent vehicle systems." IEEE Access, 5, 27342-27351.
7. Hassan, M. S., & Jafri, S. M. (2016). "Analysis of real-time CAN communication for
vehicular safety systems." International Journal of Vehicle Safety, 10(1), 19-36.
8. Yang, F., & Wang, W. (2015). "Real-time scheduling of CAN-based data exchange in
electric vehicles." Journal of Real-Time Systems, 51(2), 217-232.
9. Sasaki, K., & Nakamura, M. (2014). "Safety and reliability improvement of electric
vehicles through CAN bus protocol." Vehicle System Dynamics, 52(6), 777-795.