You are here

Connect 4 vesc with can-bus, motors stuttering

9 posts / 0 new
Last post
oyvinla
Offline
Last seen: 2 years 10 months ago
Joined: 2021-11-03 08:35
Posts: 3
Connect 4 vesc with can-bus, motors stuttering

Hi, I'm trying to connect 4 vesc controllers over the can-bus interface and run them synchronous. I have removed the resistor on the two vescs in the middle, leaving the first and fourth with a resistor. But the issue is that the motors are not running very well, they are stuttering and locking up. 

 

I have tried and successfully runned two and two, but not 3 and 4 together.

 For me it seems like there is a communication problem when running more than two vesc controllers over can-bus. Has anyone successfully gotten 4 vesc to run synchronous?

 

I'm using the standard single vesc from trampa boards.

 

Thanks

 

frank
Offline
Last seen: 3 weeks 6 days ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847

Did you only connect CAN H and CAN L? No other interconnections in between the 4 Units?

oyvinla
Offline
Last seen: 2 years 10 months ago
Joined: 2021-11-03 08:35
Posts: 3

Yes, only CAN H and CAN L

 

Here is a picture of the setup:

VESC.png

 

Thanks

frank
Offline
Last seen: 3 weeks 6 days ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847

Are they in current control mode? You could try the setup with all wheels in the air. 4 wheels down on the ground create a mechanical coupling and depending on the mode that can cause issues. If you use a speed controller the ESCs would start to work against each other, due to tolerances in the system. Basically one motor would try to speed another one up and that motor then tryies its best to work against that. Tiny differences then build up fast....

oyvinla
Offline
Last seen: 2 years 10 months ago
Joined: 2021-11-03 08:35
Posts: 3

They are in speed control mode, and when testing, all 4 wheels have been running freely in the air. 

frank
Offline
Last seen: 3 weeks 6 days ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847

Speed control will likeley cause issues with the wheels down. Did you detect each motor separately and did you use the latest BETA VESC-Tool?

https://vesc-project.com/node/2859

 

 

ewakegermanyhq
Offline
Last seen: 3 months 2 weeks ago
Joined: 2022-06-28 10:50
Posts: 3

Dear all, have you found a solution on that issue? I've got the same problem with 3 VESC parallel with CAN-Bus. I am using latest firmware 6.2 and CAN-Cables with 120 Ohm at both ends. 

KirkusMaximus
Offline
Last seen: 4 months 2 weeks ago
VESC Free
Joined: 2019-08-19 05:57
Posts: 11

I got four Flipsky 75/100s running over a breadboard CAN bus CANBusabout a month ago.   So it's possible.  Didn't do any real load testing but the motors didn't stutter.  Currently switching to using an Arduino to control the VESCs using VESCUART.  It also supports CAN control but the documentation is not great.  Sometimes just re-running the motor wizard will fix your problems.

https://github.com/SolidGeek/VescUART

Edit:  Note that the VESC devices have built in 220 ohm terminators, probably because they assumed you'd only have two devices on a bus so they'd be pre-terminated.  The problem is that with four ESCs a VESC Express, you're looking at 5+ terminations on the CAN bus.  Not sure if that's a problem or not but you may want to also try lowering the CAN rate.

ahanktcd
Offline
Last seen: 7 months 5 days ago
Joined: 2024-01-12 06:31
Posts: 2

I am having this issue with three or four flipsky 75100 and hoverboard motors in current mode wherls down, mostly at medium and up torque   Low seems smoother.  Do I need to remove some built in resistors?  They do all share the same battery.  Any other ideas?

ahanktcd