Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino and MCP2515 CAN Bus Communication with LED Indicators

View and Edit Project In Cirkit DesignerImage of Arduino and MCP2515 CAN Bus Communication with LED Indicators

Circuit Documentation

Summary

This circuit involves multiple microcontrollers (Arduino UNO and SparkFun RedBoard) interfacing with MCP2515 CAN controllers and LEDs. The circuit is designed to demonstrate communication between microcontrollers and control of LEDs.

Component List

  1. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
  2. MCP2515

    • Description: A CAN controller with SPI interface.
    • Pins: INT, SCK, SI, SO, CS, GND, VCC, H, L
  3. LED: Two Pin (green)

    • Description: A green LED with two pins.
    • Pins: cathode, anode
  4. Resistor (330 Ohms)

    • Description: A resistor with a resistance of 330 Ohms.
    • Pins: pin1, pin2
  5. LED: Two Pin (yellow)

    • Description: A yellow LED with two pins.
    • Pins: cathode, anode
  6. SparkFun RedBoard

    • Description: A microcontroller board similar to the Arduino UNO.
    • Pins: GND, VIN, A0, A1, A2, A3, A4/SDA, A5/SCL, ICSP MISO, 5V, ICSP SCK, ICSP MOSI, RESET, D8, D9 PWM, D10 PWM/SS, D11 PWM/MOSI, D12/MISO, D13/SCK, AREF, D0/RX, D1/TX, D2, D3 PWM, D4, D5 PWM, D6 PWM, D7, ioref, N/C, 3V3

Wiring Details

Arduino UNO

MCP2515

LED: Two Pin (green)

Resistor (330 Ohms)

LED: Two Pin (yellow)

SparkFun RedBoard

Code Documentation

Arduino UNO (Instance 1)

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Arduino UNO (Instance 2)

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the microcontrollers.