Hi, I am using V3.6. I purpose is to connect 2 Odrives with my Raspi .
- Data definition table
Where can find command data definition?
I found in source code example.
is there any table which show 0x08 = closed loop control？
I found the command ID table in Doc. but nor find the data definition table.
2.Node ID problem
should we also also set Raspi node ID?
I hope 2 Odrives send back their pos to my Raspi when after they arrive their request pos,
it means each Odrives will send to the same ID(Raspi), it will cause conflict??
I want to using raspy to connect 2 odrives.
is it a correct cable connection below?
do you provide a demo about how to use can_helper.hpp, because I want to use Arduino&cpp to
communicate with Odrive.
I found on other website, they use 0X207 as Can_id, node_id is 0x02, cmd_id is 0x07
that is very confused for me, if node_id is 0x02, cmd_id is 0x07, so 0x02<<5|0x07 will be 0x47 but not 0x207, is there any misunderstand on this.
Hi, Nicholas ,
thanks a lot!!!
there is some update and some problem.
I bought a can_to_usb device to connect the Odrive with PC to test the heartbeat message, if I can receive.
but there is no message from odrive to can_hat.
I used a software named “cangaroo” to monitor in PC.
this is the layout
this is configuration in odrive and cangaroo
this is no receive message
for check the reliability of my can_to_usb, I used my arduino_mcp2515 to communicate this can_to_usb, it really works, so I had a little lost in this point.
I am not seeing a common ground in the image with the ODrive, where is the “System Ground Star Point” that connects to DC-?
for the problem 5, yes, the website made a mistake, they set odrive id =0x010,(which is hex) but they mention set ID=2, this is wrong, ID should =16( in dec). hope it can help other dudes.
first of first, I changed cables, and everything is working. It could be cable problem.
but I still not use the common ground point, but the connection works, just give you feedback about this.
Okay cool, I’m glad its working now.
Not having the common ground point will impact the reliability though, make sure this is connected before going too much further.
thanks for your advice. Today I successfully communicate between arduino uno (with mcp2515 library) and odrive.
I can get cyclic message, and I can set pos to ordive as well.
below is the picture for other dudes.
next step is I want to use your can_helper.cpp as standard way to parse the message from can_bus.