# arduino-mcp2515

> MCP Client

This repository provides an Arduino library for interfacing with the MCP2515 CAN controller, enabling CAN-BUS communication for Arduino projects. It supports standard and extended frames, along with sending, receiving, and

## Overview

- **Category:** Developer Tools
- **Language:** C++
- **Stars:** 1018
- **Forks:** 292
- **Owner:** autowp
- **GitHub:** https://github.com/autowp/arduino-mcp2515
- **Created:** 2016-03-13T09:33:18+00:00
- **Updated:** 2025-03-28T23:48:23+00:00
- **Source:** https://model-context-protocol.com/clients/arduino-can-bus-mcp2515-library

## Setup

## Setup

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

## Tools

## Available Tools

1.  Implements CAN V2.0B (at up to 1 Mb/s).
2.  SPI Interface (up to 10 MHz).
3.  Standard (11 bit) and extended (29 bit) data and remote frames.
4.  Two receive buffers (with prioritized message storage).
5.  `sendMessage` (to send data onto the bus).
6.  `readMessage` (to receive data from the bus).
7.  `setFilterMask` (to set a mask for filtering received messages).
8.  `setFilter` (to set a filter for received messages).
