You are here

VESC Firmware

How difficult would it be to add code to read an external EEPROM, and deactivate/activate depending on a value

Submitted by PaulMakesThings on Thu, 2021-11-11 09:55

I'm working on something for a quick proof of concept. And since I need to customize the code for a BLDC driver I've gotten two VESC based drivers to work with.

I was wondering, how hard would it be to use one of the ports to read an EEPROM, and if a given value is read, don't run, otherwise run as usual. That's all I need it to do. But I don't have the dev toolchain set up. Nor is the same EEPROM library likely to work. Since time is limited I'd just like to feel out how practical this is.

Here is an example of how I read the needed code on Arduino

Which firmware do I need

Submitted by Luka-Zagar on Tue, 2021-10-19 22:24

Hello guys,

I would appreciate some help :). I got a VESC from my uncle and I would like to use it with my custom electric skateboard. Pictures below.

The software is telling me to update the firmware, but I don't know which hardware version it is (is it possible to figure it out).

The second question is: The VESC is 12S tolerant or am I wrong? (is there a chance to get a datasheet)

Thanks in advance.

Green LED on older VESC, v4.12?

Submitted by smith2e7 on Mon, 2021-10-18 17:42

Hello. I have nice operation of my VESC 4.12? from China when I operate in PWM mode and connected to a Futaba R617FS receiver. 

I used the VESC Input Wizard to calibrate the VESC to the pulsewidth range of the R617FS.

Now I have built my own electronics to generate RC pulses, for use instead of the RC receiver.

My electronic assembly makes pulses just like those of the RC receiver: same pulse period, same range of pulsewidth.

The VESC responds to the signals from the RC receiver and it gives a very bright green LED.

Connection to MTSVESC6.0 Mini

Submitted by Paul Tingault on Thu, 2021-10-07 13:31

Hello,

I'm a VESC beginner and I have bought a MTSVESC6.0 Mini from Maytech but I can't connect it to VESC tool. I haven't found installation tutorial about this model of ESC.

I have a STlink V2 to link the ESC and my computer but VESC tool  don't recognize my ESC.

Which pins have I to connect and how start with this model ?

Thanks in advance for your help,

Paul

 

 

 

Encoder Index Interrupt Code

Submitted by dylanm on Sat, 2021-09-18 00:05

Hello,

Is there an issue in the IQR_HANDLER for the encoder index pulse? https://github.com/vedderb/bldc/blob/be439a2a55ae5b1ba8cce8ad6b0da2d8046....

CH_IRQ_HANDLER(HW_ENC_EXTI_ISR_VEC) {
    if (EXTI_GetITStatus(HW_ENC_EXTI_LINE) != RESET) {
        encoder_reset();

        // Clear the EXTI line pending bit
        EXTI_ClearITPendingBit(HW_ENC_EXTI_LINE);
    }
}

how to build new bin code on win10

Submitted by yiannis on Wed, 2021-09-15 21:05

Hi i want to make a Vesc drive similar to Vesc_75_300 but with less amperage, i know what change need to do in firmware, but i do not know how to build this 

new bin code in win10, i see one video on youtube https://www.youtube.com/watch?v=daGGrAplBwg&t=990s but is in ubuntu.

I have download the eclipse but i dont know if can build bin code from there, i do not use ever before.

Custom firmware workflow

Submitted by BDJ on Fri, 2021-09-10 13:50

Hello!

 First thank you all for the job made for VESCs

I'm new to VESC and I would like to make a new custom firmware for my application. But I'm not sure about the the workflow. And I also struggle to rewrite appconf and mcconf files. 

What I planned to do is compile a new firmware using the makefile after modifying appconf_default.h, mcconf_default.h and app_adc.c where I need to make modifications. 

Then flashing the firmware  .bin file using VESC tool custom firmware function. 

Flipsky ESC 6.6 - How to Compile? [fixed]

Submitted by hoeken on Tue, 2021-08-31 03:33

I'd like to try a few changes to the firmware, and I am using a Flipsky FSESC 6.6.  It showed up in VESC Tool as hardware '60' and works fine with the default firmwares.  I've checked out vedderb/bldc from github, updated it to the regular hw60, and then compiled it.  It uploads to the board fine, but it doesn't work.  Is there something I'm missing here?  I'd like to figure out the workflow to get a firmware exactly like the existing v5.2 release before trying anything fancy.  Here is my git diff from the master branch of vedderb/bldc.  Thanks in advance for any help!

Control System of VESC

Submitted by mm_iem on Wed, 2021-08-25 14:52

So I'm new to the VESC world. But maybe some of you guys could help me out with a little information.

I have seen the VESC Git repo: https://github.com/vedderb/bldc

But can someone tell me were are the functions defined for the control system?

When I use the VESC in FOC mode, I need to calculate the parameters like I_d and I_q but in which folder or part of Benjamins Code are those calculations.

Pages

Subscribe to RSS - VESC Firmware