MrNams
(MrNams)
December 7, 2021, 4:03am
1
Hello @rmackay9
I have connected “Panda RC WS2812 LED” to MatekH743-Slim,there are 4 LED strip each having 4LED and all of them connected in series, so you can consider it as Single 16 LED strip.
It was working perfect with iNav but now i switched from iNav to Ardupilot and LED stopped working.
I have installed " LED_roll.lua and other lua script but only 2 leds work.
MrNams
(MrNams)
December 7, 2021, 1:46pm
3
the led pin is connected to servo output 13 according to Flight Controller H743-SLIM – Matek Systems
SERVO13_FUNCTION 120
MrNams
(MrNams)
December 7, 2021, 2:03pm
5
Correct, These are settings I made
SERVO13_FUNCTION=120 // NeoPixel1
NTF_LED_TYPES= 256 // NeoPixel
https://ardupilot.org/copter/docs/common-serial-led-neopixel.html?highlight=neopixel
--[[
Script to control LED strips based on the roll of the aircraft. This is an example to demonstrate
the LED interface for WS2812 LEDs
--]]
--[[
for this demo we will use a single strip with 30 LEDs
--]]
local num_leds = 30
--[[
use SERVOn_FUNCTION 94 for LED. We can control up to 16 separate strips of LEDs
by putting them on different channels
--]]
local chan = SRV_Channels:find_channel(94)
if not chan then
gcs:send_text(6, "LEDs: channel not set")
return
end
This file has been truncated. show original
have you tried just setting it as a notification led without the lua to get it working first ?
https://ardupilot.org/copter/docs/common-ntf-devices.html#common-ntf-devices
MrNams
(MrNams)
December 7, 2021, 2:09pm
7
No, let me try with those options and update here,thanks
MrNams
(MrNams)
December 9, 2021, 6:01am
8
Unfortunately Nothing worked for me
MrNams
(MrNams)
December 11, 2021, 3:02pm
9
Sorry, I found one of my LED was broken thats why other serially connected LEDs did not work, now every LED work but not Flashing, how to make them Flashing when flying.
Thats what the scripts are for.
is it changing colours as a status led? if it is then electrically its working, you now need the lua scripts to get it to flash etc.
MrNams
(MrNams)
December 11, 2021, 4:36pm
12
Yes, color are changing as per status, but i want it should flash when leave ground and fly
you will have to use lua to do that. i dont think there is a led setup program anywhere like they have on betaflight/cleanflight.
MrNams
(MrNams)
December 11, 2021, 5:54pm
14
You are right, i tried lua script but none of script flash LEDs, any option.
MrNams
(MrNams)
December 11, 2021, 6:05pm
15
MrNams:
Sorry, I found one of my LED was broken thats why other serially connected LEDs did not work, now every LED work but not Flashing, how to make them Flashing when flying.
This was solution for only one LED being worked.