-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Control multiple motors #43
Comments
The vehicle is a pod operating on magnetic propulsion that simply needs to go forwards. To levitate, the motors need to spin at a set speed. To brake, the motors need to spin in the opposite direction at a set speed. Hence i need bidirectional speed control for 2 motors and was hoping the joystick gives the same speed to both motors |
You should be able to use the CAN bus functionality of the library. You need to connect both your VESC over CAN, and connect over UART to the "master" VESC. Then you can control the speed of both VESCs from one microcontroller using: https://github.com/SolidGeek/VescUart/blob/master/src/VescUart.h#LL153C12-L153C12 |
Hi, how to do I control two motors within VESCUart for speed control? I want both motors to spin at the same speed as one another bidirectional, there's no need for the motors to ever operate at different speeds.
Thanks
The text was updated successfully, but these errors were encountered: