You are here

VESC 6.0 Data Logging?

12 posts / 0 new
Last post
josh
josh's picture
Offline
Last seen: 2 years 3 months ago
VESC Original
Joined: 2017-05-24 12:15
Posts: 92
VESC 6.0 Data Logging?

Hello,
I am trying to find the best way to log the info from my two vesc six controllers. What do you guys recommend?
Thanks!

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

Either using an Arduino with a SD Card breakboard, or a MODIFIED app with bluetooth.
metr.at app seems to work with the latest beta (hexacopter can tell you a bit more about this one).
Ackmaniac's app "VESC Monitor" is also now compatible (but not tested yet).

Necromenz
Offline
Last seen: 2 years 4 weeks ago
VESC Original
Joined: 2017-06-02 22:36
Posts: 37

Hi Josh,

Since the last Update (1.6.2) of the metr.at App it works very good. You only have to change the tx and rx Pin.
https://youtu.be/IlUW_rRT6Jc

sl33py
sl33py's picture
Offline
Last seen: 6 years 6 months ago
VESC Original
Joined: 2017-05-24 12:32
Posts: 28

Always worth tossing in the tried/true Eagletree datalogger v4. Simple inline, and can add sensors for temp/rpm/etc. etc.

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

Thanks for the replies guys. I will try out some of the apps. 

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

FYI, I did the beta testing of Ackmaniac's update for VESC 6 compatibility.

After some corrections, it works great now (Android only, but no need of special BT module).

Danny Bokma
Offline
Last seen: 2 months 2 weeks ago
VESC Original
Joined: 2017-05-24 12:11
Posts: 53

I noticed that the communication protocol changed (a little), has anyone a description / example on how to implement the latest version so I can update my Matlab code?

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

Check RollingGecko Arduino library, branch VESC 6 :

https://github.com/RollingGecko/VescUartControl/tree/VESC6

sl33py
sl33py's picture
Offline
Last seen: 6 years 6 months ago
VESC Original
Joined: 2017-05-24 12:32
Posts: 28

I finally re-worked my Eagle Tree v4 eLogger. Didn't like the unwieldy wires, so eliminated them. Now a simple XT90 in/out and much easier to drop inline to test a setup:
https://goo.gl/zVovUj

And some testing on my guest board, and GF's Vanguard i built for her:
https://goo.gl/Y6ou4z
https://goo.gl/bYowz1

Great info to know - a couple good hills around my house, one longer ride and one quick ride on her board. See consistently around 46-51A peak load. Both single setups and will test next with dual and VESC Six to compare.

vimi94
Offline
Last seen: 4 years 4 months ago
Joined: 2019-04-26 16:24
Posts: 18

Hi, 

Can anyone tell me how can I log data from VESC tool to my computer in excel file or something like that ? I would like to process and analyze the data like motor current, battery current, torque ,etc? Is there any script or software available online? I am using a Ubuntu 18.04 OS.

Thank You

e-nduro
Offline
Last seen: 6 months 2 weeks ago
Joined: 2018-11-25 20:05
Posts: 10

Hi, I wrote a DLL for my company's Dyno software. I can post some info (if you have some knowledge on C programming)

 

I used this data struct to receive and process the data message:

Data in in Big Endian format, and scale is placed at the right as a comment (1 to 1e6)

typedef struct 
{
  char start_byte; //=2
  char msg_len;    //=65
//contents ------
  char buffer_id; // (cmd) = 4 = GET_VALUES
  char temp_fet_filtered[2];   //10
  char temp_motor_filtered[2]; //10
  char avg_motor_current[4];   //100
  char avg_input_current[4];   //100
  char avg_id[4];              //100
  char avg_iq[4];              //100
  char duty_cycle_now[2];      //1000
  char rpm[4];                 //1
  char input_voltage[2];       //10
  char amp_hours[4];           //1e4
  char amp_hours_charged[4];   //1e4
  char watt_hours[4];          //1e4
  char watt_hours_charged[4];  //1e4
  char tachometer_value[4];    //1
  char tachometer_abs_value[4];//1
  char fault;
  char pid_pos_now[4];         //1e6
  char controller_id;
  char NTC_TEMP_MOS1[2];       //10
  char NTC_TEMP_MOS2[2];       //10
  char NTC_TEMP_MOS3[2];       //10
//--------------
  char CRC16[2];
  char end_byte; //=3
} VESC_FRAME;

e-nduro
Offline
Last seen: 6 months 2 weeks ago
Joined: 2018-11-25 20:05
Posts: 10

Did you get to log the data?