Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support LED stripes #781

Open
micropet opened this issue Jan 15, 2014 · 20 comments

Comments

@micropet
Copy link

commented Jan 15, 2014

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

@robustini

This comment has been minimized.

Copy link
Contributor

commented Jan 17, 2014

+1

@govsux

This comment has been minimized.

Copy link

commented Feb 25, 2014

+2 Darn I thought that was possible :[

@shaggee

This comment has been minimized.

Copy link

commented Mar 3, 2014

+3

@GrahamDyer

This comment has been minimized.

Copy link

commented Jul 7, 2014

+4

@squilter

This comment has been minimized.

Copy link
Member

commented Sep 13, 2014

@rmackay9 fixed yet?

@rmackay9

This comment has been minimized.

Copy link
Contributor

commented Sep 14, 2014

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.

@govsux

This comment has been minimized.

Copy link

commented Sep 14, 2014

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

@haygood

This comment has been minimized.

Copy link

commented Sep 15, 2014

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?

@govsux

This comment has been minimized.

Copy link

commented Sep 15, 2014

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

This comment has been minimized.

Copy link

commented Sep 15, 2014

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.

@rmackay9

This comment has been minimized.

Copy link
Contributor

commented Sep 15, 2014

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

@govsux

This comment has been minimized.

Copy link

commented Sep 15, 2014

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

@rmackay9

This comment has been minimized.

Copy link
Contributor

commented Nov 4, 2014

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

@mr-sneezy

This comment has been minimized.

@msdigi

This comment has been minimized.

Copy link

commented Nov 15, 2015

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.

@OXINARF OXINARF added Enhancement Library and removed Copter PX4 labels Jun 5, 2017
@OXINARF OXINARF changed the title Copter: support external LEDs on Pixhawk Support LED stripes Jun 5, 2017
@Naterater

This comment has been minimized.

Copy link
Contributor

commented Jan 17, 2019

@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

@auturgy

This comment has been minimized.

Copy link
Contributor

commented Jan 18, 2019

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).

@proficnc

This comment has been minimized.

Copy link
Contributor

commented Jan 18, 2019

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)

@auturgy

This comment has been minimized.

Copy link
Contributor

commented Jan 18, 2019

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.

@proficnc

This comment has been minimized.

Copy link
Contributor

commented Jan 18, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.