You are here

VESC Firmware

VESC 6 CAN Command and Telemetry Formats

Submitted by TerraHawk on Thu, 2019-11-21 20:29

I have looked all over and failed to find command and telemetry information in a convenient package. I dug through the VESC 6 firmware and extracted what I believe are the correct formats. 

I am looking for somebody to glance over my PDF and see if the formats look roughly correct. I will get to test  it next week to verify but if I have made an obvious error, it would be good to learn it now.

Thank you.

VESC6_CAN_CommandsTelemetry.pdf

Current sense SNA/SPA swapped. Where to adjust the code?

Submitted by shaman on Fri, 2019-11-08 14:51

I am using the integrated current sense amps in the DRV8301 in addition to a seperate low-side current sense ampin order to measure all 3 phase currents. I accidentally swapped the SNA and SPA traces on the DRV8301. TI had actually swapped the names of these pins for the newer DRV8353 and I made the mistake of assuming it was the same for the older DRV. So now I'm looking to compensate for this in the code. Does anyone know off the top of their head where in the code I can simply change the polarity of the measured current for these phases? 

What is the recommended way to implement a new encoder in the VESC firmware?

Submitted by toma on Mon, 2019-11-04 00:19

I am looking to implement a new absolute encoder via the hardware SPI interface.

For encoder details see: https://www.rls.si/eng/orbis-true-absolute-rotary-encoder

What is the recommended way to implement that:

  1. Add to the  "encoder.c" and "encoder.h" code
  2. Add the code in a separate file included/referenced in the "encoder.c" and "encoder.h" files
  3. Create a custom application

Thanks,

Toma

paltatech v0.2 HW not supported in latest firmware?

Submitted by samuelis01 on Sun, 2019-10-27 22:52

Hello, 

After really long time I have finally completed Paltatech v.02 logic board.  And I have troubles getting firmware for it.

I was following this guide: https://github.com/paltatech/VESC-controller

But I can not find any mention of paltatech v0.2 hardware in HW selection in conf_general.h.  Just axiom and other hw versions.

Custom App - Set Motor Speed

Submitted by CTSchorsch on Fri, 2019-10-25 11:22

Hi all,

i have a custom app, to control the motor for my underwater diving scooter. This scooter has a trigger button for run/stop and a rotary encoder to set power from 10% to 100%

At the moment i control the motor just with mc_interface_set_duty(0..1)

Is this enough ? or do i have to set something more ? maybe current ? all other apps do so much more :)

Thanks

Georg

Unable to flash firmware to VESC using OpenOCD

Submitted by Bayne on Fri, 2019-10-25 02:34

I was riding my skateboard the otherday when it suddenly lost power and wouldnt reboot. It now only displays a blue light when on (no green like my other working vesc). From my research I found that this could perhaps be a firmware or bootloader issue so I have been trying to redo it using a raspberry pi running openocd and the GPIO pins connected to the vesc.

Pages

Subscribe to RSS - VESC Firmware