You are here

VESC Firmware

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.

Reusing pin in custom application

Submitted by Pechvogel on Wed, 2021-01-13 07:12

Hi All,

I'm playing with making a custom application for an e-bike with bottom bracket torque and speed sending. Modifying the ADC app for reading in the torque is straightforward, but I also need to repurpose a pin to use as a digital input with an interrupt to count the pulses coming in from the speed sensor. I'm using the 4.12 hardware. Can anyone give me some advice on that?

I have a relevant degree, but I haven't done much with embedded hardware since then and I've only recently started playing with the STM32Fs.

Cannot detect VESC with built-in NRF24 from VESC Tool (Android)

Submitted by fdumi on Wed, 2020-12-30 11:57

Hello,

I have made a custom HW for my e-bike project, based on HW 6.4, with some minor modifications. The PCB has a built-in NRF24L01 IC, with an external 2.4GHz / 2dBi antenna connected.

If I type "hw_status" in the VESC tool terminal in Windows, it returns ​Permanent NRF found: Yes

So it looks like the controller can communicate with the NRF24 module. My problem is that I cannot connect to the VESC with my phone via BLE (the VESC doesn't appear in the list when scanning).

Pages

Subscribe to RSS - VESC Firmware