You are here

VESC Firmware

Custom App - Set Motor Speed

Submitted by CTSchorsch on Fri, 2019-10-25 11:22

Hi all,

i have a custom app, to control the motor for my underwater diving scooter. This scooter has a trigger button for run/stop and a rotary encoder to set power from 10% to 100%

At the moment i control the motor just with mc_interface_set_duty(0..1)

Is this enough ? or do i have to set something more ? maybe current ? all other apps do so much more :)

Thanks

Georg

Unable to flash firmware to VESC using OpenOCD

Submitted by Bayne on Fri, 2019-10-25 02:34

I was riding my skateboard the otherday when it suddenly lost power and wouldnt reboot. It now only displays a blue light when on (no green like my other working vesc). From my research I found that this could perhaps be a firmware or bootloader issue so I have been trying to redo it using a raspberry pi running openocd and the GPIO pins connected to the vesc.

physical meaning of current KI and current KP coefficients

Submitted by ExiD on Tue, 2019-10-15 16:38

What is the physical meaning of current KI and current KP in FOC mode?
Motor resistance and inductance not use for motor spinning, but it need to calculate current KI and current KP coefficient using time constant.
Also VESC measure L and R values not correct, real motor phase inductanse 90uH, VESC measure 50uH, real R is 150mOhm, VESC measure 100mOhm.
How to choose a time constant to calculate KP and Ki? Need I use VESC's measurements R and L or RLC meter values?

USB connection problem

Submitted by Ironman223 on Sat, 2019-10-12 13:53

Hello,

 

I have a new kind of problem which i could not understand.

i have written a stand alone app to rotate motor at a fix speed.

but it only works when i connect VESC tool to it with USB.

otherwise the motor starts to cog and the motor vibrates very badly.

The code is shown below.

Limiting switching frequency of the SPWM for big IGBT´s

javivi's picture
Submitted by javivi on Wed, 2019-10-09 13:32

Hello dark wizards of firmware Javier here, im trying to use fabulous VESC firmware with 400V IGBTs to drive big motors.

spwm



The IGBTs have a minimum switching on-off time of around 2,5us.

So far im having issues with the SPWM modulation not respecting the minimum times resulting in nasty shortcircuits (IGBTs dont have the time to fully open or close).

200kHz PWM

Submitted by c10yas on Sun, 2019-09-22 17:06

Hi,

I'm trying to use VESC for a wide bandgap motor controller that I am designing but am concerned that the F405 cannot operate its control loop at 200kHz. Is it fast enough to do this? Should I look into porting the code base for the H7 series which can reach 480MHz? Alternatively, is it an option to run the control loop at a lower frequency (20kHz) and have the switching occur at 10x the speed. This would result in the PWM changing its duty cycle only every 10 cycles. Are there any issues that anyone can think of if I were to do this?

- Chai

Pages

Subscribe to RSS - VESC Firmware