How To Configure Motor

A basic Cheat Sheet / Guide to config a Hypercore motor (similar to Superflux?) in VESCtool 6. This guide discusses motor values to be adjusted, it does not replace basic understanding of settings. This guide shows desktop VESC Tool, but it can be used for the APP version.

This is a written version of Dado’s Motor Config video with additional information, I recomend you watch it at least once. VESC 5.3 Hub Motor Configuration using the Wizard - YouTube

Always back up MTR and APP Config to maintain a base if you need to go back. If this is your first motor Config, it maybe helpful to load a working MTR Config first.


Set up Motor in UART (App Setting - General - UART- Write)

1. Welcome & Wizards - Set up Motor FOC
Load Default Parameters = No
EUC

Large Outrunner
Max Power Loss = 400W
Open Loop ERPD = 700
Sensorless ERPM = 2000
Motor Poles = 30

Motor Selection = Yes
Battery Type = LIIION 3_0_4_2
Battery Cells = Stock XR (64V) =15, TORque Pack (80V) = 19, CBCSO (84V)= 20
Battery Capacity = StockXR, TORque Pack, CBCSO or Custom?
Battery Settings = OK

Direct Drive = Checked
Wheel Diameter = 280 (for speed calculation)
Motor Poles = 30

Run Detection (Allow wheel to free spin)
Correct Results Range. Consider re-running Motor Wizard if you get number drastically different than below.


2. MOTOR SETTING - GENERAL (LEFT MENU):

GENERAL TAB:
Invert Motor Direction = Only if motor runs in reverse

CURRENT TAB:
Motor Current Max = 100A - 120A
Motor Current Max Brake = 100A -120A
Absolute Max Current = 180A+
Battery Current Max = 30A (you can use 50-60A for Molicel 2p packs, like TORque pack)
Battery Current Max Regen = -30A (you can use 50-60A for Molicel 2p packs, like TORque pack)

VOLTAGE TAB: (Dependent on Battery)
Battery Voltage Cutoff Start = 2.7V per Cell (54V for 20s battery)
Battery Voltage Cutoff End = 2.5V per Cell (50V for 20s battery)

TEMPERATURE TAB: (Activates Pushback for Overtemps))
Motor Temp Sensor Type = NTC10K@25C
Acceleration Temperature Descrease = 0% (VERY IMPORTANT!
MOSFET Temp Cutoff Start = 75C
MOSFET Temp Cutoff End = 80C
Motor Temp Cutoff Start = 80C
Motor Temp Cutoff End = 90C


3. MOTOR SETTINGS - FOC (LEFT MENU)

GENERAL TAB:(Crunch)
Motor Resistance (R) = 87 - 105
Observer Gain= ½ value (0.6 - 0.7)

**HALL SENSORS TAB:(Crunch) - we don’t use ENCODER **
Sensorless ERPMv = 2000
Hall Inerpolation ERPM = 200/250

FIELD WEAKENING TAB: (Personal - See Tune Cards)
Max Start= 30A
Duty Start= 50% (some people prefer 65% or more)
Ramp Time= 1000 (some people say 500 is better)
Q Axis= 2% (don’t touch!)


Motor “Crunch”
Follow this guide to troubleshoot. Reminder to make one change at a time. Motor crunch when braking hard

Common Causes in this Order:

  1. Observer gain (FOC-General) = HALF of wizard value
  2. Sensorless ERPM (FOC-Hall Sensors) = 2000
  3. Sensor Interpolation ERPM (FOC-Hall Sensors) = 200
  4. Zero Vector Frequency (FOC-Advanced) = Increase up to 30 max
  5. Motor Resistance (FOC-General) = 85 to 105

Backup and save Motor Config when successful.
*Comment if you see any errors or something needs to be added

5 Likes

I noticed a few items that might be worth updating to more sensible defaults or at least be updated to provide a newcomer with more details. I generally take the approach that these tutorials should cater mostly to those who know very little about this stuff and then they should be able to adjust the values as they begin to understand the settings better.

To be fair I still consider myself to know very little :slight_smile: and I might be wrong in my suggestions/questions, but I will outline them below just in case they are valid.

I have been able to go ahead and set “Sensorless ERPM = 2000” here in this section. I do notice it is updated later in the guide so it is ok, but might be worth just adding a note that it gets updated later or that they can try it with “2000” from the start. I think @surfdado said in a video that on older FW/Tool versions he had better luck running the config with different values, but don’t quote me on that.

I believe “Battery Type” should be set to “BATTERY_TYPE_LIION_3_0__4_2” in most cases

Could this be updated to reflect that “Battery Current Max/Max Regen” will need to match the user’s battery specs? I could see it being confusing for someone and them possibly pulling more amps than their batteries are designed for. I think a more safe value to default to would be “30A”, but then adjust based on your battery pack/cell ratings?

Is this is a bit high for Motor Temp Cutoffs? I feel like I’ve most commonly seen “Motor Temp Cutoff Start = 80C” and “Motor Temp Cutoff End = 90C”. My only concern here would be damaging the motor, but I must admit I don’t know for certain at what temp the motor would actually sustain damage.

On this one it’s more of a question… I have no clue on the correct setting here… but all of mine are set to “NTC 10K at 25C”. Is mine set wrong? if so I need to get that fixed, but I’m probably going to ask around elsewhere as well to get confirmation as I’m unsure.

Thanks! settings have been corrected in original post. I’m not sure about “Motor Temp Sensor Type = NTC100K@25C”. I’m going off of Dado’s video.

What you have (NTC10K) is default and it doesn’t appear to make any difference? Maybe Dado will chime in on this.

1 Like

What does loading a motor config do for you versus just running the wizard?

I don’t see a issue using a good motor Config if it works, just change the values to match your battery. Every motor is a little different so I feel it’s best to run the Wizard.

I did have a difficult motor that had problems with the wizard. Installing a good motor Config and then running the wizard seemed to help although I can’t confirm it actually made a difference. Maybe someone else can chime in

1 Like

Ok. I’m building a onewheel from scratch with a ubox 100 + superflux so do not have a motor config to start from. Sounds like, as I would assume, the output of the motor wizard is a motor config, i.e. loading a motor config is superfluous in my case?

Yes… you are building a MTR Config from scratch so you don’t need to back up or flash a XML… following the guidelines from The wizard should work, but the superflux numbers maybe a little different.

2 Likes

Uploading a superflux motor detection results as they differ considerably.