You are here

Use Vesc-Tool to run two motors simultaneously via CAN

3 posts / 0 new
Last post
microlomaniac
Offline
Last seen: 2 years 10 months ago
Joined: 2021-01-22 12:53
Posts: 2
Use Vesc-Tool to run two motors simultaneously via CAN

I have a working setup with two FSESCs connected via CAN. Normally I use the UART app and an ESP8266 connected via UART to one of the ESCs to control both motors, which works swimmingly.

I would like to work on the PIDs though, so I have made the ESP8266 a simple Wifi-UART bridge to be able to connect with VESC-Tool.

I can connect fine, and it's just as if I was connected via USB. I can see both ESCs, and I can control both, but I can't seem to find a way to control both at the same time.

 

MY GOAL: set both to the same RPM and watch the realtime graph.

Any ideas? Thanks a bunch!

microlomaniac
Offline
Last seen: 2 years 10 months ago
Joined: 2021-01-22 12:53
Posts: 2

I myself had an idea on how to achieve my goal:

Since the UART port of the second FSESC is still available, I will just use a second ESP8266.

That way I will have one ESP8266 connected to ESC1 for receiving control signals (via OSC in my case) and distributing commands to both ESCs, and another ESP8266 connected to ESC2 as a Wifi-to-serial bridge to which I can connect with Vesc-Tool.

I don't see a reason this wouldn't work, but unfortunately I won't be able to try this setup out until October.

spacewalker
Offline
Last seen: 11 months 20 hours ago
Joined: 2020-06-10 12:30
Posts: 29

why not to control vesc over CAN too ? 

Martin