You are here

2. Motor Setup Wizard

Submitted by frank on Tue, 2017-10-03 19:49

Configuration of your VESC® or VESC® based ESC using the VESC®-Tool Software.


In this tutorial we will configure a genuine VESC® motor controller in combination with a BLDC motor.
We will run the motor in FOC mode and we will make use of Hall sensors.

Make sure to use the latest VESC-Tool version!
Download from http://www.vesc-project.com/vesc_tool


Vesc-Tool_MSM_intro


Vesc-Tool_MSW_wiring


Connect your VESC® to your computer using a mini/micro USB cable.

Mini USB is used for HW 4.xx only. Some cheap micro USB cables are designed for charging your
phone and will not work properly! Try another cable if you experience any issues.

Run the VESC®-Tool software.


Vesc-Tool_MSW_connect


Vesc-Tool_MSW_start


Vesc-Tool_MSW_default


VESC-Tool MSW_choose FOC


Now we get the following options:

FOC = Field-Oriented Control
Advanced control mode (sinusoidal, silent, more efficient,
better motor sensor operation).
May cause damage to 3rd party hardware!

BLDC = Trapezoidal Control
More simple control mode (block commutation), noisier, hall-sensor operation
less accurate at this stage. Safer for operation of 3rd party hardware.

DC = Only for DC motors. Use phase wire A and C only!

VESC-Tool MSW_choose FOC


Vesc-Tool_FW_current limits warning


The following explanations will help you to configure your current limits correctly:

Motor Current Max: The maximum current your motor can handle continuously (Ampere). Please refer to the motor specifications of your motor. You may use lower values to de-power your setup.
Our motor can handle 50A, but we will only set it to 30A to get started. You can boost your settings once you feel comfortable. A safe approach towards higher values is highly recommended (e.g. start with 15A only).
Hint: This value can be greater than the Battery Current Max value, resulting in a higher motor power output at part throttle. At max throttle the Battery Current Max is the limiting value if set lower than Motor Current Max
Motor Current Max Brake: The maximum current output you allow your motor to produce when operated as a generator. Electric vehicles may use the motor as a brake, generating energy when slowing down the vehicle. The energy produced will be stored in the battery. In this tutorial we will set the value to -25A to get started. The value should not be higher than the max. continuous current specification of the motor.
Hint: Higher values will result in stronger brakes if the Battery Current Max Regen settings allows the storage of the current generated.
Battery Current Max: The maximum continuous current your battery is rated for. Please refer to your battery specifications for safe settings. LiPo-pack batteries are usually C-rated. A 5800mAh, 25C rated battery can handle 5.8A x 25=145A max. Manufacturers often overrate the batteries and cutting the value in half is recommend. We will use 72A max for safety reasons.
Hint: Since our Motor Current Max is set to 30A, we could use 30A for the battery as well.
Technically there is no reason to use a higher value than the Motor Current Max.
Battery Current Max Regen: The maximum current you allow the VESC to push towards your battery or battery management system (if incorporated in your system) when braking. This value should not exceed the maximum charge current rating of your battery or capability of your battery management system. Our battery is 5C rated for charging. We use a 5800mAh battery.
5.8A x 5 = 29A max. charge current.  Again: Better be pessimistic with those values! We will set it to -20A.

Hint: Since this value is lower than the Motor Current Max Brake (-25A), the firmware will limit the ampflow towards the Battery to -20A, regardless of the higher value we specified for Motor Current Max Brake (-25A). In consequence our maximum motor brake force is limited by the lower Battery Current Max Regen value.

Vesc-Tool_MSW_current limits set


Vesc-Tool_MSW_battery cutoff_warning

Now we will configure your battery cutoff voltage.

If you discharge your battery below a certain voltage, it will get damaged permanently. LiPo packs or Lithium ion Batteries usualy operate between 4.2V and 3.1V per cell. Do not allow your system to discharge them beyond 3.1V per cell! For this reason the VESC will measure your battery voltage and will start to softly cutoff the power at 3.4V per cell (Battery Votage Cutoff Start) and it will perform a hard cutoff at 3.1V per cell (Battery Votage Cutoff End).

You can also set custom values if your cells have different ratings.

Battery Voltage Cutoff End = number of cells in series x minimum cell voltage

VESC-Tool MSW_battery cutoff_set values


Next step is the choice of motor sensors

Sensors help the VESC to know the rotor position in refenrence to the copper coils. This way the motor can perform a relatively smooth startup from 0 RPM. If your motor features sensors you should make use of them. At higher RPM, the VESC will use back EMFs to calculate the rotor position. The RPM for switching to back EMF operation can be defined later.

No sensors: without motor sensors the motor needs to turn a bit, so the VESC can calculate the rotor position from the back EMF current flow that the magnets will induce into the copper coils when they rotate around the  the motor stator. Startup from 0 RPM is possible but a bit shaky.

