- Using CAN-BUS Shield with Arduino Mega
Arduino Mega 2560 has its own SPI port located on pins 50, 51, 52 and 53 instead of 10, 11, 12, 13 on Arduino. The CAN shield has them on pins 10, 11, 12, 13,so you need some jumper wires. For details, please refer to its wiki page here.
- I got an error "CAN BUS Shield init fail" while using the examples. How to fix that?
As from CAN BUS shield V1.1 to latest version, we changed CS pin from D10 to D9 by default. So please do this modification "MCP_CAN CAN(9); // Set CS to pin 9" in the example.
Please visit our wiki page for more info about this product. It will be appreciated if you can help us improve the documents, add more demo code or tutorials. For technical support, please post your questions to our forum.