mazevx

  • ***
  • 151
  • Still Learning ...everday
Re: RGB LED control
« Reply #15 on: January 13, 2016, 09:11:57 am »
If you have one of those strips thats right, but i use single LEDs wich called "breadboard friendly"
So I have to wire them, there was a discription about the use of them but i cant find that anymore, think that was in the OP Forums...

hwh

  • *
  • 1018
Re: RGB LED control
« Reply #16 on: January 13, 2016, 05:12:06 pm »
The ws2811 leds normally have 6 connections, 3 running down each edge of the board.

Power in and ground connect to the corresponding pins on the "in" side, and the input from the FC goes to the "in" pin.   Power and ground on the other edge go to power in and ground on the next led in the chain.  "Out" on the first led goes to "in" on the second one.  The same pattern continues for the additional leds.

The wiki https://librepilot.atlassian.net/wiki/display/LPDOC/Setup+WS281x+Led shows one of the strip versions.  On the left the pins next to each other are connected together (DO to DIN, +5 to +5, GND to GND) when it's manufactured.  To make a single led module they just cut them apart between DO and DIN.

fyoory

  • *
  • 1
Re: RGB LED control
« Reply #17 on: February 07, 2016, 04:02:31 pm »
Yea I was only able to get leds working in cleanflight on a cc3d evo on my quad multicopter.    If your hard up to get them going on non revos then this is probably the way to go.    I was able to get it to light like 1 led on my evo but it took 5 minutes and just stayed yellow.  Not much use there other than a night light lol.

zukenj

  • ***
  • 202
Re: RGB LED control
« Reply #18 on: March 15, 2016, 08:06:40 pm »
I use the ServoOut6 and It light up fine, but then it will blink only one color (Light Blue) I think. It will not show any variant.

I haven't tested with the NEXT compilation. I will tonight and post back.
FS-TH9X RC
F450 Clone
Revolution FC
EMAX 2213 935 KV
HK 30A ESC UBEC running BLHeli 14.4
10x4.5 Propellers
DJI Naza clone Ublox M8N GPS

hwh

  • *
  • 1018
Re: RGB LED control
« Reply #19 on: March 15, 2016, 08:50:41 pm »
The ws2811 led support isn't related to the next branch, it's in the last release.

When you followed https://librepilot.atlassian.net/wiki/display/LPDOC/Setup+WS281x+Led and changed the WS2811LED_Out setting to ServoOut6 did you save it?  At the top left of the screen there is a green arrow pointing upward, that sends it to the revo temporarily but doesn't save it so it will stay over a power cycle.  The one that looks like a hard drive with a red arrow pointing up saves it so it will persist over a power cycle.  When I save settings on a board I usually check it by disconnecting the board, reconnecting, and see if the setting I changed is still changed.

The ws2811 support is only for the revo and revo nano boards, it doesn't work on cc3d boards.

Re: RGB LED control
« Reply #20 on: March 17, 2016, 02:29:49 pm »
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.

Indeed...it's 10...I had connected two strips in series (8 each) and at the beginning I though one strip was "damaged"  ::)
put them in parralel and...all lit up... :D

zukenj

  • ***
  • 202
Re: RGB LED control
« Reply #21 on: March 18, 2016, 02:01:13 pm »
The ws2811 led support isn't related to the next branch, it's in the last release.

When you followed https://librepilot.atlassian.net/wiki/display/LPDOC/Setup+WS281x+Led and changed the WS2811LED_Out setting to ServoOut6 did you save it?  At the top left of the screen there is a green arrow pointing upward, that sends it to the revo temporarily but doesn't save it so it will stay over a power cycle.  The one that looks like a hard drive with a red arrow pointing up saves it so it will persist over a power cycle.  When I save settings on a board I usually check it by disconnecting the board, reconnecting, and see if the setting I changed is still changed.

The ws2811 support is only for the revo and revo nano boards, it doesn't work on cc3d boards.

hwh

