You are here

VESC Firmware

PID - Position Angle Division

Submitted by robo_studienarbeit on Tue, 2018-12-04 18:46

Hey guys,

I have a few questions to the PID Position Controller. I have setted up my BLDC Motor with an ABI Encoder, everything is fine. I can reach the positions from 0 to 360° correctly, if the Position Division Angle is 1 ! With the realtime data I can see that the PID_pos_now value is also zero when I set the position control to 0°.

Write Motor Configuration - not working

Submitted by acherpil on Tue, 2018-12-04 10:23

Hello,

I am using the VESC Tool 0.95 and the last version of the VESC firmware (dowloaded from github in November 2018). I am dialoguing to the VESC through the GPIO_AF_USART3 (UARTD3),
From the VESC Tool I am able to write the App configuration to the VESC flash and read it. But I am not able to write the motor configuration (but I am able to read it).

The issue is here: "packet.c"

Custom App using Interrupt

Submitted by CTSchorsch on Sun, 2018-11-25 20:32

Dear all,

i want to use a pin change interrupt in a custom application. There is less documentation, but i figured out how to set up the interrupt, but the vesc crashes when the interrupt occours.

Do i have to configure GPIOC 14/15 in a special way because the pins are OSC_OUT ?  Or is the interrupt init at the wrong place ?

Thanks in advance

GEorg

hwconf/hw_gsvesc.h:

Customization of Firmware

Submitted by EnricoB on Mon, 2018-11-19 23:01

Hi all,

I have a different kind of motor that I would like to drive with this controller. The current firmware is not suitable for this.

Is anyone interested in customizing the firmware according to my specifications? I guess it is not a too big deal - so you don't need to start from scratch. THe Windows/Linux software is not interesting for me; so there need to be modifications on the whole software.

I need a minor change to my firmware

Submitted by cdw3423vesc on Sat, 2018-11-17 00:55

Is there anyone here that can change the code and compile a new firmware file for me that uses ADC2 for the throttle instead of ADC1?

For some reason ADC1 has stopped working.  I read 2.8V on that pin and my hall effect throttle will no longer change it.  This happened after hitting a hard bump a few times.  I tested the throttle on ADC2 and it seems to work just fine there, the same way ADC1 worked before I hit those bumps.  

Switching frequency data

Submitted by petertaylor on Thu, 2018-11-08 00:53

Looking for some thoughts on this data. On my dual vesc based dyno, i'm getting this data when changing switching frequency. Anything other than 20khz is distinctly and repeatably lower efficiency than 20khz. Why would this be? Is there something in hardware or firmware that's preset for that switching rate? Anyone have any ideas?

Interestingly, the test motor seems to be more stable and consistent above 20khz, but less efficient.

 

Could get more data easily with community setting recommendations in VESC-TOOL. 

SPI Encoder communications with AS5047

Submitted by vadimz on Sun, 2018-10-28 16:55

Hi all,

 

Couple of questions on dealing with AS5047 encoder :

1. Why the SPI protocol is implemented in software ? It seems that this MCU has hardware SPI module, what am I missing ?

2. When encoding reading fails (I simulate it by disconnecting P1), the motor current shoots al the way to maximum and stays there until motor overheats. It would probably be safer to brake the motor in this condition. Did anyone tried making this change already ?

 

Thanks in advance,

outdated vesc firmware troubles

Submitted by alybruce on Sun, 2018-10-28 13:06

Hi,

I bought my VESC over a year ago for a diy skateboard project I have not completed and put aside. Recently I have given it another attempt. However when trying to configure the VESC and motor, my firmware is outdated so upon attempting to download and update to a newer version it aborts and fails. The vesc is fully powered and there seems to be no problems as the motor spins and works so far with the use of the controller. So it is extremely frustrating because I dont know what is wrong and it wont let me update newer compatible firmware to the vesc.

Pages

Subscribe to RSS - VESC Firmware