You are here

Controlling multiple VESC over SPI

3 posts / 0 new
Last post
ttufuor
Offline
Last seen: 3 years 6 days ago
Joined: 2019-10-01 05:52
Posts: 2
Controlling multiple VESC over SPI

Hi,

I am using the VESC 4.12 hardware for a project. For the project I am using 4 VESCs and all of them receive their commands from one central computer/controller. I am not using CAN because of the data rate I require and the speed of my control loop. 

I am trying to control it with SPI. On the 4.12 schematic (BLDC 4), the comms header (P3) has SPI pins available. What do I need to do to control the VESCs over SPI. Can you tell me how to go about this, and can you confirm if the SPI logic level is 3.3V or 5V?

Thanks

 

 

ttufuor
Offline
Last seen: 3 years 6 days ago
Joined: 2019-10-01 05:52
Posts: 2

Bumping this up again. Can anyone help me control my VESC version 4.12 over SPI?

Danny Bokma
Offline
Last seen: 3 months 1 week ago
VESC Original
Joined: 2017-05-24 12:11
Posts: 53

The SPI on de VESC side is a master interface, so you cant approach it as a slave. The levels are 3.3V. 

You best bet is CAN bus control, can be quite quick.