Hi,
I'm searching for a documentation to control a BLDC via Vesc 6 mk5 and the canbus interface.
What SDO or PDO has to be sent to run the motor with a specific speed?
thanks
max
There is some can bus documentation here:
https://github.com/vedderb/bldc/blob/master/documentation/comm_can.md
As well as sending and receiving can commands using vesc's lisp scripting
https://github.com/vedderb/bldc/blob/master/lispBM/README.md#can-commands
thanks jaykup,
I managed to read the status (erpm etc) but setting duty or current is not working.
VESC ID is 23 -> 0x17 and for duty command id 0x0 the CanId should be 0x17. A duty of 20% should be 0x4e20.
I also can't see any can frame in the vesc tool or do I have to enable something?
Sending Can from Vesc tool is working
Any help is appreciated
Max
CanMsg m = {0x0017, 4, {0x0,0x0,0x4e,0x20}}; can.send(m);
sorry, I just changed to sending as extended id and it worked like a charm.
is there also a documentation for using the vesc 6 mk with SPI ?
There is some can bus documentation here:
https://github.com/vedderb/bldc/blob/master/documentation/comm_can.md
As well as sending and receiving can commands using vesc's lisp scripting
https://github.com/vedderb/bldc/blob/master/lispBM/README.md#can-commands
thanks jaykup,
I managed to read the status (erpm etc) but setting duty or current is not working.
VESC ID is 23 -> 0x17 and for duty command id 0x0 the CanId should be 0x17. A duty of 20% should be 0x4e20.
I also can't see any can frame in the vesc tool or do I have to enable something?
Sending Can from Vesc tool is working
Any help is appreciated
Max
CanMsg m = {0x0017, 4, {0x0,0x0,0x4e,0x20}};
can.send(m);
sorry, I just changed to sending as extended id and it worked like a charm.
is there also a documentation for using the vesc 6 mk with SPI ?
thanks