LibrePilot Forum

Development => Hardware => Topic started by: 0xFFFF on June 30, 2016, 03:01:57 am

Title: Clarification of the WS281x LED setup on Revolution... [SOLVED]
Post by: 0xFFFF on June 30, 2016, 03:01:57 am
Hello,

I'm 90% sure I'm right but wanted to be 100% sure before I start purchasing stuff...

If I attached a WS2812B LED strip consisting of 8 LEDS to FlexiIO_pin3 (or 4), all of the LEDs attached to this port would display the 'LED codes'. Right?
Title: Re: Clarification of the WS281x LED setup on Revolution...
Post by: hwh on June 30, 2016, 03:30:18 am
Up to 10 work.

https://librepilot.atlassian.net/wiki/display/LPDOC/Setup+WS281x+Led
Title: Re: Clarification of the WS281x LED setup on Revolution...
Post by: 0xFFFF on June 30, 2016, 03:40:00 am
Awesome. Thank you :)
Title: Re: Clarification of the WS281x LED setup on Revolution...
Post by: 0xFFFF on July 13, 2016, 02:12:10 pm
I finally got around to attaching a WS2812B LED board to the Revo.

http://www.ebay.com.au/itm/8Bit-LED-Ring-WS2812B-5050-RGB-LED-Drivers-For-Arduino-Circular-Light-/182125609400?hash=item2a678841b8:g:YFMAAOSw60lXMWU6

In LibrePilot under HwSettings > WS2812LED_Out I have set the the output to FlexIOpin3 (blue). And saved it.
Using my DSO, I probed the flexIO pins but there wasn't anything there. Both flexIO lines are held high.

What am I doing wrong?

FYI-
GCS v15.09
Revo firmware - Revolution, 6, bu_revolution.opfw
Everything else ESCs, GPS, telemetry,... is working fine.
Title: Re: Clarification of the WS281x LED setup on Revolution...
Post by: 0xFFFF on July 31, 2016, 08:34:30 am
Bump!
Title: Re: Clarification of the WS281x LED setup on Revolution...
Post by: f5soh on July 31, 2016, 09:31:11 am
What board do you use ?

A Revolution full sized or Revolution Mini ?

Not a CC3D because refers to another board, only Chinese use "Revolution" for marketing purposes.
Title: Re: Clarification of the WS281x LED setup on Revolution...
Post by: hwh on July 31, 2016, 11:15:00 pm
If you're talking about the "mini revo" shown below count the pins on the connector.  :(   There are supposed to be 10.  To save on costs the Chinese replaced the 10 pin connector with an 8 pin one and skipped connecting the original revo's pins 3 and 4.  After pin 2 their pin numbers are 2 off.  You could find the pins on the cpu and wire directly but it might be easier to use one of the servo out connectors if you have one free.
Title: Re: Clarification of the WS281x LED setup on Revolution...
Post by: 0xFFFF on August 03, 2016, 01:10:13 pm
Sorry for not replying sooner. I forgot to subscribe to my own thread    :o
And sorry for not clarifying earlier (I'm terrible at that).

I'm using a full sized Revolution purchased from HobbyKing (http://www.hobbyking.com/hobbyking/store/__89563__OpenPilot_CC3D_Revolution_Revo_32bit_F4_Based_Flight_Controller_w_Integrated_433Mhz_OPLink.html).
Firmware tag: 15.09
Firmware date: 2015-10-21 19:14
Git commit hash: c3f2fd0b

No matter what I do I can't get pins 3 or 4 of the flex port to work as the WS2811LED_Out.

I managed to get it working though!
For some reason WS2811LED_Out worked on ServoOut6, no worries at all.
I'm glad I got it going but it might be worthwhile if someone else with a full Revolution could verify this and perhaps update the Librepilot documentation accordingly?
Title: Re: Clarification of the WS281x LED setup on Revolution...
Post by: Mateusz on August 03, 2016, 01:22:36 pm
I'm using a full sized Revolution purchased from HobbyKing (http://www.hobbyking.com/hobbyking/store/__89563__OpenPilot_CC3D_Revolution_Revo_32bit_F4_Based_Flight_Controller_w_Integrated_433Mhz_OPLink.html).

God have mercy. No such thing as "Revolution". It's either CC3D or Revolution, unless you use both at the same time. Looks like HK is not clear what they're selling, maybe you pay for Revo and get one board randomly ? :)
Title: Re: Clarification of the WS281x LED setup on Revolution...
Post by: 0xFFFF on August 03, 2016, 01:58:45 pm
God have mercy. No such thing as "Revolution". It's either CC3D or Revolution, unless you use both at the same time. Looks like HK is not clear what they're selling, maybe you pay for Revo and get one board randomly ? :)

...oh.  :(
So this is not a legitimate Revolution?

Where should I get a Revolution from? (I'm in Australia BTW)
Title: Re: Clarification of the WS281x LED setup on Revolution... [SOLVED]
Post by: @marc on August 03, 2016, 02:21:58 pm
The one you linked above is a revolution (https://librepilot.atlassian.net/wiki/display/LPDOC/OpenPilot+Revolution) (10DOF).
Title: Re: Clarification of the WS281x LED setup on Revolution... [SOLVED]
Post by: Mateusz on August 03, 2016, 03:23:40 pm
I would not bother about getting genuine OpenPilot Revolution. As you might know, OpenPilot does not exist anymore, and people who produced hardware stopped doing that long before fork happened. Because this hardware is so successful, Chinese started producing those boards, and they're now easier to get than in the past. Some of them might follow original design, some might be derivatives, but the Revolution firmware should work on them.
Title: Re: Clarification of the WS281x LED setup on Revolution... [SOLVED]
Post by: 0xFFFF on August 03, 2016, 11:29:43 pm
Ah OK. Good to know.
Thanks people :)