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

Copter-4.5.0-beta2: Neopixel LEDs display incorrect colours #26295

Closed
rmackay9 opened this issue Feb 23, 2024 · 4 comments · Fixed by #26899
Closed

Copter-4.5.0-beta2: Neopixel LEDs display incorrect colours #26295

rmackay9 opened this issue Feb 23, 2024 · 4 comments · Fixed by #26899
Labels

Comments

@rmackay9
Copy link
Contributor

rmackay9 commented Feb 23, 2024

If multiple neopixel LEDs are connected they may show different colours from each other in 4.5.0 while in 4.4.4 they all show the same colour.

Below is a video using a CubeOrange with 3 neopixels connected.
https://github.com/ArduPilot/ardupilot/assets/1498098/f0a9a517-1dc4-4099-85e6-80ee0af6d7d2

The Neopixels are connected to CubeOrangePlus's AUX OUT 1, powered from a 5V BEC

Related discussion is here.

@andyp1per
Copy link
Collaborator

@rmackay9 if you are using CubeOrange then you really need to use a pull-up on the output. I have had this discussion on and off with @bugobliterator. Not saying this is the issue, but CubeOrange is definitely special electrically.

@bugobliterator
Copy link
Member

bugobliterator commented Feb 23, 2024

https://discuss.cubepilot.org/t/rgb-neopixel-led-wiring-and-configuration/12129/8?u=sidbh Reference to the discussion where I answered this query.

image

The reason that NeoPixel LEDs don’t function on Cube is because they require > 0.7Vcc signal line, Aux pins put out 3.3V and generally power tends to be solid 5V.
0.7
5 = 3.5V Reference

If Neopixel are working without any modification, it is actually more of a cause of concern, as that indicates your 5V are not actually 5V but something like 4.7V, and possible symptom of this is brown-out on other hardware that require solid 5V for instance ESC or Autopilot power system etc...

@tridge
Copy link
Contributor

tridge commented Mar 8, 2024

I think it is more likely a slight change in clocking. I got the same symptoms (very similar flashing) on a G4 periph, and fixed it by overriding STM32_PPRE1 so we got a different peripheral clock on the timer

@rmackay9 rmackay9 changed the title Copter-4.5.0-beta2: Neopixel LEDs out-of-sync Copter-4.5.0-beta2: Neopixel LEDs display incorrect colours Mar 26, 2024
@andyp1per
Copy link
Collaborator

Fixed by #26899

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants