RGB LED control
« on: November 20, 2015, 02:45:40 pm »
Hi, are you planning some kind of LED strip control like CleanFlight has? It would be great, I like it, but I want to stay with LibrePilot.

Thanks for your good work!

Re: RGB LED control
« Reply #1 on: November 20, 2015, 08:12:57 pm »
LP already has WS2811 control.  Easiest setup is attach a single (or strip) WS2811 to an unused ESC output.  It gives you information about the current state of the FC.  Errors, arming, etc.

It is turned on in System->Settings->HwSettings->somethingAboutWs2811 (at the bottom of HwSettings)

:)

Re: RGB LED control
« Reply #2 on: November 21, 2015, 07:29:41 pm »
Nice, thanks, will be there some custom programmable effects in the future? For emaple I like changing color depending on throttle, it would be cool :)

Re: RGB LED control
« Reply #3 on: November 21, 2015, 08:07:01 pm »
It can certainly happen, but it would need a developer.  I would think it would be very easy for a firmware dev, considering the blinking status code is already written.
There are a lot of ideas that just need someone to work on them.  :)  (and provide a little convincing ...)

I think TL has something where the color is based on what direction it is pointed and that would be very useful when it is a long way away.

Re: RGB LED control
« Reply #4 on: November 21, 2015, 08:32:05 pm »
Great, I'm looking forward to LibrePilot future progress, thumbs up!

V4z

  • *
  • 3
Re: RGB LED control
« Reply #5 on: January 10, 2016, 09:15:33 pm »
Hi folks, I would like to know which option I should select via the Configuration>Hardware>Flexi Port.

I have already wired a WS2812 via Flexi Port (pin: 1, 2, 3) and saved the output preference (FlexiIOPin3) on System>HwSettings>WS2811LED_Out, but nothing happens..

f5soh

  • *****
  • 4572
    • LibrePilot
Re: RGB LED control
« Reply #6 on: January 10, 2016, 09:35:18 pm »
FlexiIOpin3 or 4 refers to FlexiIO port, the receiver port.

Pin3 and 4 are unused pins, you need to add a wire on receiver connector and connect this wire do the "data" pin on WS2812 Led

This assumes you are using a Revolution board



V4z

  • *
  • 3
Re: RGB LED control
« Reply #7 on: January 10, 2016, 09:49:42 pm »
Ok I was wrong. I'm using a OpenFlight CC3D, pretty similar to Revolution Board but I am not sure.

So the best way is to use an ESC output. I would try that!

Thanks!

liftbag

  • *****
  • 215
    • LibrePilot
Re: RGB LED control
« Reply #8 on: January 10, 2016, 10:40:18 pm »
As far as I know, RGB LED cannot work on CC target, so your board should be a revolution or a revonano, or maybe a Sparky2.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: RGB LED control
« Reply #9 on: January 10, 2016, 10:41:48 pm »
CC3D or Atom boards do not support WS281x leds, only Revolution and Revolution Nano.

Added some info for Led support:
https://librepilot.atlassian.net/wiki/display/LPDOC/Setup+WS281x+Led

V4z

  • *
  • 3
Re: RGB LED control
« Reply #10 on: January 10, 2016, 11:00:21 pm »
Ok, tested ServoOut6 with the WS2812 wired but still nothing. As far as you said, there is no way to have an external RGB LED showing the arming status on CC3D. Really sad.

I will use the SMD pad of the LED, to trigger a standard external LED.. But that's creepy..

mazevx

  • ***
  • 151
  • Still Learning ...everday
Re: RGB LED control
« Reply #11 on: January 12, 2016, 07:16:48 pm »
Hello,  can i adress more than 1 led as status led?
Wiki says nothing about that

f5soh

  • *****
  • 4572
    • LibrePilot
Re: RGB LED control
« Reply #12 on: January 12, 2016, 07:28:49 pm »
You can share the same signal 'data' to one led or more, serially. 

mazevx

  • ***
  • 151
  • Still Learning ...everday
Re: RGB LED control
« Reply #13 on: January 12, 2016, 07:35:48 pm »
Ok, its just im a bit lazy... ;-)

Re: RGB LED control
« Reply #14 on: January 13, 2016, 12:24:10 am »
I thought I recalled that you can leave the WS2811 LED's daisy chained like they come pre-wired, and up to some number...  Just glanced at the source code.  Looks like 10 will work? all the same color.