You are here

Communication with Vesc Tools

9 posts / 0 new
Last post
faheemift
Offline
Last seen: 3 years 6 days ago
Joined: 2021-02-09 16:01
Posts: 13
Communication with Vesc Tools

Hi, 

I am working on a project with Vesc. I can control motor with Vesc Tools. but now i need to create a GUI and from there i want to choose rpm/duty cycles ,etc. Do someone here know how can i communicate between my Gui code and Vesc Tools ? 

skyline1970
Offline
Last seen: 1 year 3 weeks ago
VESC Free
Joined: 2017-09-07 22:28
Posts: 232

a replacement gui out of vesctool?

faheemift
Offline
Last seen: 3 years 6 days ago
Joined: 2021-02-09 16:01
Posts: 13

Hi, yes i want to create a gui which will communicate with vesctool for example if i want my motor to run at specific speed i want to take that argument from user on my gui and run motor through vesctool. 

faheemiftikhar

CTSchorsch
Offline
Last seen: 4 months 4 weeks ago
VESC Free
Joined: 2018-07-13 09:55
Posts: 101

There is no need to communicate over vesctool. You can communicate with the vesc directly via serial protocol

faheemift
Offline
Last seen: 3 years 6 days ago
Joined: 2021-02-09 16:01
Posts: 13

Hi, Thanks for your answer. Suppose I have raspberry pi vesc and bldc motor. Do you have any advice for me on how to start controlling the motor without vesc tool? Because with vesc tool I can run the motor as fast I want. But when it comes to serial protocol, I have no idea how to start sending commands. Thanks again for your time. 

Regards

Faheem

faheemiftikhar

CTSchorsch
Offline
Last seen: 4 months 4 weeks ago
VESC Free
Joined: 2018-07-13 09:55
Posts: 101

There is an Arduino project you can use as starting point: https://github.com/SolidGeek/VescUart

But for the raspberry you have to write your own code, i think. Maybe there is a port somewhere... ask google

you can look at the vesctool code, too. it is not so difficult to build the messages for the vesc

 

faheemift
Offline
Last seen: 3 years 6 days ago
Joined: 2021-02-09 16:01
Posts: 13

Thanks i am going to work on it. 

faheemiftikhar

TheFallen
Offline
Last seen: 10 months 3 weeks ago
VESC Original
Joined: 2017-09-11 11:46
Posts: 222

I've been using a modified version of PyVESC https://github.com/LiamBindle/PyVESC on my Raspberry Pi chatting to VESCs.

beatrixena
Offline
Last seen: 3 years 2 months ago
Joined: 2021-02-20 09:09
Posts: 1

thanks for update