- Sat Jan 02, 2016 4:45 pm
#186987
I am trying to use the can bus shield with an arduino mega 2560 and the canbus.h library.
I have rerouted pins 10-13 of the shield to 50-53 of the mega.
defined the following
// Pins remapped to Arduino Mega 2560
#define P_MOSI B,2 // pin 51
#define P_MISO B,3 // pin 50
#define P_SCK B,1 // pin 52
#define MCP2515_CS B,0 // pin 53
//#define MCP2515_INT E,4 // pin 2
#define MCP2515_INT D,2 // pin 2
#define LED2_HIGH H,5 // pin 8
#define LED2_LOW H,5 // pin 8
I only get a "Can't init CAN" message. My understanding is that the board should initialize even when not connected to my vehicle. I've searched the internet and have not been able to find any help. How can I troubleshoot?
I have rerouted pins 10-13 of the shield to 50-53 of the mega.
defined the following
// Pins remapped to Arduino Mega 2560
#define P_MOSI B,2 // pin 51
#define P_MISO B,3 // pin 50
#define P_SCK B,1 // pin 52
#define MCP2515_CS B,0 // pin 53
//#define MCP2515_INT E,4 // pin 2
#define MCP2515_INT D,2 // pin 2
#define LED2_HIGH H,5 // pin 8
#define LED2_LOW H,5 // pin 8
I only get a "Can't init CAN" message. My understanding is that the board should initialize even when not connected to my vehicle. I've searched the internet and have not been able to find any help. How can I troubleshoot?