It will possibly have errors running on 5V as the logic levels are incompatible (It requires 0.7*Vcc to register a high, for 5V, this is 3.5V which the maple cannot provide). I've also heard that CAN must run on 5V (I'm not very experienced with CAN) so we may need to configure things so there is either a level convertor or the GPIO is set to be OUTPUT_OPEN_DRAIN with a pull-up resistor to the 5V rail. This does mean you can only use Spi(2) on the current Maple Range (including the Mini) due to those pins having 5V tolerance.
Another factor could be how the MCP2515 is connected to the Maple, if the wires are long, then there could be noise which is causing the communication to fail, sadly we can't test this as there does not seem to be a device ID we can read from the MCP2515. How long are the wires? If they're longer than about 5-10cm, then we should try decreasing the clock speed that we're accessing the MCP2515. Currently it is set to 9MHz, the arduino is accessing it at 8MHz.
Library for MCP2515
(18 posts) (4 voices)-
Posted 3 years ago #
-
The wires are colorful jumpers that come with the arudino. It's stranded with sold ends. They're pretty short. You are right regarding the 5v, you do need 5 volts to run the level converter. The (MCP2551). The MCP2515 will easily run off of 3v3 however. I'll mess with it some more today and see if there's anything I can figure out.
Posted 3 years ago # -
Just a note for this thread, I've ordered 2 MCP2515s from Microchip so I can see if I can get it working in a breadboard.
Posted 3 years ago #
Reply
You must log in to post.