Hi everyone
I buy this bad boy in DFrobot and it say can be stacked with an Arduino UNO or Mega.
Any one could tell me how it is stacked together?, any video tutorial you could recommend?
Regards
generally the Canbus shield plugs into sockets of the UNO/Mega as a daughter board
e.g. a canbus shield plugged into a UNO with connections to the Canbus DB9 connector and CANH and CANL screw terminals
when testing Canbus networks I find a USB-CAN module useful for debugging and monitoring the bus (cost about £10 on Ebay in UK)
Good News/Bad News. The can bus shield will not work by itself. You can probably get it to initialize but it will not transmit. CAN must have a transmitter and a separate receiver. I use the MCP2515 CAN module and have had great sucess. I keep a simple network running with some simple modifications of the code included in Cory Fowler’s mcp_can library.
Making it simple you will need three units, one to send, one to receive/acknowledge and the one you are experiment with. Also remember you need 120 Ohm termination resistors on each physical end of the bus.
DFRobot_MCP2515 may be a useful source of information
the resources/doc directory contains file DFR0370 CAN BUS sheild(V2.0).pdf which has a schematic of the module in particular showing the DB9 connector wiring (CANH pin 3 CANL pin 5) - suitable to use with a DB9 to OBD2 Cable, e.g.
otherwise you can connect to the CANH and CANL terminals - the module has an onboard 120ohm resistor
Thanks a lot.
One thing I still not clear is that, the geometrical shape and pin location for Arduino UNO and Mega are very different so how could it be plugged with the CAN shield?
Thank you.
The documentation say the following:
This CAN-BUS Shield adopts MCP2515 CAN Bus controller with SPI interface and MCP2551 CAN transceiver to give your Arduino/Seeeduino CAN-BUS capability.
Thanks a lot.
think we need more details of the setup and how it currently operates
e.g. links to each of the components?
My idea is to control the drone wired instead of wireless.
What info you could need?
Thanks
Thank you.
The board already have the MCP2515 and has a CAN-BUS transceiver function, so I understand that the Arduino and the CAN shield board should be enough for my project, or not?
Thanks
yes
if you are using the MCP_CAN library
to test the UNO/MEGA + Canbus shield run the File>Examples>mcp_can>CAN_loopback which will test the functionality of the protocol controller, and connections to it
to test the Canbus network get a USB-CAN module which will enable a PC to send/receive frames to to/from the UNO/Canbus shield
once you know the network is operational connect your target device
Thanks a lot. ![]()