You are here

Getting started with bus control of the VESC

4 posts / 0 new
Last post
Invert
Offline
Last seen: 3 years 11 months ago
Joined: 2018-05-11 21:12
Posts: 1
Getting started with bus control of the VESC

I ordered a VESC hardware version 4.12 and I want to control it from another microcontroller. 

For this purpose I need current and speed measurements from the VESC, over any bus possible. Unfortunately my controller can't do CAN so I'm stuck with UART or I2C.

Is there any documentation how to get started on the busses? I am very proficient with CAN but haven't worked with the other busses that much.

Thanks!

Julian

cromoly
Offline
Last seen: 1 month 5 days ago
VESC Free
Joined: 2017-11-08 18:38
Posts: 24

https://github.com/RollingGecko/VescUartControl

This is VESC UART control from RollingGecko. There’s a VESC6 branch as well.

josh
josh's picture
Offline
Last seen: 2 years 4 months ago
VESC Original
Joined: 2017-05-24 12:15
Posts: 92

You could interface an SPI CAN controller with your microcontroller along with a CAN transceiver. CAN is the most robust way to communicate with the VESC especially if you are doing multiple. 

PM
Offline
Last seen: 5 years 10 months ago
Joined: 2018-05-31 18:33
Posts: 1

Is there any Documentation how to communicate via CAN with the VESC? What Messages does the VESC send and which Message ID I have to send to set the Duty Cycle?

I want to use another µC to control 2 VESC. Every VESC is connected to the µC with one CAN Bus.