FW 5.3 is out! Vesc Tool 3.01

Let’s use this thread to document our experience with the new firmware and vesc tool, share tricks & tips for programming your esk8, and raising awareness of any new issues people find!

As always: approach new firmware with caution!

From the vesc tool forum post:

The release is now done!

VESC Tool also has a major new feature, which is a scripting page. I will make a video about that, but it you want to start testing it now there are some example scripts included that show how it can be used.

Firmware changelog:

  • Fixed inductance measurement bug.
  • Speed tracker windup protection.
  • Phase filter support.
  • Phase voltage offset calibration.
  • Better current offset calibration.
  • Added power switch commands.
  • Synchronize observer state when running in open loop.
  • Force oberver state magnitude above 50% of flux linkage. This prevents the motor from getting stuck and ‘screaming’.
  • Observer global convergence update. Helps tracking the motor through 0 speed.
  • Added HFI start sensor mode.
  • Added TEMP_SENSOR_KTY84_130.
  • Major UAVCAN update. See: UAVCAN: Update drivers, add param get/set, add bootloader support by jmachuca77 · Pull Request #269 · vedderb/bldc · GitHub
  • Avoid numerical instability when mapping is done over a narrow range. See: Motor stutter when braking to a stop after triggering duty cycle current limit bug · Issue #262 · vedderb/bldc · GitHub
  • Added servo_out_enable appconf option, so that the PPM port can be used to control servos with the default firmware.
  • Better current controller windup protection.
  • Field weakening support (experimental, be careful and use at your own risk).
  • Limit hall sensor angle rate of change based on ERPM.
  • Added p_pid_gain_dec_angle parameter.
  • Low pass filter input voltage.
  • Dual hardware CAN-scan fix.
  • Use fast speed tracker for current controller.
  • Disable motor for 5 seconds after flash operations.
  • Added kill switch support.
  • Added process derivative term to position controller.
  • Added position PID-controller angle offset.
  • Configurable PID controller rate.
  • Added several AUX port modes.
  • Added configurable safe start modes.
  • Added fusion IMU filter.
  • Added constant torque PAS mode.
  • Correct scaling for resistance and inductance.
  • Fixed inductance measurement bug with f_sw > 30k.
  • Corrected inductance measurement algorithm.
  • Fixed max power loss calculation.
  • Better input current estimation.
  • Added raw sampled data mode.
  • Compensate inductance for motor saliency in observer.
  • Added MTPA mode based on measured current.
  • Faster overvoltage protection.
  • Added statistics counters.

VESC Tool Changelog:

  • Fixed simultaneous CAN FW upload when other devices (such as BMS) are on the CAN-bus.
  • Fixed configuration backup and restore over CAN-bus.
  • Added test version information to about dialog.
  • Added scripting page
  • Syntax highlighting (needs some work).
  • Recent files.
  • Example files.
  • Auto-completion tree (needs some work).
  • Run in widget, window or full screen.
  • Debug print output.
  • Toggle line comment.
  • Auto-indentation of line or block.
  • Search, highlight and replace text.
  • Only capture esc key for stopping the motor when connected.
  • Fixed FOC detect all no can when connected over CAN.
  • Added FOC wizard, setup data and profiles from mobile UI to desktop UI.
  • Added usage page to FOC wizard.
  • Added support for loading custom UI from firmware.
  • Dark theme.
  • Mobile UI refactoring.
  • Configurable data polling rates.
  • Better DPI scaling.
  • Configurable plot line thickness.
  • Mobile:
    – New CAN forwarding bar.
    – Setting to disable screen rotation.
    – New RT Data page and gauges.
    – Upload bootloader before firmware if firmware has bootloader erase support.
    – Added motor comparison tool.

Some tips for testing the phase filters:

Make sure that all offsets are calibrated with the voltage you are using. This can be done on Motor Settings → FOC → Offsets. Make sure to calibrate the offsets before running detection.
For motors with temperature sensors, make sure that temperature compensation is activated and that base temperature is set to what the motor had when detection was done. The compensation and base temp is found under Motor Settings → FOC → Sensorless. This should be done automatically when using the FOC-wizards.
The phase filters can be enabled and disabled for comparing their impact.

