A project that demonstrates how to communicate between the VESC and a STM32F4 discovery board using UART
C C++ Objective-C Makefile Other
Switch branches/tags
Nothing to show
Clone or download
vedderb Merge pull request #1 from sousapedro596/patch-1
Solves increment pointer bug
Latest commit 41e5078 Apr 7, 2017

README.md

This is a test project for UART communication between the VESC and a stm32discovery board. Almost the full interface of the VESC is implemented in the example, only firmware upload is missing.

Connect PB10 (TX) to RX on the VESC
Connect PB11 (RX) to TX on the VESC
Connect the grounds between the descovery board and the VESC.

To upload the project to a discovery board, just connect the USB cable to the programmer USB port and type:

make upload

Connect the USB port of the discovery board to a computer and run a serial terminal such as screen. Type help to list available commands. Only a few commands are implemented, but more can be added easily in main.c.

I have written a tutorial on how to use and port this code to other platforms here:
http://vedder.se/2015/10/communicating-with-the-vesc-using-uart/