Skip to content

A Particle library for sending and receiving data using CAN bus.

License

Notifications You must be signed in to change notification settings

nzottmann/arduino-CAN

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino CAN

Build Status

A Particle library for sending and receiving data using CAN bus with MCP2515. Based on https://github.com/sandeepmistry/arduino-CAN, with small changes to be compatible to Particle.

The library is only tested with the mesh modules Argon, Boron and Xenon. Older generations have an on-chip CAN controller.

Compatible Hardware

Microchip MCP2515 wiring

Microchip MCP2515 Particle
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(...).

API

See API.md.

Examples

See examples folder.

License

This library is licensed under the MIT Licence.

About

A Particle library for sending and receiving data using CAN bus.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 99.1%
  • C 0.9%