You are here

Realtime Tachometer readings over UART

2 posts / 0 new
Last post
Davideo
Offline
Last seen: 1 year 9 months ago
Joined: 2017-09-19 15:38
Posts: 21
Realtime Tachometer readings over UART

*** Never mind, looks like there is something in my code that's creating the blockage ***

For my robotics project I would like to be able to have access to the vesc tachometer value.  I'm using Rollinggeckos amazingly helpful VescUartControl. As a first step I have my Teensy (arduino like microcontroller)  get a bldcMeasure struct from the VESC, then get the .tachometer value from the struct and display that on the little screen I attached (for now).

This works reasonably well, but when i do this every frame or every few frames the update rate is pretty bad. When i look at the realtime Tacho data in the VESC_Tool, it runs lovely and smooth, which makes me thing it is something i'm not doing right. Unless this is a limitation of the UART, in which case I would love to know too.

Any thoughts?

 

 

azobe
Offline
Last seen: 5 years 9 months ago
Joined: 2018-03-08 14:35
Posts: 2

Hi Davideo, 

I have been having issues with pulling rpm/tacho data out of uart as well, using an arduino micro. I am using rolling gecko's library but still havent been able to figure out what function to write which would pull such data out. Would you mind sharing the bit of your code that does this?

Thank You,