NeoPixel WS2812 LED Setup Instruction
Last updated
Last updated
© 2024 Holybro. All rights reserved.
Note: This is experimental at the moment. Fly carefully!
There is no instruction on setting this up in PX4 at the moment. However, you could flash the below binary (based on v1.15beta1) and load the param file to have the LEDs working on Pixhawk 6x. COM_RC_IN_MODE needs to be changed according to your need after uploading the params.
Follow the instruction below to set this up.
Set NTF_LED_TYPES to include NeoPixel
In this example, we connected the wiring as follow:
Motor 1 LED -> AUX (FMU) PWM 1
Motor 2 LED -> AUX (FMU) PWM 2
Motor 3 LED -> AUX (FMU) PWM 3
Motor 4 LED -> AUX (FMU) PWM 4
In the Servo Output Page, set:
#9 function -> NeoPixel1
#10 function -> NeoPixel2
#11 function -> NeoPixel3
#12 function -> NeoPixel4