ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Support LED stripes

Open micropet opened this issue 12 years ago • 21 comments

Hello,

it would be nice if we get back ports for GPS and Arming status on PIXHAWK.

eg. AUX OUT 1 on the PIXHAWK corresponds to the A7 (arming) on the APM AUX OUT 2 on the PIXHAWK corresponds to the A6 (GPS) on the APM

So we could continue to use our old hardware. The external RGB Led is not yet available.

regards Peter

micropet avatar Jan 15 '14 13:01 micropet

+1

robustini avatar Jan 17 '14 13:01 robustini

+2 Darn I thought that was possible :[

govsux avatar Feb 25 '14 21:02 govsux

+3

shaggee avatar Mar 03 '14 01:03 shaggee

+4

GrahamDyer avatar Jul 07 '14 16:07 GrahamDyer

@rmackay9 fixed yet?

squilter avatar Sep 13 '14 20:09 squilter

3DR sells the Toshiba LED separately now so I think that will help some people. I don't think it makes sense to recreate the old APM2 style of LEDs on the pixhawk instead we need some new hardware that supports an I2C or CAN interface and allows some bright LEDs to be placed out on the arms. So I think this issue is stuck waiting for someone to make appropriate hardware.

rmackay9 avatar Sep 14 '14 02:09 rmackay9

I got one of these http://www.goodluckbuy.com/apm-px4-pixhawk-flight-controller-universal-rgbled-bln-module-dual-led.html and need up letting it stick up out the top of my quad using some heat shrink tubing for support. It works amazingly well. But there is room for improvement. It would be great if there was some hardware that could connect to the 12c that let you connect additional lights like lights under the arms which are much more visible. img_5380

govsux avatar Sep 14 '14 12:09 govsux

Can you tell us a little about the function of this thing? Does it give status indications and such, or is it just an LED driver and an LED?

haygood avatar Sep 15 '14 01:09 haygood

Yes it's a multi colored LED that works just as the pixhawk LED does. All 4 colors. The pic above shows it with a gps lock.

govsux avatar Sep 15 '14 01:09 govsux

Its simply connects to the I2C port... same place the gps / compass goes. You use that 'splitter' that comes with the pixhawk that lets you add other things. Plug and play so to speak.

govsux avatar Sep 15 '14 01:09 govsux

From the picture it might be confusing but @govsux is referring to the little green led that is sticking up at the top. he's not referring to the red and green LEDs that are below the copter.

The goodluckbuy LED is likely the same as the toshiba LED that 3dr sells. http://store.3drobotics.com/products/pixhawk-peripheral-kit

rmackay9 avatar Sep 15 '14 01:09 rmackay9

Very similar but the goodluckbuy's has an LED on both sides which is nice for better viewing.

govsux avatar Sep 15 '14 02:09 govsux

Here's a link to an LED strip which has 30 individually controlled LEDs. I suspect each LED is controlled by I2C but at one end of the strip is a small chip that accepts a serial command. http://www.ebay.com.au/itm/1M-Black-PCB-WS2812-WS2811-RGB-LED-Strip-1M-30-Leds-Individual-Addressable-5V-WP-/161254669814

This link comes from Martin on this discussion: http://diydrones.com/group/arducopterusergroup/forum/topics/pixhawk-external-led?commentId=705844%3AComment%3A1824215&xg_source=msg_com_gr_forum

rmackay9 avatar Nov 04 '14 09:11 rmackay9

Datasheet http://www.spikenzielabs.com/Downloadables/ws2812.pdf

mr-sneezy avatar Nov 04 '14 12:11 mr-sneezy

I need this funktion! (on a AUAV-X2). On my quad i have 4 LED-stripes (single color) and i want to switch them ON when armed, and OFF when disarmed.

msdigi avatar Nov 15 '15 15:11 msdigi

@proficnc, aren't you releasing some LED's in the future, possibly related to this?

I also noticed that single LED's can be connected, however I don't think that solves this specific issue. http://ardupilot.org/copter/docs/common-external-leds.html

Naterater avatar Jan 17 '19 23:01 Naterater

A diy solution is here: https://github.com/prickle/Mavpixel

It’s possible to roll support for ws2812 or APA102 style LEDs in (@bugobliterator has such a branch iirc).

auturgy avatar Jan 18 '19 00:01 auturgy

Yes, the profiLEDs are already available from resellers and can be run using @bugobliterator ‘s code. (These are NOT ws2812 LEDs, they are not good for a flight computer as their timing requirements are too strict)

proficnc avatar Jan 18 '19 22:01 proficnc

The only (strictly) tight timing on ws2812 is max length of a 0 bit, 500ns. We achieve far tighter timing with DShot 1200, which is about 300ns iirc. DShot and ws2812 wasn’t practical to attempt under nuttx, but under ChibiOS it’s more a matter of developer priority than any technical constraint.

auturgy avatar Jan 18 '19 23:01 auturgy

An esc is flight critical... an LED is not. This was covered a long time ago (back in 3DR days) when we decided not to support the WS... LEDs. This is why we developed the ProfiLED, it has zero timing requirements, so can be run as a low priority thread.

proficnc avatar Jan 18 '19 23:01 proficnc