Hall sensors: A transducer that varies its output voltage in response to a magnetic field. Usually a set of three sensors are acurately positioned inside or outside the motor to roughly determin the position of the rotor.
Commonly used, not very precise, good enough to guarnatee a smooth startup of a vehicle from standstill.

AS5047 Encoder: This is a chip sensing the magnetic field of a diametrally magnetized magnet, attached to the motor shaft. The precision is very high (14 bit) and allows very accurate determination of the rotor position.

ABI: Output signal of an incremental rotary encoder (mechanical, optical or magnetic).

Our motor has Hall sensors, so we will choose Hall sensor operation.

Vesc-Tool_MSW_select sensors


Next step is to measure your motor parameters

For the best possible result, do the detection without attached drive train, propellers etc.

Every single motor is unique and the VESC needs to know certain parameters to run the motor. The VESC needs to know the motor resistance, electrical inductance and flux linkage (λ). From these basic values other values can be calculated that are essential for the motor operation. So that‘s what we will do now.

Step 1:measure RL
The motor will make a loud humming noise

Step 2:measure λ   
The motor will spin up. Make sure to disassemble propellers or lift up your vehicle from the ground or take any preparations necessary to allow your motor to spin up freely.

Step 3:Apply values

Vesc-Tool_MSW_motor parameter_01

Vesc-Tool_MSW_motor parameter_02

Vesc-Tool_MSW_motor parameter_03

Vesc-Tool_MSW_motor parameter_04

Vesc-Tool_MSW_motor parameter_05


Vesc-Tool_MSW_sensor calibration_01

Make sure that your motor can rotate freely, since the motor will start to turn slowly now.

Vesc-Tool_MSW_sensor calibration_02

Vesc-Tool_MSW_sensor calibration_03


Vesc-Tool_MSW_finish


Congratulations, you have finished the Motor Setup Wizard.

Please continue with the Input Setup Wizard.

Comments

jackryan2408's picture

 

Balancing university deadlines and technical subjects can be really stressful, which is why I rely on Rapid Assignment Help UK for reliable Help on Assignments. Their team of experts makes even the most complicated topics manageable. For engineering students like me, their Engineering Assignment Help UK is a lifesaver. They provide well-researched, plagiarism-free solutions for projects, case studies, and problem-solving assignments. The explanations are clear, and the work is always delivered on time, which has significantly reduced my academic stress and helped me improve my grades. Highly recommended for anyone struggling with coursework!

As a student, you always try hard to score good grades in academics. However, achieving excellence in study and academic tasks is not easy for everyone. The complex topic and academic demands make the writing process more difficult for students. For any type of difficulty in the study and academic project, you can get Assignment help online in Australia from experts. Professional experts are highly trained and experienced in tackling complex projects or topics. They provide conceptual detail on the topic in a simple and effective manner. Their support allows students to acquire a better understanding of the topic and learn ways to tackle questions or subject problems efficiently. It helps you to perform well in exams and academic tasks. Getting professional assistance in a writing task, you can save time and effort to focus on other things. It helps you enhance learning and secure good grades. 

 

Epson is a leading name in printers, scanners, and imaging solutions. When you face issues like installation errors, poor print quality, or connectivity problems, how do you reach Epson support? This guide outlines the direct methods to contact Epson Customer Care — via phone, live chat, email, or social media — and offers tips to make the conversation efficient. Be prepared with your model and serial number, warranty status, and clear descriptions of the issue. Also learn when basic troubleshooting at home helps, and when it’s best to talk to a care representative to resolve your problem fast.

 

https://sites.google.com/view/epson-customer-service-/home

Basketball Stars Thank you for sharing this comprehensive VESC motor setup guide! I've been working with BLDC motors recently and this tutorial is incredibly helpful, especially the detailed current limit explanations. The emphasis on starting with conservative values and gradually increasing them is solid advice - I learned that lesson the hard way with my first build!

"Nice to be visiting your blog again, it has been months for me. Well this article that i’ve been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, i am for the first time here. I found this board and I in finding It truly helpful & it helped me out a lot. I hope to present something back and help others such as you helped me.먹튀
 

 

Do you need assistance managing your online classes? Reach out to takemyclassforme.us.com! We provide expert academic support in all subjects, including math, science, and business. Specifically, our qualified tutors handle your coursework, quizzes, exams, and assignments with assured outcomes. To help you achieve academic success, we provide 100% confidential services at competitive prices. No matter whether you are a busy professional or an overburdened student, we make studying stress-free through our 24/7 reliable guidance. Simply say, “Take My Class For Me”, and let our experienced tutors handle the rest.

