Hello,
I would like to control a MCP2515 (CAN BUS Module) with a Seeeduino. Connecting the SPI ports should not cause any problems, just like the CS pin with any pin (can be defined in the Arduino script).
I am unsure how to connect the INT pin. On an Arduino UNO it is connected to pin 2 (INT0). On a Seeeduino I can't find an INTO pin. Is there a possibility to use the MSP2515 with a Seeeduino anyway?
I have made the pinout of the Seeduino and the wiring with an Arduino Uno in the attachment.
I'm not familiar with the Xiao. But you have plenty interrupt pins that can be used. Do you need the interrupt?
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for advice on (nor for problems with) your project.
Sorry, I'm new to the forum and didn't know how to assign the topic.
In example programs for the MSP2515 only the "CS" port is deffined. The SPI ports and the INT port do not need to be declared. Maybe this is created automatically in the library? Since there is no INT0 on the Seeeduino, a control with this microcontroller is not possible. How can I change the INT0 to a port that really exists?
The seeduino is a 3.3v device and the MCP2515 board you have uses 5v.
Make sure the SPI MISO and the INT outputs from the MCP2515 are level shifted down to 3.3v.
Which library? Does the library use INT0? It would be silly if it had INT0 hard-coded but it's not impossible.
If you have the Xiao board package installed, you can compile one of the MCP2515 examples for the Xiao and check if it compiles; you don't need the Xiao to be connected for that.
The XIA0 is the same chip used in the Adafruit Feather M0, SAMD21.
There were some issues reported late in 4Q22:
no matching function for call to 'mcp2515_can::sendMsgBuf(int, int, int, unsigned char [8])' · Issue #137 · Seeed-Studio/Seeed_Arduino_CAN · GitHub
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