Also, I believe this firmware version includes fixes for the 2nd UART port on the Stormcore 60D+ and 100D ii

30 Likes

Remember that to download vesc tool you need to go to the vesc tool website
https://vesc-project.com

log in, and it will be under “Purchased files” at the top:

Untitled

You might need to re-buy it if yours has expired. Consider it a friendly reminder to donate to Benjamin for his hard work :slight_smile:

9 Likes

One of the bugs fixed in this release was strange behavior when duty cycle current limit start = max duty cycle. Now, duty cycle current limit start is a value RELATIVE to max duty cycle, not an absolute value, as the hint for it indicates :disappointed:

So if you used to have this value set at 85% before (Start reducing current at 85%, end up with 0 at 95%), then now you should adjust this value to 90% (90% x 95% = ~85%). The default is 85% for electric skateboards now, which results in decreased top speed if you leave it as is.

Remember that the reason you want to do this is because otherwise your current will sharply drop when you reach max duty cycle, and that could throw you off if you’re not expecting it! So you probably want to set this :slight_smile:

21 Likes

Vesc Accessory compatibility with FW 5.3

  • Davega: :white_check_mark:
  • Metr Pro: :white_check_mark: All functions including expert mode with new features work!
  • Robogotchi: :white_check_mark:

This is a wiki, please change :grey_question: to :no_entry_sign: or :white_check_mark: if you have tested.

18 Likes

@skate420 and robo team will get 5.3 operational soon. They used to update it for each beta, but it was kinda pointless as things kept changing.

I’ll test out davega tmr

6 Likes

I’ve put on about 20 miles on an ebike with field weakening and it’s pretty awesome. Brought the top speed up from 22mph (35km/h) to 30mph (48km/h) with 30-40A of field weakening. It uses a TON of power (33wh/mi without to 50wh/mi with FW over a 6 mile test each). It does take a second or so for the motor to start slowing down after you release the throttle which is new and can catch you off guard!

Obligatory safety reminder for field weakening on an esk8:

Other than that the UI for both Android and the desktop tool is much improved.

image
image

There is also a motor “comparison” tab which looks promising but I haven’t played with yet.

15 Likes

I’m having an issue installing the linux version, isn’t it supposed to be a .deb?

woah that’s a big issue, even worse for esk8 I suppose where you may be locked out of braking for a second

thank god, awesome work by the vesc contributors.

2 Likes

Yeah, @b264 had a great suggestion. Gear the board to like 10mph top speed and use field weakening to get to 15mph so you can test it out at speeds you can still run off the board.

I will say the esk8 outrunners needed a lot more amps to get much less speed compared to inrunner motors.

Actually @DavidC 's PSYCHOFRAME with those QS2000 IPM motors are actually amazingly efficient performers when it comes to field weakening. They almost require it.

8 Likes

yeah I was thinking just to use a 3s lipo which would limit my top speed to like 6mph :rofl:

2 Likes

is the linux version just not ready yet?

I ran it fine. It’s just an executable file, you can run it from the terminal like so: ./vesc_tool_3.01

4 Likes

I get “command not found”

Might be worth note that although this is a “stable release” it is not widely tested yet and anyone upgrading should do so with caution.

18 Likes

You have to cd (change directory) into the directory containing vesc tool after you have extracted it. Or just clicking on the file in a file browser might open it, if you have enabled “allow executing file as program” in its file properties.

Let’s move this “how to linux” convo to the noob question thread please.

4 Likes

yeah I already did, still nope

it seems there’s no 5.3 for my HW yet (MakerX DV6 Pro)

sigh, I was hyped to try new features.

Doesn’t it use one of the default (included) firmwares?

3 Likes

The DV6 Pro only needs the custom firmware IF you are going to be attempting to use up to 180a current. @tech.shit

If you don’t, then you can try out new stuff

3 Likes

well VESCtool 3.01 will not allow me to update the FW, it tells me there are no compatible FWs

also lots of lag and ANRs, VESCtool is kind of a pain to use now. it’s definitely not my hardware being slow on this gaming PC.

it’s been not responding on windows for 5 minutes now

1 Like