You are here

Dual motor control on VESC6 / 6.00.58

6 posts / 0 new
Last post
jediengineer
Offline
Last seen: 1 year 1 month 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: 19 hours 43 min ago
VESC BronzeVESC 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 10 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: 7 months 13 hours ago
Joined: 2024-08-08 11:50
Posts: 10

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

Onomnaf
Offline
Last seen: 1 week 4 days ago
VESC Free
Joined: 2025-07-09 11:53
Posts: 1

Hello guys,
Does some-on found any solution for this kind of problematic ?

for me the problem is the following : because I'm over optimistic (or maybe crazy or stupid) I want to implement the following scientific paper : Dual-Motor Planetary Transmission to Improve Efficiency in Electric Vehicles.

Long story short : on an electic vehicle, if you use two motors in parallel with different speed, with some epicycloidal gear, you can theoretically increase your maximum efficiency map.

So my idea is to use two BLDC, so two VESC. 
I'm looking for a mean to pilot the two motors at different speed. each speed Sn being of the form Sn=C*An+kn
Where :

  • Sn is the motor speed of the motor n
  • C is the consign (for an IMU or a Remote)
  • An and kn some constants of the motor n depending of the mechanism (to be ingeneered)

I know I will have to learn how to use LispBM but if someone can confirm it's possible this way. I will be very grateful.

RSR
Offline
Last seen: 1 week 5 days ago
VESC Original
Joined: 2017-05-24 12:46
Posts: 39

This will not answer the question, but.... That driveline will only improve efficiency at low-speed, and only if it includes a transmission brake for the ring-gear, right?
You could probably get even higher efficiency with a single motor and a 2-speed transmission (like the Taycan).