Hi!
Me and a friend are trying to connect a Sparkfun CAN-bus shield with our Arduino Mega2560. We've been searching both google and this forum specifically trying to get it to work but without success..
We want to use the CAN-shield to let the Arduino Mega "read" incoming CAN-messages, which we're right now using the program Busmaster to simulate. Later these messages will come from another CAN-node telling the Arduino to simulate different tests.
To be able to connect the shield upon the Mega we cut pins 11,12,13 on the CAN-shield and connected them to 50,51,52 on the Mega. We've also bent pin 10 so it doesn't connect with the Mega, and instead connected it with pin 53 on the Mega. Though we are a bit unsure about the last pin since we've seen different examples.
We've tried a lot of different libraries that we found on the internet, the last one we tried was this:
But even though we change the pins due to the Mega the communication fails to initialize. The code compiles and everything but we can't send any message.
Is there something else we need to change in the library, or could it be a hardware problem?
Any help on this would be appreciated!