You are here

Breaking Light

8 posts / 0 new
Last post
vitormhenrique
Offline
Last seen: 10 months 3 weeks ago
VESC Original
Joined: 2019-08-29 17:28
Posts: 25
Breaking Light

Has anyone tried to implement an simple "breaking" light on VESC firmware? 

I'm working on a onewheel now, and was thinking about having ws2812b on te front and on the back, illuminating them accordingly, and changing intensity to have a "breaking" light.

vitormhenrique
Offline
Last seen: 10 months 3 weeks ago
VESC Original
Joined: 2019-08-29 17:28
Posts: 25

Hello everyone, 

I did some more research, and I actually found a video and a firmware that Benjamin made using ws2811 for breaking lights and turn signals, the firmware name is VESC_ws2811.bin.

But, i noticed looking the source code that you can't use Hall sensors if the leds are enabled. 

I'm gonna keep studing the source code and see if I can figure it out.... I "need" to have both hall sensors and leds enabled, but no idea if it is possible.

Kyroba
Offline
Last seen: 4 years 3 months ago
Joined: 2020-03-13 11:48
Posts: 2

Hey, have you figured out how to do this?

Kyroba
Offline
Last seen: 4 years 3 months ago
Joined: 2020-03-13 11:48
Posts: 2
Pimousse
Offline
Last seen: 11 months 1 week ago
VESC Original
Joined: 2017-05-24 12:15
Posts: 101

Hi,

Yes, using an Arduino and the VESC Uart communication, you can achieve a brake light system.

See here for an example : https://www.youtube.com/watch?v=wvjXEg_Xbv8

alex63610
Offline
Last seen: 5 months 2 weeks ago
Joined: 2018-06-08 14:38
Posts: 2

Hi,

I am trying to achieve the same stuff and I also want to keep hall sensors.

I am trying to control the ws2812b leds with the GPIOB 5 pin (ppm pin normally) but without success so far.

Have you find a way vitormhenrique?

 

FlawlesTurtle
Offline
Last seen: 6 months 4 weeks ago
VESC Free
Joined: 2022-09-15 00:49
Posts: 1

I've completed a arduino and mpu6050 set up that uses ws2818 leds for a passive brake light setup. Currently working on field testing. Here is the Gethub node. :

https://github.com/wildskydiver/Passive-Brake-Idle-LED

 

cbecker333
Offline
Last seen: 4 months 1 week ago
Joined: 2018-12-24 20:38
Posts: 2

Old thread but I have a nice working system that uses an arduino, a quality buck, and some off-the-shelf LEDs to do smart brake lighting by reading current + RPM and using negative Current to indicate when braking is really happening: https://github.com/readysetawesome/VESCSmarterBrakes/tree/main

The project includes 3d files for the custom enclosure you see here, which bolts directly to Lacroix Hypertrucks:

https://youtube.com/shorts/lgMOZj9nqJY?feature=share

C Becker