You are here

VESC Firmware

Control current PID from UART

Submitted by Koxx on Wed, 2021-02-17 20:27

Hello,

I am working on a project to control the VESC from a Arduino (ESP32).

I am controlling it in current mode.

I'd like to control the acceleration force (FOC current PID Ki/Ki) from the UART.

but ... is it possible to control it from UART ?

A quick study on the VESC code, it doens't seems to allow that.

Any idea ?

Thanks !

about Hall count (tacho value) problem

Submitted by sirino on Wed, 2021-02-17 02:35

Hi, I'm using vesc50A for my robot project using CAN communication.

When I get the tacho_value from CAN status (config. CAN_STATUS_1_2_3_4_5), sometimes data doesn't updated.

I'm reading the CAN status data 50Hz and the "CAN status rate" of VESC is 50Hz. The motor has 10pole, and 5.4 gear ratio, Hall sensor.

VESC Response time and update rates

Submitted by JimKazmer on Fri, 2021-02-12 04:14

Hi, I'm new to VESC. I am thinking of using VESC in my robotics application. Up to this point in time, I've been building smaller robots (~3 to 5 lbs; ~1.6 to 2.4kg). I've been using BLHeli32 ESCs which (as most here already know) were developed foremost for the quad-copter community.  I now want to build larger robots and need sturdier/larger ESCs and motors.  In my application, I have a need to update the ESCs at a very high rate. The BLHeli32 ESCs have a protocol, dShot1200, which I've been using, and this protocol can support update rates as high as 32kHz.

Regarding code documentation

Submitted by hiddenzed on Mon, 2021-02-08 12:40

Hello, I've been searching for some documentation for the vesc source code, but to no avail.

I've been digging a bit through the functions in mcpwm.c like the ISRs and the like, but without documentation it's hard for me to understand their purpose / use.

Is there any documentation online that im missing regarding the code (maybe even just a design of the software / flowcharts etc..)?

Appreciate any help there is! thanks :) 

VESC 100-250 doesn't work with firmware built from 100_250 folder

aerostepa's picture
Submitted by aerostepa on Sat, 2021-01-30 17:14

When I use file https://github.com/vedderb/bldc/blob/master/build_all/100_250/VESC_defau... for firmware update through VESC tool, everything works fine.
But when I make build on Windows or Ubuntu and update firmware with my file from /build_all/100_250 folder, connection error happens and then I restore VESC through ST_LINK.

I think something wrong with build, what it could be?

USB Connection Issue

Submitted by edward.holweg@me.com on Fri, 2021-01-29 13:04

Hi All,

After flashing the latest firmware 5.2 to my self developed board, I do not get a connection to the USB port.

Interesting enough the USB port comes alive only after I send a few messages over the CAN Bus.

Initially and after power off/on, the red en green light flash twice each 2 seconds. After sending the CAN messages, the green LED is lit, but very dimmed and the red LED flashes twice each second.

After this I have a "ChibiOS/RT Virtual COM Port" available and the VESC Tool connects to the drive over USB.

Compiled Firmware 5.02 does not work

Submitted by sirAnton on Wed, 2021-01-27 08:19

Hi, i have a old 4.12 vesc. The vesc works since 2017 with FW3.29.

Today i want update to 5.02. My steps below (Ubuntu 20.04 & STLinkV2:

git clone https://github.com/vedderb/bldc.git bldc-firmware

Edit conf_general.h ->
#define HW_SOURCE "hw_410.c" // Also for 4.11 and 4.12
#define HW_HEADER "hw_410.h" // Also for 4.11 and 4.12

make upload

** Programming & Verified OK **

But now i cant connect to the Controller.

brake inhibit input

Submitted by kylerlaird on Wed, 2021-01-20 23:35

I'm curious if there's a quick way to inhibit braking with an external pulse.  I'm using a pedal torque sensor to drive ADC1 in current+braking mode on a bike.  If pedaling becomes too easy, braking kicks in.  I want to use the cadence output (which is 36 pulses/rev., currently on ADC2) to inhibit braking so that if there's forward pedal movement, even if torque/current goes to zero there will be no braking.

Pages

Subscribe to RSS - VESC Firmware