This is an illustration how CAN (Controller Area Network) protocol interface works with Microcontroller. CAN protocol is methodology of communication between electronics devices, commonly found in Automotive, these device is the responsible for the car engine management system, Gear Control, Active Suspension, ABS, Lightning and Control, Air Condition, Air Bags, Security System, Central Locking, ETC. As you can see below diagram its uses 2 microcontroller and 2 CAN module here you will see how microcontroller interface with CAN (MCP2515) and drive as 2 wire RX/TX base data communication.

The MCP2515 is a stand-alone CAN Controller Area Network that implements the CAN specification v2.0B. These device is capable of transmitting and receiving both standard and extended data/remote frames and it has standard SPI (Serial Peripheral Interface). MCP2515 has 2 acceptance mask and 6 acceptance filters that are used to filter out unwanted messages, reducing the host MCU overhead.

Required Component

  • 2x Arduino Micro-controller
  • 2x MCP2515 Module
  • Jumper Wires / DuPont Wires
  • Solder-less Breadboard

Wiring Diagram




mcp2515-can-controller-stand-alone-diagram-schemtatics-wiring-guide-communication

Importing the required code libraries

mcp2515-can-controller-stand-alone-diagram-schemtatics-wiring-guide

Test Code / Test Sketch Code



Downloads

  • Download the Code Libraries Here | Zip
  • Download the MCP2515 Datasheet Here | PDF
Wiring the MCP2515 Stand-alone CAN Controller with SPI
Facebooktwitterredditpinterestmail
Tagged on:                         

JLCPCBPCBgogoPCBway4pcb

Leave a Reply

Your email address will not be published. Required fields are marked *