You are here

How to read MotorRPM from UART to Arduino

4 posts / 0 new
Last post
azobe
Offline
Last seen: 6 years 3 months ago
Joined: 2018-03-08 14:35
Posts: 2
How to read MotorRPM from UART to Arduino

Hi everyone, 

I've been struggling with how to read my BLDC motor RPM from my VESC 4.12 (hardware version) over UART serial onto my Arduino Micro. I installed both RollingGecko's VESC Uart Control Library as well as R0b0shack's VESC uart control library, yet I cannot figure out how to simply extract motor RPM from the serial feed from the VESC, assign it to a variable, and use that variable in my own function. 

Any help regarding this would be immensely appreciated! angel

Thank You!! smiley

Tilman Baumann
Offline
Last seen: 4 years 10 months ago
Joined: 2018-02-12 11:53
Posts: 49
stefcux
Offline
Last seen: 1 day 10 hours ago
Joined: 2018-04-27 09:19
Posts: 3

Hi, I am trying to get value from the master vesc to the arduino MEGA. The com is TX (vesc) to RX1 (arduino). Gnd is connected.

I tried sending a 2 1 4 64 132 3 0  to get back bldc values with the ino example but the reply is still “failed to get data”

I’m using VESC Tool 0.95, firmware 3.4, app is set to UART, PPM and UART, all baud rates are 115200.

The library installed is rollingGecko branch VESC 6.

may be the library is too old for the fw3.4.

thank you for your help

Pimousse
Offline
Last seen: 8 months 2 weeks ago
VESC Original
Joined: 2017-05-24 12:15
Posts: 101