VESC - External status LED

Electric Motors and Controllers
Post Reply
FCasimiro   1 µW

1 µW
Posts: 2
Joined: Jul 15 2019 11:33am

VESC - External status LED

Post by FCasimiro » Jul 15 2019 11:43am

Hi,

We would like to extend the vesc status LED to external LED panel.
Do you guys know if there is any easy way to do it, using exiting communication ports, besides removing the SMD LED on the board and put some extension cables? (This option is not very favorable, cause we aim to do it to some units, and the risk of messing with some SMD components are big)

Dou you think it will need a custom firmware or custom app to be able to do it?
Does any one tried t already?

Let us know.
Thanks in advance!

district9prawn   100 W

100 W
Posts: 264
Joined: Jul 20 2013 10:46pm
Location: Sydney

Re: VESC - External status LED

Post by district9prawn » Jul 15 2019 7:25pm

I would reassign the led gpio pins in the hw configuration files. If you need to change some functionality of the red and green leds they are controlled in main.c

Also I'm assuming you are posting this question here on endless sphere because the vesc-project forum is down?
Neu 8057 6kW left hand drive hardtail with 18 fet Vesc: viewtopic.php?f=6&t=96754

FCasimiro   1 µW

1 µW
Posts: 2
Joined: Jul 15 2019 11:33am

Re: VESC - External status LED

Post by FCasimiro » Jul 19 2019 8:49am

Thanks! We will try to do something in those lines.

Have you done it before? What ports you would select for output?

We are using Hall sensors ports, Canbus (CanH/CanL) and (5V/-/TX/RX).
All the other ports are free.

district9prawn   100 W

100 W
Posts: 264
Joined: Jul 20 2013 10:46pm
Location: Sydney

Re: VESC - External status LED

Post by district9prawn » Jul 20 2019 9:02am

FCasimiro wrote:
Jul 19 2019 8:49am
We are using Hall sensors ports, Canbus (CanH/CanL) and (5V/-/TX/RX).
If you are using an off the shelf vesc then that only leaves the two analog throttle inputs and the servo input. I just gave it a go and compiled a firmware with fault and drive leds assigned to adc_ext 1 and 2 and it seems fine. You can probably leave main.c alone unless you want to change the brightness of the leds.
Neu 8057 6kW left hand drive hardtail with 18 fet Vesc: viewtopic.php?f=6&t=96754

Post Reply