a complete VESC walkthrough1 month ago | 0 Replies
Many new users may find VESC confusing or not understand what they are doing. I will try to break down this barrier and bring together all VESC information from this forum.
First, you need to understand that VESC is a speed controller, which is a bit like the brain of an electric skateboard. It is the middle man between your input through the controller (also known as the transmitter/receiver system) and the motor.You should also understand some basic terminology. I’ll give you an analogy so you can try to visualize it.Voltage — think of it as how many amperes a muscle has — think of it as how much energy you can send to that muscleyou can have huge muscles, so moving something with your muscles uses less energy than someone with smaller muscles (i.e. high voltage, low amperes) (a good example is running for 10 seconds with only 15 amperes per motor)eitherYou can have small muscles, which means you need more energy just like big muscles. (Low voltage, high amperes) (A good example is 6s and 120 amperes per motor)Now that you have the background on voltages and amperes, let’s look at VESC.
This speed controller has the ability to do many things that normal RC speed controllers cannot. One is to limit the number of amperages from the battery to the motor. A simple way to burn a motor is to send it more current than it can handle (usually while climbing a mountain). This means that you should never burn a motor with VESC (unless you set this limit too high). There are many other protection can be set by limiting, such as your hope to achieve the highest temperature of vesc (so you won’t burn speed controller), the minimum and maximum input voltage (so you can’t pull your battery voltage is lower than the safety limit, this will make your battery brick) and maximum regenerative interruption ampere (protecting the cell from back to too much ampere).
The change of VESC
There are many different VESCs on the market, and none are equal. Few people actually use Vedders BOM on t-shirts, creating their own mods to improve stability. Therefore, buying VESC 4.12 from one supplier is different from VESC 4.12 from another supplier.
On top of that, some vendors, such as Ollin Board Co (aka @Chaca), offer direct FETs, which are thinner and emit better heat.
Enertion goes its own way with VESC-X (now called FOCBOX, read on for more information), which appears to be based on the VESC 5 design. Again, direct FET is used, and the maximum amperage rating is much higher.
VESC 5 was used on the as-yet-unreleased VESC 6, although existing prototypes showed that it increased the maximum continuous current and increased FOC stability.
VESC 4.12 can run continuously for 27 amperes before entering the core. VESC 6 can run continuously for 50 amperes before entering the core.
The VESC-X is currently unknown, but it is said to have an amplifier rating higher than VESC 4.12.
VESC 6 May be a good choice for really powerful single or dual drive boards, but is an overkill for most people. At this point, it looks like a better fit for an e-bike than an e-skateboard, especially considering the expected price tag.
The difference between VESC-X (i.e. FOCBOX) and VESC 4.12 (or VESC version below)
Vesc-x runs on a different tool than other VESC’s. Therefore, you should download them from the Enertions site.
For Windows, click here 1.1k.
The latest VESC changes
Recently, with Trampa’s help, Vedder registered a trademark for VESC. This means that only Trampa can sell VESC again under the VESC name. As a result, the company was forced to change the name of its VESC-based speed controller.
Vesc-x is now renamed FOCBOX
For ESK8.de 439, VESC 4.12 is now referred to as Esk8 Controller
For Torqueboards, or DIyElectric, VESC 4.12 is known as Torque ESC
Download the BLDC tool
Now, the first thing you should know is that when you get VESC, you need to find the right BLDC tool. MAC/Linux/Windows versions are available, but you will need the BLDC tool with the same firmware that is pre-installed on VESC. If you are not sure which firmware is pre-installed on your VESC, please ask the person you purchased it, or download any version, when you try to connect your VESC to the BLDC tool, you will receive an error message telling you which version of the firmware you have. Read the following for instructions on connecting to VESC.
You can update or downgrade the firmware to match the version of the BLDC tool you have, but if you really can’t find the right tool, this should be the solution of last resort. You can blow up the DRV chip on your VESC by making the wrong firmware update, which is easy to mess up and will make your VESC an expensive piece of paper.
Please wait to download BLDC for Mac or Windowsl. No link at this time.To download the BLDC tool for Ubuntu, click 366 here and follow the instructions in the README file.For information about upgrading the firmware, click here 6.
Now that you have the right BLDC tool, you can connect THE VESC to a USB type B cable to your VESC and the other end to your computer. Now is a good time to discuss powering VESC for configuration. Both Vedder (who designed the speed controller) and OnLoop (a well-known vesC seller) recommend using lab-rated stabilized power for the duration of the configuration. I use one I bought on Amazon for about $45. However, this may not be necessary. Chaka, another well-known VESC seller, suggests that you only need to do this during the first power-on, and his is powered on before delivery, so there is no need for his. You can read more about the Chaka Low power recommendation here. 2. If the VESC has never been powered on before, it is most important to use a regulated power supply. For those who buy VESC from Torque Borads, Enertion, Axle, ESK8.de, any of the famous VESC sellers, this is not a problem 439, or tea card.
Use the BLDC tool
Now that you’ve powered it up and physically connected, it’s time to make a software connection through the BLDC tool. Select the correct port (not the Bluetooth port). You should only have 2 options, Bluetooth and another. Click Connect. In the lower right corner, you should see the green status of the current firmware version. If the firmware on your VESC does not match the version of the BLDC tool you have, you will see an error message. You can resolve this mismatch by downloading an older version of the BLDC (the one that matches your firmware version) or by refreshing the firmware (the first option is more secure), as shown in the link above.
For more specific subdivisions
This is 44 how to set the receiver and brake
Here’s 27 more information on setting up regenerative rest
This is 9 how to set up the Nyko Kama Wii Remote
This is 17 how to set up dual motors through the CANBUS port
This is the explanation of the 31 difference between duty cycle and current control
This is an explanation of 14 how motion detection is performed
This is 25 information about limiting the battery voltage
Please note that if you are configuring on a laboratory rate regulated power supply, you will not be able to control the motor after configuring the receiver and testing the motor. If so, your battery will give it a nudge and then stop immediately. This is because the power supply is not providing enough current to the VESC. To solve this problem, when you think your Settings are fine, test with battery.
Now that you have reached this point, you should now have working Settings that allow you to run the motor through the controller. In theory, this could be the end point for you, however, the last feature of VESC that separates VESC from other speed controllers is a mode called FOC or field-directed control.
You can run in FOC mode instead of BLDC mode. For more information on what the FOC pattern is, read 25!
For a comparison between BLDC and FOC, read this article 784!
To configure FOC mode, Vedder put together a YouTube video of his own, linked to This Thread 3.
Watt control mode
Community member @ackmaniac modified the BLDC tool and VESC firmware to add a mode called Watt Control. Basically, instead of adjusting amperes as in control mode, it controls watts, which takes into account voltage. As a result, you can reduce the negative impact on SAG performance.
To read more about it and download it, read his topic 7 here.