CAN bus with Arduino Due

From openinverter.org wiki
Jump to navigation Jump to search

You can analyse CAN bus traffic using an Arduino Due.

You will need the following:

  • An Arduino Due board
  • One or two SN65HVD230-based CAN transceivers
  • An SPI Micro SD storage module (optional)

Here are the steps:

Configure your Arduino IDE

Download and install the Arduino IDE on your computer

Tools -> Board -> Boards Manager. Type "due" in the search box and install "Arduino SAM Boards (32-bits ARM Cortex-M3)"

Connect your computer to the the "programming" USB port on the Arduino Due board with a USB cable. The Due has two USB ports and they're used for different purposes. More on that later...

Tools -> Port. Make sure your Arduino board is selected

File -> Examples -> 01.Basics -> Blink

Sketch -> Upload

Hopefully you have a blinking light on your Arduino board. This means your IDE is working.

Get CAN working

Install GVRET

Get started with SavvyCAN

Start hacking