CAN-FD Shield

CAN-BUS is a common industrial bus because of its long travel distance, medium communication speed and high reliability. It is commonly found on modern machine tools, such as an automotive diagnostic bus.

This CAN-FD Shield adopts MCP2517 CAN Bus controller with SPI interface and MCP2542 CAN transceiver to give your Arduino CAN-BUS(CAN-FD) capability. With an OBD-II converter cable added on and the OBD-II library imported, you are ready to build an onboard diagnostic device or data logger.

CAN BUS PRODUCTS LIST OF LONGAN LABS

We have made a lot of can bus products, you can get more information through the following list, so as to choose a product suitable for you.

PRODUCT NAME LINK PRICE MCU CHIP PROTOCOL
Serial CAN Bus Module LINK $14.9 ATMEGA168PA MCP2515 CAN2.0
OBD-II CAN Bus Dev Kit LINK $17.9 ATMEGA168PA MCP2515 CAN2.0
OBD-II CAN Bus GPS Dev Kit LINK $29.9 ATMEGA32U4 MCP2515 CAN2.0
OBD-II CAN Bus Basic Dev Kit LINK $19.9 ATMEGA32U4 MCP2515 CAN2.0
CANBed LINK $14.9 ATMEGA32U4 MCP2515 CAN2.0
CANBed-FD LINK $17.9 ATMEGA32U4 MCP2517FD CAN-FD
CAN-FD Shield LINK $14.9 NO MCU MCP2517FD CAN-FD
Serial CAN Bus Module Lite LINK $9.9 STM8S005 MCP2515 CAN2.0

Features


  • Work at CAN-FD and CAN 2.0
  • Industrial standard 9 pin sub-D connector
  • OBD-II and CAN standard pinout selectable.
  • Changeable chip select pin
  • Changeable CS pin for TF card slot
  • Changeable INT pin
  • Arduino Uno pin headers
  • 2 Grove connectors (I2C and A0/A1)
  • SPI Interface up to 10 MHz

Note

CAN-FD Shield Work well with Arduino UNO (ATmega328), Arduino Mega (ATmega1280/2560) as well as Arduino Leonardo (ATmega32U4).

Hardware Overview


  1. DB9 Interface - to connect to OBDII Interface via a DBG-OBD Cable.
  2. V_OBD - It gets power from OBDII Interface (from DB9)
  3. Led Indicator:
    • PWR: power
    • TX: blink when the data is sending
    • RX: blink when there's data receiving
    • INT: data interrupt
  4. Terminal - CAN_H and CAN_L
  5. Arduino UNO pin out
  6. A0/A1 Grove connector
  7. I2C Grove connector
  8. ICSP pins
  9. IC - MCP2542FD, a high-speed CAN-FD transceiver (datasheet)
  10. IC - MCP2517FD, stand-alone CAN controller with SPI interface (datasheet)
  11. SD card slot
  12. 120Ω terminal resistor switch

D-Sub CANbus PinOut

PIN Signal names Signal Description
1 Reserved Upgrade Path
2 CAN_L Dominant Low
3 CAN_GND Ground
4 Reserved Upgrade Path
5 CAN_SHLD Shiled, Optional
6 GND Ground,Optional
7 CAN_H Dominant High
8 Reserved Upgrade Path
9 CAN_V+ Power, Optional

Pin map

Note

  • The FREE pin is available for the other usages.

Dimensions

Getting Started


Here's a simple example to show you how CAN-BUS Shield works. In this example we need 2 pieces of CAN-BUS Shields as well as Arduino or Seeeduino.

Note

This example is built under Arduino IDE version 1.8.10.

STEP1: What do we need

Name Function Qty Link
CAN-BUS Shield CAN Bus communication 2 link
Seeeduino V4.2 Controller 2 link
Jumper Wire connection 2 link

STEP2: Hardware Connection

Insert each CAN-BUS Shield into Seeeduino V4.2, and connect the 2 CAN-BUS Shield together via 2 jumper wires. Shown as below images.

Note

CAN_H to CAN_H, CAN_L to CAN_L

STEP3: Software

Please follow how to install an arduino library procedures to install CAN BUS shield library.

Click CAN-FD Library for Arduino to download the library.

Install the library to your Arduino IDE when it is downloaded.

One of the node (a node means Seeeduino + CAN_BUS Shield) acts as master, the other acts as slaver. The master will send data to slaver constantly.

Note

Each node can act as master before the code being uploaded.

Open the CAN_FD_Send example (File > Examples > Longan_Labs_CAN_FD_Shield_Arduino > CAN_FD_Send) and upload to the master.

Open the CAN_FD_Recv example (File > Examples > CAN_FD_Recv > receive_check) and upload to the slaver.

STEP4: View Result

Open the Serial Monitor of Arduino IDE(slaver), you will get the data sent from the master.

Schematic Online Viewer

Resources