CAN Bus Shield Dijelaskan: Fitur Utama dan Aplikasi dalam Sistem Otomotif Modern
Dulu, teknologi otomotif tidak canggih seperti sekarang ini. Berbagai inovasi datang dengan salah satunya adalah Can bus shield. Dengan itu, kendaraan modern kini lebih cerdas. Informasi seperti rpm mesin aktual dan kecepatan kendaraan melalui rangkaian listrik mobil kini tersedia.
Oleh karena itu, keberlanjutannya tidak mengherankan karena keandalan dan kecepatan komunikasi sedang. Selanjutnya, kita membahas kemampuan Can-bus dan cara menggunakannya dengan mikrokontroler.
1. Apa itu can bus?
The Can-Bus shield adalah pengontrol industri yang ditemukan dalam alat mesin modern. Sebuah contoh yang baik melibatkan diagnosa papan, yang menggunakan pesan yang valid dari mini motor atau TIPM untuk mengoperasikan fungsi elektronik.
(A Can-bus shield V2 chip).
https://commons.wikimedia.org/wiki/File:CAN_BUS_Shield_V2.jpg
2. Features
The Can-bus shield has several features that make it unique and effective. They include:
- The CS pin is compatible with TF card data storage and has an SD card slot for message storage.
- Normally, its standard pinout has a changeable chip select pin.
- It uses CAN version 2 remote frames with a data speed of 1MB per second.
- Also, its default pinout uses an industrial standard sub-D connector with nine pins.
- Furthermore, it allows a CAN and OBD-II pinout selectable feature.
- In addition, it has a replaceable INT pin.
- Another great feature is the support for a standard frame, two receiving methods, and compatibility with Arduino standard interface.
- Still, it has grove Can-bus module connectors for UART and I2C.
3. Hardware and software
A. Hardware
- DB9 power interface.
- V_OBD.
- Led Indicators:
- Terminals – For CAN_L and CAN_H.
- Arduino UNO Pinout.
- Serial Grove connectors.
- I2C Grove connectors.
- ICSP pins.
- MCP2551 Can-bus controller – CAN transceiver of high speed.
- MCP2515 Can-bus controller – Singular CAN controller integrated with an SPI interface.
(A Can-bus shield with Arduino Uno).
https://commons.wikimedia.org/wiki/File:Arduino_Uno_with_CAN-bus_shield.JPG
B. Software
Generally, the software is compatible with Arduino standard interfaces like the Arduino Uno, Arduino Leonardo, or Arduino MEGA.
4. How Can-bus Shield works?
https://www.youtube.com/watch?v=PEI5EWSgaRk
(This video takes you through how a Can-bus shield works).
5. Can Bus Shield Entry-level Operation
To begin operating the Can-bus shield, you need to follow the steps below.
Materials needed
- 2 CAN-bus shields for CAN-bus SPI communication.
- 2 Seeeduino V4.2 microcontrollers.
- Jumper wires for the connection of Can-bus shields and Seeeduino controllers.
Hardware connection
Firstly, you must place the two Can-bus shields in the Seeeduino version 4.2. Afterward, you connect these two CAN-bus shields with jumper wires. Connect them thus:
CAN_L to CAN_L and CAN_H to CAN_H.
Software Installation
For software installation, you must consult the Arduino library for the Can-Bus. After that, set one node as Master while the other functions as Slaver.
Code
Upload the appropriate code to the Arduino IDE to finish programming your Can-bus shield.
(A serial monitor showing sent and received data between two Can-bus shields).
6. FAQ
Is Can-bus Shields compatible with Arduino?
Yes. The controller is fully compatible with Arduino Uno, Arduino MEGA, and Arduino Leonardo.
How to Change SS Pin?
Follow the few steps below:
- First, use a knife to cut the copper cable between digital ten and CS.
- Next, solder the copper wire to connect it to D9.
- Afterward, go to the library and change the SS pin accordingly.
CAN-BUS Shields init fails
For Can-bus shield V1.1 to Can-bus shield V2 and upward, you need to modify the code thus:
MCP_CAN CAN(9); // Set CS to pin 9.
Conclusion
In summary, the CAN Bus Shields are great for automotive applications. However, with the help of an Arduino microcontroller, it runs on codes to control several elements on your car dashboard.
So, constructing and programming awesome projects with the Can-bus shields module got easier. Therefore, contact us if you need professional assistance in building projects like these. Welcome to contact us.