Thanks for your reply.

You are right, it is always a good idea to double check. but I am sure I save it because, I turned the Quad off and took it outside, turn it back on, and the LEDs showed different colors when the board was booting, then one blinking color.

I will do a small video today, and post the link.

Thanks
FS-TH9X RC
F450 Clone
Revolution FC
EMAX 2213 935 KV
HK 30A ESC UBEC running BLHeli 14.4
10x4.5 Propellers
DJI Naza clone Ublox M8N GPS

hwh

  • *
  • 1018
Re: RGB LED control
« Reply #22 on: March 18, 2016, 03:18:41 pm »
... the LEDs showed different colors when the board was booting, then one blinking color...

Blinking changing colors during boot up and then blinking one color would be normal.  The color pattern should change when you arm and when you change flight modes according to the chart in the wiki https://librepilot.atlassian.net/wiki/display/LPDOC/Setup+WS281x+Led#SetupWS281xLed-Ledbehavior

The blinking blue you described sounds like idle.  Try forcing an error like unplugging power to the receiver an see if the pattern changes to receiver error, the orange flash is pretty noticable  :)

zukenj

  • ***
  • 202
Re: RGB LED control
« Reply #23 on: March 18, 2016, 03:20:39 pm »
That is a good test. I'll post results
FS-TH9X RC
F450 Clone
Revolution FC
EMAX 2213 935 KV
HK 30A ESC UBEC running BLHeli 14.4
10x4.5 Propellers
DJI Naza clone Ublox M8N GPS

zukenj

  • ***
  • 202
Re: RGB LED control
« Reply #24 on: March 19, 2016, 05:04:41 am »
Here is a link to the video, LEDs light Yellow when Radio Disconnected and Blue when after boot.

FS-TH9X RC
F450 Clone
Revolution FC
EMAX 2213 935 KV
HK 30A ESC UBEC running BLHeli 14.4
10x4.5 Propellers
DJI Naza clone Ublox M8N GPS

Re: RGB LED control
« Reply #25 on: March 20, 2016, 01:22:25 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.

Could you point me to the codeline for this? I was looking for that, but somehow i didnt found it. I'm using an adafruit neopixel ring, but since just 10 leds are called, nearly half the ring stays dark.
ZMR 250 Frame, Revo, Simon EMAX 12A, DYS 2300KV, DALPROP 5045, DRX R615X, Spektrum DX6i, FPV pending (hand made antenna by chipsundgrips, UFO FPV DIY 5.8G 32CH 5 Inch 800 x 480 HD Snow Screen Goggles, Eachine 800tvl CCD 148° 5.8G  Camera/Transmitter)

hwh

  • *
  • 1018
Re: RGB LED control
« Reply #26 on: March 20, 2016, 01:45:15 am »
It's in flight/pios/inc/pios_ws2811.h

#define PIOS_WS2811_NUMLEDS 10

hwh

  • *
  • 1018
Re: RGB LED control
« Reply #27 on: March 21, 2016, 12:19:40 am »
Here is a link to the video, LEDs light Yellow when Radio Disconnected and Blue when after boot.

You're right, in your video it doesn't look like the flight mode is flashing in the led strip. I can't check this right now because I don't have a ws281x connected to a running quad.  Toward the end of this week I'll be up again and I'll check this out.

zukenj

  • ***
  • 202
Re: RGB LED control
« Reply #28 on: March 21, 2016, 12:20:58 am »
Thanks hwh
FS-TH9X RC
F450 Clone
Revolution FC
EMAX 2213 935 KV
HK 30A ESC UBEC running BLHeli 14.4
10x4.5 Propellers
DJI Naza clone Ublox M8N GPS

Re: RGB LED control
« Reply #29 on: July 20, 2016, 01:19:13 pm »
hi can i do this without cleanflight
i use librepilot but i don`t will change to cleanflight
can you help me


« Last Edit: July 23, 2016, 05:39:06 pm by Torsten »