Skip to content

souravbaghz/arduino-canhacker

 
 

Repository files navigation

CANHacker CAN Adapter

Arduino Nano & MCP2515 Board

Features

Implement communication with CAN bus via MCP2515 by CANHacker (lawicel) protocol.

  • send & receive can frames
  • supports standart (11 bit) & extended (29 bit) frames
  • supports remote frames (RTR)
  • supports filter by ID (mask + code)
  • interface using Stream: ability to work with Serial, SoftwareSerial, Ethernet and other
  • supported can baudrates from 10Kbps up to 1Mbps
  • supported modules with different oscillators (8, 16, 20 MHz), 8 MHz is default, use setClock if your oscillator is not 8MHz
  • support CanHacker (application for Windows)
  • support CANreader (application for Android)

Documentation

English

Library Installation

  1. Install MCP2515 Library
  2. Download the ZIP file from https://github.com/souravbaghz/arduino-canhacker/archive/master.zip
  3. From the Arduino IDE: Sketch -> Include Library... -> Add .ZIP Library...
  4. Restart the Arduino IDE to see the new "canhacker" library with examples

Testes with Arduino Nano Only.

Repository History

Releases

No releases published

Packages

 
 
 

Languages

  • C++ 99.3%
  • C 0.7%