Ws2811 not working in next
« on: October 16, 2017, 05:27:25 pm »
Hello,

I compiled the latest next version.
Looks very good, nice autotune page, oplink is ok, Bluetooth interface with oplink ok,
only my ws2811 leds dont work anymore.
I connected one strip of 8 leds to servo output 5, but the leds stay dark. They worked  in version 16.09
Any suggestions?
« Last Edit: October 16, 2017, 05:34:08 pm by Bariton26 »

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Ws2811 not working in next
« Reply #1 on: October 16, 2017, 06:27:39 pm »
Hi, welcome.

What board are you using ?
Did you configure outputs with DShot ?

Maybe you can post your config file here.

** Edit: Seems related to LP-544 issue
« Last Edit: October 16, 2017, 08:04:02 pm by f5soh »

Re: Ws2811 not working in next
« Reply #2 on: October 16, 2017, 10:17:58 pm »
Hello,

I am using Revolution.
Servo output 1-4 are oneshot 125, output 5-6 are Dshot.
I have attached the uav file of my configuration .

I did not yet try receiver Port 3 or 4

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Ws2811 not working in next
« Reply #3 on: October 16, 2017, 10:59:44 pm »
Why mixed outputs using OneShot125 and Dshot ?

pin 3 and pin 4 from Receiver port will work.

Re: Ws2811 not working in next
« Reply #4 on: October 16, 2017, 11:10:50 pm »
I use oneshot 125 for the servo outputs and dshot for the led strip.
I tried Dshot for all servo outputs, it did not work.
I tried pin 3 of receiver port, it did not work

Re: Ws2811 not working in next
« Reply #5 on: October 16, 2017, 11:21:17 pm »
That was my solution a while ago... I gave up using WS2811 and use telemetry instead.
I recall seeing an issue with the 2811 LED support in next.  @Mr_w provided a work around.

Edit:  Ahhh...  Just above, here in this thread.  It doesn't work around your issue well enough?  Maybe go back to an older version for now?
https://forum.librepilot.org/index.php?topic=3576.msg24594#msg24594


f5soh

  • *****
  • 4572
    • LibrePilot
Re: Ws2811 not working in next
« Reply #6 on: October 16, 2017, 11:37:47 pm »
I didn't recall the workaround but seems not working.
Just tested bank4 set with DShot and ws2811 connected to servo output, the WS2811 give some sort of blinking but not related to normal WS2811 colors and blinking.

FlexiIO pin3 works fine here and pin4 will be the same.



pin3 and pin4 are generally not wired, you need to add the wires to the original connector.
Revo mini clones do not have those pin3/pin4


Re: Ws2811 not working in next
« Reply #7 on: October 17, 2017, 07:25:13 am »
Yes and no is not working, it shows something but not as expected. In my case a have de revo mini clone so no solution for me for now. I also think it will be fair to modify the settings in "next" so the only pin3 and 4 from FlexiIO should appear as option, as long the other servo pins don't work.
« Last Edit: October 17, 2017, 07:34:37 am by octavvian »

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Ws2811 not working in next
« Reply #8 on: October 17, 2017, 11:00:38 am »
WS2811 led receive some digital data from Dshot en show something but definitively not the normal blinking.
Solution for you is solder a thin wire to the pin 33 or 34 into the CPU.

Quote
I also think it will be fair to modify the settings in "next" so the only pin3 and 4 from FlexiIO should appear as option, as long the other servo pins don't work.

Simply remember you are using a development version.
Check from time to time the Jira page LP-544 and Pull request where the issue will be solved.

mr_w

  • *
  • 207
    • LibrePilot
Re: Ws2811 not working in next
« Reply #9 on: October 17, 2017, 01:14:11 pm »
Hi,

can you both try this one https://bitbucket.org/mindnever/librepilot/branch/LP-544_fix_ws2811_servo_conflict

I have bench tested this and looks good. This should fix these conflicts for good.

There is also pull request, https://bitbucket.org/librepilot/librepilot/pull-requests/473 so please approve if you find it solves your problems :)


Re: Ws2811 not working in next
« Reply #10 on: October 17, 2017, 10:35:02 pm »
I tried your branch but it did not solve the ws2811 problem with my revolution board.
I see  sometimes random leds on and off, but not a recognizable patron.
I tested it on servo output 5 with dshot, pwm, oneshot125. But no results.
Also on input pin 3 no results, sometimes one or 2 leds are on with random colors.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Ws2811 not working in next
« Reply #11 on: October 17, 2017, 10:45:41 pm »
You just need the output you want for WS2811 without something configured on it, looking at Output tab.

FlexiIO-Pin3 works as expected here and should work the same in your side.

Please post your config file.

Re: Ws2811 not working in next
« Reply #12 on: October 17, 2017, 11:11:03 pm »
Flexi 3 output also did not work in version 16.09, only servo outputs worked, perhaps it is my clone revo board.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Ws2811 not working in next
« Reply #13 on: October 17, 2017, 11:13:27 pm »
Config file so i can check your config and see if finally works as expected ?

Edit: Using the config file you posted above #3 post, the output5 works fine using mr_w's branch.
FlexiIO_pin3 works also with the same branch and 16.09 release.

There is definivelly another issue in your side.
« Last Edit: October 17, 2017, 11:33:43 pm by f5soh »

Re: Ws2811 not working in next
« Reply #14 on: October 17, 2017, 11:31:38 pm »
WS2811 led receive some digital data from Dshot en show something but definitively not the normal blinking.
Solution for you is solder a thin wire to the pin 33 or 34 into the CPU.

Quote
I also think it will be fair to modify the settings in "next" so the only pin3 and 4 from FlexiIO should appear as option, as long the other servo pins don't work.

Simply remember you are using a development version.
Check from time to time the Jira page LP-544 and Pull request where the issue will be solved.
These days the only thing we use is the development version...