You are here

Dual motor control on VESC6 / 6.00.58

4 posts / 0 new
Last post
jediengineer
Offline
Last seen: 5 months 2 weeks ago
Joined: 2022-10-10 19:16
Posts: 4
Dual motor control on VESC6 / 6.00.58

I need to be able to control 2 motors simultaneously using VESC for an RC vehicle. I'm currently using an STM32F407 and VESC firmware version 6.00.58 to do this. Right now, I can get one motor at a time to spin, but I can't figure out how to get both to spin simultaneously at different speeds or directions. 

The software has a flag for enabling dual motor support, and we can control two motors, but not simultaneously independently (simultaneous run, independent speed/direction). Based on that I designed around the STM32F407 using the VESC6_Plus schematic.

I had to remap some of the pins to align with timers - there was only one option to be able to connect two motors. The design works beautifully, I have no problem driving them independently, just having problems with getting the software to run them simultaneously and independently control speed and direction. 

Has anyone done this successfully or has anyone got an idea on how to do it?

frank
Offline
Last seen: 4 days 7 hours ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847

The software is not capable to controlling two motors independently without using additional LISP or QML scrips.

g-force
Offline
Last seen: 2 years 2 months ago
Joined: 2022-10-14 20:35
Posts: 1

I will be looking into something similar, in order to get vector thrusting for two motors, in addition to having a PIB programmed to counteract wobble decteced to IMU sensor. Would be interested to get in touch with anyone doing something similar. 

mansi712
Offline
Last seen: 1 month 1 week ago
VESC Free
Joined: 2024-08-08 11:50
Posts: 9

Is it possible to provide LISP or QLM code to position and rpm synchronize two vescs? i have been struggling with this for a few months now, have tried doing it directly using the vesc tool and also using arduino. but nothing is working for me.

mansi