CAN Bus

Adafruit CAN Bus FeatherWing - MCP2515 | Adafruit Feather M4 CAN Express with ATSAME51 | Custom FeatherWing for Comimark TJA1050

Adafruit CAN Bus FeatherWing - MCP2515

SPI Interface with MCP2515 CAN controller is pre-connected to the Feather CS and INT pins (commonly #5 and #6) that can be cut.   The 120 ohm resistor can be disconnected.  

Adafruit PN 5709

Adafruit tutorial

Adafruit_MCP2515 library

 

Adafruit Feather M4 CAN Express with ATSAME51

Feather M4 Express (SAME51) with The 120 ohm termination resistor can be disconnected.  

By default both the boost converter and the transceiver are disabled.   They must be enabled with the following code:

// turn on both the transceiver and booster:
Serial.print("PIN_CAN_STANDBY: "); Serial.println(PIN_CAN_STANDBY);
pinMode(PIN_CAN_STANDBY, OUTPUT);   // pin #40
digitalWrite(PIN_CAN_STANDBY, false); // turn off STANDBY
Serial.print("PIN_CAN_BOOSTEN: "); Serial.println(PIN_CAN_BOOSTEN);
pinMode(PIN_CAN_BOOSTEN, OUTPUT); // #41
digitalWrite(PIN_CAN_BOOSTEN, true); // turn on booster  

 

NOTE: The analog inputs are supposed to be 12-bit with a range of ADC value from 0 to 4095.   However, the actual range is 10-bit or 0 to 1023.  

AF PN 4759

Adafruit tutorial

Pinout

Forked Arduino CAN library (NOT in library manager)

 

Custom FeatherWing for Comimark TJA1050

Quickly add the popular and inexpensive Comimark TJA1050 CAN bus module to your Feather project with this custom FeatherWing.   A Adafruit PN 757 logic level converter converts the TJA1050 5V logic to 3.3V logic for the attached Feather.   The Feather UART Tx and Rx pins are wired directly to the logic level converter, and that is connected to the TJA1050.   Full tutorial on how to use the TJA1050.  

 

Sparkfun AST-CAN485 Dev Board (CAN bus + RS485)

Sparkfun AST-CAN485 Dev Board hookup guide

 

Complete FeatherWing design on EasyEDA

 

Carloop

Feather CANBus Shield

 


Do you need help developing or customizing a IoT product for your needs?   Send me an email requesting a free one hour phone / web share consultation.  

 

The information presented on this website is for the author's use only.   Use of this information by anyone other than the author is offered as guidelines and non-professional advice only.   No liability is assumed by the author or this web site.