Kakute H7 LEDs not working
Discussed in https://github.com/iNavFlight/inav/discussions/9682
Expected Behaviour: LEDs should turn on into colour mode when the craft is powered on. They should not blink, or indicate GPS lock, or anything else. They should just be "on"
Expected behaviour: LEDs do nothing. No blink. No wrong colour. They're just off.
Originally posted by finiteuser February 1, 2024 I installed 4x Matek 2182-8Slim LED strips. According to my multimeter I don't have any shorts, and I have good connectivity between all the grounds. And good connectivity between all the 5Vs. The D-out pads are connected to the D-in pads on the next strip, with no shorts detected between them.
I tested the voltage with the battery plugged in, and each strip is seeing 5V. I have read and re-read the wiki page at https://github.com/iNavFlight/inav/blob/master/docs/LedStrip.md and according to it, with this configuration, the LEDs should be "on," at all times. I followed along with this video: https://www.youtube.com/watch?v=kjHruLW8KT0 and according to it the LEDs should default to ON even if unconfigured. But the LEDs are not turning on. There's no flash, no blink. I tested with a multimeter (see photo) and they're definitely getting voltage. Did I turn them off? It seems weird to me that absolutely nothing is lighting up. It seems unlikely to me that I got 4 strips of completely defective LEDs. Even if one is bad, the other 31 would still light up, no?
I typed "LED" in the CLI and this is what it returned.
LEDs
led 0 0,0::C:1 led 1 1,0::C:1 led 2 2,0::C:1 led 3 3,0::C:1 led 4 4,0::C:1 led 5 5,0::C:1 led 6 6,0::C:1 led 7 7,0::C:1 led 8 0,1::C:1 led 9 1,1::C:1 led 10 2,1::C:1 led 11 3,1::C:1 led 12 4,1::C:1 led 13 5,1::C:1 led 14 6,1::C:1 led 15 7,1::C:1 led 16 0,2::C:6 led 17 1,2::C:6 led 18 2,2::C:6 led 19 3,2::C:6 led 20 4,2::C:6 led 21 5,2::C:6 led 22 6,2::C:6 led 23 7,2::C:6 led 24 0,3::C:2 led 25 1,3::C:2 led 26 2,3::C:2 led 27 3,3::C:2 led 28 4,3::C:2 led 29 5,3::C:2 led 30 6,3::C:2 led 31 7,3::C:2
LED color
LED mode_color
It seems to me that I must have inadvertently turned something off. But when I type "feature" in the CLI it returns:
feature
Enabled: VBAT TX_PROF_SEL GPS TELEMETRY CURRENT_METER LED_STRIP BLACKBOX AIRMODE PWM_OUTPUT_ENABLE OSD (bolding is mine)
Here's the output from "Diff All"
diff all
version
INAV/KAKUTEH7 7.0.0 Dec 7 2023 / 12:43:28 (91ca1047)
GCC-10.3.1 20210824 (release)
start the command batch
batch start
reset configuration to default settings
defaults noreboot
resources
Timer overrides
Outputs [servo]
safehome
features
feature GPS feature LED_STRIP feature PWM_OUTPUT_ENABLE
beeper
blackbox
blackbox -NAV_ACC blackbox NAV_POS blackbox NAV_PID blackbox MAG blackbox ACC blackbox ATTI blackbox RC_DATA blackbox RC_COMMAND blackbox MOTORS blackbox -GYRO_RAW blackbox -PEAKS_R blackbox -PEAKS_P blackbox -PEAKS_Y
Receiver: Channel map
Ports
serial 1 0 115200 115200 0 115200 serial 2 2048 115200 115200 0 115200 serial 3 2 115200 57600 0 115200 serial 5 64 115200 115200 0 115200 serial 6 262144 115200 115200 0 115200
LEDs
led 0 0,0:D:C:1 led 1 1,0:D:C:1 led 2 2,0:D:C:1 led 3 3,0:D:C:1 led 4 4,0:D:C:1 led 5 5,0:D:C:1 led 6 6,0:D:C:1 led 7 7,0:D:C:1 led 8 0,1:D:C:1 led 9 1,1:D:C:1 led 10 2,1:D:C:1 led 11 3,1:D:C:1 led 12 4,1:D:C:1 led 13 5,1:D:C:1 led 14 6,1:D:C:1 led 15 7,1:D:C:1 led 16 0,2:D:C:6 led 17 1,2:D:C:6 led 18 2,2:D:C:6 led 19 3,2:D:C:6 led 20 4,2:D:C:6 led 21 5,2:D:C:6 led 22 6,2:D:C:6 led 23 7,2:D:C:6 led 24 0,3:D:C:2 led 25 1,3:D:C:2 led 26 2,3:D:C:2 led 27 3,3:D:C:2 led 28 4,3:D:C:2 led 29 5,3:D:C:2 led 30 6,3:D:C:2 led 31 7,3:D:C:2
LED color
LED mode_color
Modes [aux]
aux 0 0 0 1700 2100 aux 1 1 3 1300 1700 aux 2 11 2 1300 1700 aux 3 11 3 1700 2100 aux 4 10 2 1700 2100
Adjustments [adjrange]
Receiver rxrange
temp_sensor
Mission Control Waypoints [wp]
#wp 0 invalid
OSD [osd_layout]
osd_layout 0 0 25 1 V osd_layout 0 1 1 8 V osd_layout 0 2 0 0 V osd_layout 0 3 8 6 V osd_layout 0 4 8 6 V osd_layout 0 9 1 6 V osd_layout 0 11 2 11 V osd_layout 0 12 2 12 V osd_layout 0 14 6 0 V osd_layout 0 15 1 2 V osd_layout 0 22 14 11 V osd_layout 0 23 1 3 V osd_layout 0 32 1 7 V osd_layout 0 34 11 2 V osd_layout 0 105 26 2 V
Programming: logic
logic 0 1 -1 2 2 28 0 250 0 logic 1 1 -1 2 2 28 0 500 0 logic 2 1 -1 2 2 28 0 1000 0 logic 3 1 -1 12 4 0 0 0 0 logic 4 1 -1 9 4 0 4 1 0 logic 5 1 -1 9 4 1 4 2 0 logic 6 1 3 25 0 1 0 0 0 logic 7 1 4 25 0 2 0 0 0 logic 8 1 5 25 0 3 0 0 0 logic 9 1 2 25 0 4 0 0 0
Programming: global variables
Programming: PID controllers
master
set looptime = 500 set gyro_main_lpf_hz = 110 set gyro_main_lpf_type = PT1 set gyro_use_dyn_lpf = ON set gyro_dyn_lpf_min_hz = 85 set gyro_dyn_lpf_max_hz = 300 set gyro_dyn_lpf_curve_expo = 3 set dynamic_gyro_notch_q = 250 set dynamic_gyro_notch_min_hz = 100 set setpoint_kalman_q = 200 set gyro_zero_x = -36 set gyro_zero_y = -23 set gyro_zero_z = 7 set ins_gravity_cmss = 980.360 set acc_hardware = MPU6000 set acczero_x = 136 set acczero_y = 6 set acczero_z = -139 set accgain_x = 4108 set accgain_y = 4097 set accgain_z = 4021 set rangefinder_hardware = MSP set opflow_hardware = MSP set opflow_scale = 13.672 set align_mag = CW270FLIP set mag_hardware = HMC5883 set magzero_x = -351 set magzero_y = -298 set magzero_z = 697 set maggain_x = 430 set maggain_y = 475 set maggain_z = 660 set align_mag_roll = 210 set align_mag_pitch = 1800 set align_mag_yaw = 900 set baro_hardware = BMP280 set serialrx_provider = CRSF set serialrx_halfduplex = OFF set blackbox_rate_denom = 2 set motor_pwm_protocol = DSHOT300 set failsafe_procedure = RTH set applied_defaults = 2 set gps_sbas_mode = AUTO set gps_ublox_use_galileo = ON set gps_ublox_use_glonass = ON set airmode_type = THROTTLE_THRESHOLD set nav_rth_altitude = 20000 set osd_crosshairs_style = AIRCRAFT set i2c_speed = 800KHZ set tz_offset = -300 set tz_automatic_dst = USA
mixer_profile
mixer_profile 1
set model_preview_type = 3
Mixer: motor mixer
mmix reset
mmix 0 1.000 -1.000 1.000 -1.000 mmix 1 1.000 -1.000 -1.000 1.000 mmix 2 1.000 1.000 1.000 1.000 mmix 3 1.000 1.000 -1.000 -1.000
Mixer: servo mixer
mixer_profile
mixer_profile 2
Mixer: motor mixer
Mixer: servo mixer
profile
profile 1
set mc_i_pitch = 90 set mc_d_pitch = 27 set mc_p_roll = 36 set mc_i_roll = 80 set mc_d_roll = 25 set mc_p_yaw = 35 set mc_i_yaw = 80 set dterm_lpf_type = PT3 set d_boost_min = 1.000 set d_boost_max = 1.000 set antigravity_gain = 2.000 set antigravity_accelerator = 5.000 set smith_predictor_delay = 1.500 set tpa_rate = 20 set tpa_breakpoint = 1200 set rc_expo = 75 set rc_yaw_expo = 75 set roll_rate = 70 set pitch_rate = 70 set yaw_rate = 60
profile
profile 2
profile
profile 3
battery_profile
battery_profile 1
set bat_cells = 4 set vbat_cell_detect_voltage = 415 set vbat_max_cell_voltage = 410 set vbat_min_cell_voltage = 280 set vbat_warning_cell_voltage = 330 set battery_capacity = 4000 set throttle_idle = 5.000
battery_profile
battery_profile 2
battery_profile
battery_profile 3
restore original profile selection
mixer_profile 1 profile 1 battery_profile 1
save configuration
save
This looks to me light it ought to be working. I hope I'm wrong about that, because if it isn't a user error, it's a hardware issue. Please tell me I've just configured something incorrectly. Is a 2A BEC not enough? I'm grasping at straws here.
According to the thread https://github.com/iNavFlight/inav/issues/9642 this might be a problem with the KakuteH7. Would that be a hardware problem or something that could be fixed in the next firmware release? I don't really mind waiting, but I want to know if I haven't broken something.