You are here

How to control two Can-connected motors separately from microcontroller.

1 post / 0 new
kkkeisuke
Offline
Last seen: 3 years 6 months ago
Joined: 2021-06-08 12:52
Posts: 1
How to control two Can-connected motors separately from microcontroller.

I would like to run separately the two motors by using the microcontroller, but I am having trouble figuring out how to do that. Any help would be greatly appreciated.

I am using a stormcore 60D+ as ESC.
Supposedly, this ESC has two motors connected to CAN.

For the microcontroller, I am using an arduino, but I also have an ESP32 and various others.

The first thing I am able to do now is to control the two motors simultaneously using PPW or UART from this site. However, I don't know how to run the motors separately from here.
https://flipsky.net/blogs/vesc-tool/how-to-control-fsescbase-on-vesc-wit...

Next, I tried to use PyVESC. I was able to control one motor (master), but not the other (slave). The problem may be that I don't understand how the ESC controls the slave motor through the can.

If anyone knows how to control the two motors separately from the microcontroller, please let me know.