No description
Find a file
2017-12-27 17:28:09 -05:00
examples Minor example formatting 2017-12-27 17:28:09 -05:00
src Remove clockRate arg from begin, add new setClockFrequency API 2017-12-27 17:25:39 -05:00
API.md Remove clockRate arg from begin, add new setClockFrequency API 2017-12-27 17:25:39 -05:00
keywords.txt Remove clockRate arg from begin, add new setClockFrequency API 2017-12-27 17:25:39 -05:00
library.properties Initial library commit 2017-12-17 19:31:35 -05:00
LICENSE Initial commit 2017-12-13 18:49:56 -05:00
README.md Initial library commit 2017-12-17 19:31:35 -05:00

Arduino CAN

An Arduino library for sending and receiving data using CAN bus.

Compatible Hardware

Microchip MCP2515 wiring

Microchip MCP2515 Arduino
VCC 5V
GND GND
SCK SCK
SO MISO
SI MOSI
CS 10
INT 2

CS and INT pins can be changed by using CAN.setPins(cs, irq). INT pin is optional, it is only needed for receive callback mode. If INT pin is used, it must be interrupt capable via attachInterrupt(...).

NOTE: Logic level converters must be used for boards which operate at 3.3V.

Installation

Using the Arduino IDE Library Manager

  1. Choose Sketch -> Include Library -> Manage Libraries...
  2. Type CAN into the search box.
  3. Click the row to select the library.
  4. Click the Install button to install the library.

Using Git

cd ~/Documents/Arduino/libraries/
git clone https://github.com/sandeepmistry/arduino-CAN CAN

API

See API.md.

Examples

See examples folder.

License

This libary is licensed under the MIT Licence.