Arduino_CAN_BUS_MCP2515 icon indicating copy to clipboard operation
Arduino_CAN_BUS_MCP2515 copied to clipboard

RobotDyn Shield

Open SketchThis opened this issue 5 years ago • 4 comments

Hi there! I'm trying to get this CAN bus shield working:

https://robotdyn.com/can-bus-shield-for-arduino.html

I tried the Arduino library from here, burned it onto an Uno and mounted the shield. In the Arduino serial monitor all I get is this:

image

I found a fork of this library:

https://github.com/coryjfowler/MCP_CAN_lib by @coryjfowler

I setup the library and ran the "loopback" example file and I got this:

image

So this seems like I'm heading in the right direction, however when I tried some of the other examples I wasn't able to get any live data from my car. I believe I had the car's baudrate set properly... Not totally sure where I need to start looking here... Any help would be greatly appreciated!

SketchThis avatar Jan 09 '20 22:01 SketchThis

Hi @coryjfowler @SketchThis I am using CAN-BUS Shield on top of Arduino Uno. I am facing the similar errors like above.

Message Sent Successfully! Message Sent Successfully! Entering Configuration Mode Failure... Error Initializing MCP2515... MCP2515 Library Loopback Example... Message Sent Successfully! Message Sent Successfully!

Even I tried using the library which you mentioned "https://github.com/coryjfowler/MCP_CAN_lib by @coryjfowler" but no luck. please help! Thanks.

Ashok12698 avatar Jul 14 '23 07:07 Ashok12698

I suspect the chip select pin on the shield is not at the default position for the library, this can be changed in the sketch to accommodate the shield. I cannot access robotdyn[dot]com at the moment, so I can't see what the shield looks like and suggest the correct pin for the chip select.

coryjfowler avatar Jul 16 '23 00:07 coryjfowler

Hi @coryjfowler , Thanks for your comment. I guess, 'robotdyn' stopped its production but some information you can see on here. http://useshop.co.kr/shop/item/5355132/ This shows the CS pin 10 as shown on the backside of the board in this link. I tested it with CS_Pin(10) but it gives me same result. Could you please share a basic test code to check this, if any? Thanks.

Ashok12698 avatar Jul 17 '23 09:07 Ashok12698

The loopback example is the basic test. At this point assuming we are still using an Uno or similar where the SPI pins appear at both 11-13 and ISCP header, then I would suspect that the shield has a clone or fraudulent part that does not function as we and the library expect it.

coryjfowler avatar Jul 25 '23 10:07 coryjfowler