This is a clear and practical guide on setting up the VESC® motor controller — great work, Frank! ⚙️ The step-by-step explanation makes it easier for enthusiasts and engineers to configure their BLDC motors efficiently. For students or professionals working on similar technical projects and needing help documenting their process, assignment writing services UK can be a huge time-saver, ensuring your reports and analyses are well-structured and polished.

assignment writing services UK

Having trouble logging into Crypto.com? Discover solutions for common login issues like password errors, 2FA problems, and app glitches. Learn how to reset your credentials, update the app, or contact support. This quick guide helps you fix login problems and regain secure access to your Crypto.com account on both mobile and desktop platforms. Crypto.com login issues | Crypto.com login issue

When it comes to labor management solutions, Global 110 LLC is an example of the best  Workforce Management Software . We provide feature-rich, user-friendly, secure hosted solutions for contact centers of all sizes and are dedicated to quality. Our platform, intended to improve efficiency and streamline operations, combines technology with industry knowledge. Since we at Global 110 LLC are aware of the constantly changing needs of contemporary contact centers, our solutions are designed to accommodate new demands easily.

Take your coaching to the next level with Coach Campbell, Football Coaching Books—trusted by new and veteran coaches alike. Whether you're aiming to be a head coach or assistant, these books offer real insights, strategies, and motivation to help you succeed. Known as some of the Best Football Books  out there, they're packed with practical tools for building winning programs. Don't miss your chance to grow with Campbell Football—your go-to source for top football books and coaching success.

Midnight Cry Evangelistic Ministry , founded in 1977, is a Christ-centered Evangelistic Center Church with a mission to reach the lost, strengthen believers, and prepare hearts for the Lord's return. Through powerful preaching, dedicated Church Ministries, and a welcoming Church Hospitality Ministry, we create a place where faith grows and lives are transformed. Rooted in love, service, and truth, we invite you to join us in sharing the Gospel, building the body of Christ, and answering the Midnight Cry.

At 7Stami, we're dedicated to empowering women through wellness, support, and career development. Our Women's Wellness Center offers holistic health services tailored to women's unique needs, while our community health and wellness programs promote balance and connection. We provide guidance on careers for women, host rejuvenating wellness retreats for women, and create safe spaces where Women with Women can grow and thrive together. Whether you're seeking healing, purpose, or professional direction, our women's center for health and wellness is here to support every step of your journey. 7Stami is where women uplift women—mind, body, and spirit.

Thanks  for every other informative site. The place else may just I get that kind of information written in such an ideal means? I have a venture that I’m just now operating on, and I have been on the look out for such information. I also wanna talk about the best full spectrum cbd oil.

Wow, this really hits home and makes me reflect on my own experiences with such thoughtful insights. It's incredibly moving and thought-provoking. For more engaging experiences, check out Poki for a great selection of free online games.

This tutorial on configuring a VESC motor controller is incredibly detailed and helpful! I especially appreciate the clear explanations of the different control modes like FOC and BLDC, along with the guidance on setting current limits and battery cutoff voltages. The step-by-step instructions for measuring motor parameters are also really useful for getting the best performance. If you're looking for a quick and easy way to visualize your project, check out Free AI Image Generator By Nano Banana Pro. It's great for generating images based on text prompts.

sprunki mods's picture

What a great essay.

earn to die This article piqued my interest. It provides the reader with the most important key information and makes a strong argument. You can refer to

Slope Run to make your argument even stronger!

Deerfoot Casino is very approachable for Canadians who are new to online gambling. The interface is intuitive, and they provide clear instructions for each game. I quickly learned the basics of blackjack and roulette. For newcomers in Canada, Deerfoot Casino makes starting easy and enjoyable.

In this tech-driven world, taking online classes has become common these days. Many students who are struggling with understanding the subject and completing their course seek online class assistance. There are numerous services that offer online classes to help students. Choosing the right service is the biggest hassle for everyone. You can take my online class for any subject that you find hard to understand. Prefer a reliable service by checking the ranking and rating. Ensure they have a team of experts in all academic disciplines, and they possess higher qualifications and relevant experience. Choosing a reliable learning platform, you can access the best support in the educational process that ensures better comprehension of subjects and success in your studies. Check the pricing factor while seeking a professional online class and ensure affordability in learning. 

Log in to your PayPal account to securely send and receive money, pay for purchases, and manage your financial transactions online. Access your balance, track payments, and update account settings with ease. Enjoy a fast, reliable, and safe platform trusted worldwide for convenient money management anytime, anywhere. Paypal Login | Paypal Login

The VESC Motor Setup Wizard is highly technical. It requires technical Precision in setting current/voltage limits and intense Focus on hardware specs. Successful configuration also demands parameter Agility for optimal performance. Hone these skills in the video game Slice Master.

Pages