Proffie v3 board constantly rebooting when blade2Pin is defined for blade detection

Hi!

I’m running into a strange case on a Proffie v3.9 board with touch buttons set up and a few additional Neopixel strips and accent LEDs.

Upon boot it repeatedly triggers the blade removal sound and what looks like the Proffie rebooting.

Below is the full config that I have flashed which triggers the constant reboots.
This was flashed with ProffieOS 7.10 on Proffieboard v3.9

#ifdef CONFIG_TOP
#include "proffieboard_v3_config.h"
#define NUM_BLADES 6
#define NUM_BUTTONS 3
#define BLADE_DETECT_PIN blade2Pin
#define SHARED_POWER_PINS
#define VOLUME 50
#define SAVE_STATE
const unsigned int maxLedsPerStrip = 144;
#define CLASH_THRESHOLD_G 5.0
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD
#define COLOR_CHANGE_DIRECT
//#define DISABLE_DIAGNOSTIC_COMMANDS

#define IDLE_OFF_TIME 60 * 5 * 1000
#define MOTION_TIMEOUT 60 * 10 * 1000
#define ORIENTATION_ROTATION 0,20,0

#define FETT263_MOTION_WAKE_POWER_BUTTON
#define FETT263_SWING_ON
#define FETT263_SWING_ON_NO_BM
#define FETT263_SWING_ON_SPEED 400
#define FETT263_TWIST_OFF
#define FETT263_DISABLE_CHANGE_FONT
#define FETT263_DISABLE_CHANGE_STYLE
#define FETT263_DISABLE_COPY_PRESET

#define AUDIO_CLASH_SUPPRESSION_LEVEL 5
#define FILTER_CUTOFF_FREQUENCY 50
#define FILTER_ORDER 8

#define ENABLE_ALL_EDIT_OPTIONS
#define FETT263_EDIT_MODE_MENU
#define DISABLE_BASIC_PARSER_STYLES

#endif

#ifdef CONFIG_PROP
#include "../props/saber_fett263_buttons.h"
#endif

#ifdef CONFIG_PRESETS
Preset presets[] = {
  {
    "Dark;common", "",

    // Main blade

    /* copyright Fett263 DarkSaber (Primary Blade) OS6 Style
    https://fett263.com/fett263-proffieOS6-style-library.html#DarkSaber
    OS6.7 v4.021
    Single Style
    Base Style: Live Action Darksaber (Hyper-Responsive)

    Base Color: Rgb<100,100,150> (0)

    --Effects Included--
    Ignition Effect: SparkTip Ignition
    PowerUp Effect: Power Surge (Stable)
    Retraction Effect: SparkTip Retraction
    Lockup Effect: Intensity Lockup V1, Begin Effect: Real Clash, End Effect: Full Blade Absorb
    LightningBlock Effect: Responsive Lightning Block
    Drag Effect: Intensity Sparking Drag
    Melt Effect: Intensity Melt
    Stab Effect: Normal Stab
    Blast Effect: Responsive Blast Wave (Sound Based)
    Clash Effect: Real Clash V1
    Battery Level: % Blade (Green to Red)
    */

    StylePtr<Layers<Mix<HoldPeakF<SwingSpeed<400>,Scale<SwingAcceleration<>,Int<2000>,Int<4000>>,Int<8000>>,HumpFlicker<RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>,Stripes<35000,-200,Mix<Int<14000>,Black,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>>,Mix<Int<24000>,Black,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>>,Mix<Int<28000>,Black,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>>>,100>,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>>,TransitionEffectL<TrConcat<TrInstant,AudioFlickerL<RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>>,TrFade<1200>>,EFFECT_IGNITION>,TransitionEffectL<TrConcat<TrJoin<TrDelayX<WavLen<>>,TrWipeIn<200>>,AlphaL<RgbArg<STAB_COLOR_ARG,Rgb<255,255,255>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<2000>>>,TrWipe<200>>,EFFECT_STAB>,TransitionEffectL<TrWaveX<RgbArg<BLAST_COLOR_ARG,Rgb<255,255,255>>,Scale<WavLen<>,Int<100>,Int<400>>,Int<100>,Scale<WavLen<>,Int<100>,Int<400>>,Scale<BladeAngle<>,Int<28000>,Int<8000>>>,EFFECT_BLAST>,Mix<IsLessThan<ClashImpactF<>,Int<26000>>,TransitionEffectL<TrConcat<TrInstant,AlphaL<RgbArg<CLASH_COLOR_ARG,Rgb<255,255,255>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<12000>,Int<60000>>>>,TrFadeX<Scale<ClashImpactF<>,Int<200>,Int<400>>>>,EFFECT_CLASH>,TransitionEffectL<TrWaveX<RgbArg<CLASH_COLOR_ARG,Rgb<255,255,255>>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Int<100>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>,EFFECT_CLASH>>,LockupTrL<TransitionEffect<AlphaMixL<Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>,BrownNoiseFlickerL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Int<200>>,StripesX<Int<1800>,Scale<NoisySoundLevel,Int<-3500>,Int<-5000>>,Mix<Int<6425>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<12850>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>>>>,AlphaL<AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<10280>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Int<13000>>>,TrJoin<TrDelay<8000>,TrInstant>,TrFade<3000>,EFFECT_LOCKUP_BEGIN>,TrConcat<TrJoin<TrDelay<50>,TrInstant>,Mix<IsLessThan<ClashImpactF<>,Int<26000>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,AlphaL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<20000>,Int<60000>>>>>,TrFade<300>>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,TrFade<400>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,AudioFlicker<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Blue>,50,1>,TrConcat<TrInstant,AlphaL<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Int<16000>>,30>,TrSmoothFade<600>>>,LockupTrL<AlphaL<RandomPerLEDFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>>,SmoothStep<IntArg<DRAG_SIZE_ARG,28000>,Int<3000>>>,TrConcat<TrJoin<TrDelay<4000>,TrWipeIn<200>>,AlphaL<BrownNoiseFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,255,255>>,Int<300>>,SmoothStep<IntArg<DRAG_SIZE_ARG,28000>,Int<3000>>>,TrFade<4000>>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Remap<Scale<RampF,Int<65536>,Int<0>>,StaticFire<Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>,Mix<TwistAngle<>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>,RotateColorsX<Int<3000>,Mix<Int<12000>,Black,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>>,0,3,5,3000,10>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrConcat<TrWipeIn<100>,AlphaL<RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrJoin<TrDelay<4000>,TrFade<300>>,AlphaL<Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,24,0>>>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrFade<4000>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,IgnitionTime<300>>,TrWipeInSparkTipX<RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,RetractionTime<0>>,Black>,TransitionEffectL<TrConcat<TrJoin<TrDelay<2000>,TrWipe<1000>>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<BatteryLevel,Int<-10>>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>>>(),


    // Chassis accent Pixel strips

    /* copyright Fett263 (Accent LED / PCB) OS6 Style
    https://fett263.com/fett263-proffieOS6-style-library.html#DarkSaber
    OS6.7 v4.021
    Single Style
    On Behavior: AudioFlicker (Single Color)
    Off Behavior: Fast Pulse Dim-On

    Base Color: Rgb<100,100,150> (0)

    --Effects Included--
    Ignition Effect: Standard Ignition
    Retraction Effect: Standard Retraction
    */
    StylePtr<Layers<AudioFlicker<RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>,Mix<Int<16384>,Black,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>>>,InOutTrL<TrWipeX<IgnitionTime<0>>,TrWipeInX<RetractionTime<0>>,Pulsing<Mix<Int<8192>,Black,RgbArg<OFF_COLOR_ARG,Rgb<100,100,150>>>,RgbArg<OFF_COLOR_ARG,Rgb<100,100,150>>,2000>>>>(),



    /* copyright Fett263 (Accent LED / PCB) OS6 Style
    https://fett263.com/fett263-proffieOS6-style-library.html#DarkSaber
    OS6.7 v4.021
    Single Style
    On Behavior: AudioFlicker (Single Color)
    Off Behavior: Fast Pulse Dim-On

    Base Color: Rgb<100,100,150> (0)

    --Effects Included--
    Ignition Effect: Standard Ignition
    Retraction Effect: Standard Retraction
    */
    StylePtr<Layers<AudioFlicker<RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>,Mix<Int<16384>,Black,RgbArg<BASE_COLOR_ARG,Rgb<100,100,150>>>>,InOutTrL<TrWipeX<IgnitionTime<0>>,TrWipeInX<RetractionTime<0>>,Pulsing<Mix<Int<8192>,Black,RgbArg<OFF_COLOR_ARG,Rgb<100,100,150>>>,RgbArg<OFF_COLOR_ARG,Rgb<100,100,150>>,2000>>>>(),


    // Control card white accents
    /* copyright Fett263 (Accent LED / PCB) OS6 Style
    https://fett263.com/fett263-proffieOS6-style-library.html#DarkSaber
    OS6.7 v4.021
    Single Style
    On Behavior: AudioFlicker (Single Color)
    Off Behavior: Off

    Base Color: Rgb<255,255,255> (0)

    --Effects Included--
    Ignition Effect: Standard Ignition
    Retraction Effect: Standard Retraction
    */
    StylePtr<Layers<AudioFlicker<RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<16384>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>>>,InOutTrL<TrWipeX<IgnitionTime<0>>,TrWipeInX<RetractionTime<0>>,Black>>>(),
    /* copyright Fett263 (Accent LED / PCB) OS6 Style
    https://fett263.com/fett263-proffieOS6-style-library.html#DarkSaber
    OS6.7 v4.021
    Single Style
    On Behavior: AudioFlicker (Single Color)
    Off Behavior: Off

    Base Color: Rgb<255,255,255> (0)

    --Effects Included--
    Ignition Effect: Standard Ignition
    Retraction Effect: Standard Retraction
    */
    StylePtr<Layers<AudioFlicker<RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<16384>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>>>,InOutTrL<TrWipeX<IgnitionTime<0>>,TrWipeInX<RetractionTime<0>>,Black>>>(),
    /* copyright Fett263 (Accent LED / PCB) OS6 Style
    https://fett263.com/fett263-proffieOS6-style-library.html#DarkSaber
    OS6.7 v4.021
    Single Style
    On Behavior: AudioFlicker (Single Color)
    Off Behavior: Off

    Base Color: Rgb<255,255,255> (0)

    --Effects Included--
    Ignition Effect: Standard Ignition
    Retraction Effect: Standard Retraction
    */
    StylePtr<Layers<AudioFlicker<RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>,Mix<Int<16384>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,255>>>>,InOutTrL<TrWipeX<IgnitionTime<0>>,TrWipeInX<RetractionTime<0>>,Black>>>(),

    "dark"
  }
};

template<int ohms = 70>
struct TwoWhiteAccents {
  static constexpr float MaxAmps = 0.01;
  static constexpr float MaxVolts = 3.0;
  static constexpr float P2Amps = 0.0079;
  static constexpr float P2Volts = 3.15;
  static constexpr float R = ohms;
  static const int Red = 255;
  static const int Green = 255;
  static const int Blue = 255;
};

BladeConfig blades[] = {
  {
    0,
    WS281XBladePtr<136, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3>>(),
    SubBladeReverse(0, 4, WS281XBladePtr<5, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin5>>()),
    SubBladeReverse(0, 4, WS281XBladePtr<5, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin5>>()),
    DimBlade(20, SimpleBladePtr<TwoWhiteAccents<140>, NoLED, NoLED, NoLED, bladePowerPin1, -1, -1, -1>()),
    DimBlade(20, SimpleBladePtr<TwoWhiteAccents<140>, NoLED, NoLED, NoLED, bladePowerPin4, -1, -1, -1>()),
    DimBlade(20, SimpleBladePtr<TwoWhiteAccents<140>, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>()),
    CONFIGARRAY(presets)
  }
};
#endif

#ifdef CONFIG_BUTTONS
TouchButton PowerButton(BUTTON_POWER, powerButtonPin, 1700, "pow");
TouchButton AuxButton(BUTTON_AUX, auxPin, 1700, "aux");
TouchButton Aux2Button(BUTTON_AUX2, aux2Pin, 1700, "aux2");
#endif

Here’s the serial monitor output showing that it’s constantly rebooting

Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing Dark/boot/boot1.wav
channels: 1 rate: 44100 bits: 16
EVENT: SeActivating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16
Welcome to ProffieOS v7.8
For available serial commands, see:
https://pod.hubbe.net/tools/serial-monitor-commands.html
EVENT: Select-On millis=4369
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-Off millis=4547
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16
Amplifier off.
EVENT: Select-On millis=5557
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-Off millis=5722
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-On millis=6058
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-Off millis=6238
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-On millis=6646
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-Off millis=6817
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-On millis=7319
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-Off millis=7499
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-On millis=7860
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-Off millis=8014
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-On millis=8353
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-Off millis=8507
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-On millis=8666
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-Off millis=8848
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16
Amplifier off.
EVENT: Select-On millis=9853
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-Off millis=10021
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-On millis=10552
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-Off millis=10708
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done

... ad nauseum

I have tried a few variations of this

  1. Attempt: Simplifying down to 1 WS281XBladePtr blade and 1 TouchButton
    Result: Proffie boots up with blade removal sound and gesture controls are non-responsive. I’m going to guess here that Fett263’s gesture sleep kicked in pausing gesture controls when blade detect doesn’t detect a blade

  2. Attempt: Change TouchButton to regular Button
    Result: No issues. Saber does not boot with blade removal sound and does not constantly reboot. Gesture controls are functional, presumably because gesture sleep didn’t kick in yet

  3. Attempt: Downgrading to Proffie OS7.7
    Result: Same behaviour with constant reboots

  4. Attempt: Desolder blade1Pin and blade2Pin
    Result: Same behaviour with constant reboots

  5. Attempt: Test on another Proffieboard v3.9 with only speaker wired up
    Result: Exact same behaviour without anything else wired up

I can run a few more tests and post the results here such as attempting on a new Proffieboard v2.2 as well as isolating out the accent Neopixel strips and the accent LEDs.

I’ve done a few similar installs with TouchButtons and accent LEDs (not Neopixel accent strips for those installs) on Proffieboard v2.2 and haven’t encountered this issue.

Have you tried calibrating the touch buttons?

Ran monitor touch and here are the results

Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing Dark/boot/boot3.wav
channels: 1 rate: 44100 bits: 16
EVENT: SeWelcome to ProffieOS v7.8
For available serial commands, see:
https://pod.hubbe.net/tools/serial-monitor-commands.html
EVENT: Select-On millis=11025
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-Off millis=11180
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-On millis=11927
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16
EVENT: Select-Off millis=12101
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16
Amplifier off.
Touch aux = 8192 (8192 MAX!  - 8192 MAX! )
Touch pow = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Touch pow = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Unmounting SD Card.
Touch aux = 8192 (8192 MAX!  - 8192 MAX! )
Touch pow = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux = 8192 (8192 MAX!  - 8192 MAX! )
Touch pow = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Touch pow = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux = 8192 (8192 MAX!  - 8192 MAX! )
EVENT: Select-On millis=14381
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16
Touch aux = 8192 (10000000 - 0)
EVENT: Select-Off millis=14565
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16
Touch pow = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux = 8192 (10000000 - 0)
Touch pow = 8192 (10000000 - 0)
Touch aux = 8192 (8192 MAX!  - 8192 MAX! )
Touch pow = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
EVENT: Select-On millis=15061
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16
Touch aux = 8192 (8192 MAX!  - 8192 MAX! )
EVENT: Select-Off millis=15242
blade = 0
WS2811 Blade with 136 leds.
WS2811 Blade with 5 leds.
WS2811 Blade with 5 leds.
Simple Blade
Simple Blade
Simple Blade
Style RAM = 1464
Style RAM = 132
Style RAM = 132
Style RAM = 104
Style RAM = 104
Style RAM = 104
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16
Touch pow = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux = 8192 (10000000 - 0)
Touch pow = 8192 (10000000 - 0)
Touch aux = 8192 (8192 MAX!  - 8192 MAX! )
Touch pow = 8192 (8192 MAX!  - 8192 MAX! )

This was on the bare Proffieboard v3.9 with only the speaker wired up with the same config and it’s still triggering the issue. From my brief understanding, since the currently detected values are a max value (arbitrarily 8192) and my threshold is set at 1700, it shouldn’t be triggering the touch buttons. In both the above tests and this one I’m not touching the touch buttons as the board is resetting.

Some more data points:

Tested a bare install, speaker only, to a Proffieboard v2.2 with the same config. No issues with rebooting

Also pulled up more serial monitor logs. This is on the Proffieboard v3.9 with only the speaker wired up.

Edit: Disregard the below log. I believe this was flashed on a Proffie v3.9 board with The V2 base config with Proffieboard v2 selected in Arduino

Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux = 1 (1 - 1)
Touch pow = 1 (1 - 1)
Motion chip ... Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux = 1 (1 - 1)
Touch pow = 1 (1 - 1)
EVENT: Aux2-SavedShortclick#1 millis=23017
EVENT: Aux2-SaMotion chip timeout, trying auto-reboot of motion chip!
Touch aux = 1 (1 - 1)
Touch pow = 1 (1 - 1)
Touch aux2 = 1 (1 - 8192 MAX! )
EVENT: Aux2-Pressed#1 millis=30232
EVENT: Aux2-Pressed millis=30232
EVENT: Aux2-Released#1 millis=30267
EVENT: Aux2-Released millis=30267
EVENT: Aux2-Shortclick#1 millis=30267
EVENT: Aux2-Shortclick millis=30267
Touch aux2 = 8192 (1 - 8192 MAX! )
Touch aux = 1 (1 - 1)
Touch pow = 1 (1 - 1)
Motion chip ... Touch aux = 1 (1 - 1)
Touch pow = 1 (1 - 1)
Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
EVENT: Aux2-SavedShortclick#1 millis=30733
EVENT: Aux2-SavedShortclick millis=30733
Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux = 1 (1 - 1)
Touch pow = 1 (1 - 1)
Motion chip timeout, trying auto-reboot of motion chip!
EVENT: Aux2-Pressed#1 millis=30875
EVENT: Aux2-Pressed millis=30875
EVENT: Aux2-Released#1 millis=30910
EVENT: Aux2-Released millis=30910
EVENT: Aux2-Shortclick#1 millis=30910
EVENT: Aux2-Shortclick millis=30910
Touch aux2 = 8192 (1 - 8192 MAX! )
Touch aux = 1 (1 - 1)
Touch pow = 1 (1 - 1)
Motion chip ... Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux = 1 (1 - 1)
Touch pow = 1 (1 - 1)
EVENT: Aux2-SavedShortclick#1 millis=31376
EVENT: Aux2-SavedShortclick millis=31376
Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux = 1 (1 - 1)
Touch pow = 1 (1 - 1)
Motion chip timeout, trying auto-reboot of motion chip!
EVENT: Aux2-Pressed#1 millis=31518
EVENT: Aux2-Pressed millis=31518
EVENT: Aux2-Released#1 millis=31553
EVENT: Aux2-Released millis=31553
EVENT: Aux2-Shortclick#1 millis=31553
EVENT: Aux2-Shortclick millis=31553
Touch aux2 = 8192 (1 - 8192 MAX! )
Touch aux = 1 (1 - 1)
Touch pow = 1 (1 - 1)
Motion chip ... Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux = 1 (1 - 1)
Touch pow = 1 (1 - 1)
EVENT: Aux2-SavedShortclick#1 millis=32019
EVENT: Aux2-SavedShortclick millis=32019
Touch pow = 1 (1 - 1)
Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux = 1 (1 - 1)
Motion chip timeout, trying auto-reboot of motion chip!
EVENT: Aux2-Pressed#1 millis=32161
EVENT: Aux2-Pressed millis=32161
EVENT: Aux2-Released#1 millis=32196
EVENT: Aux2-Released millis=32196
EVENT: Aux2-Shortclick#1 millis=32196
EVENT: Aux2-Shortclick millis=32196
Touch aux2 = 8192 (1 - 8192 MAX! )
Touch aux = 1 (1 - 1)
Touch pow = 1 (1 - 1)
Touch aux = 1 (1 - 1)
Touch pow = 1 (1 - 1)
Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Motion chip ... Touch aux2 = 8192 (8192 MAX!  - 8192 MAX! )
Touch aux = 1 (1 - 1)
Touch pow = 1 (1 - 1)
EVENT: Aux2-SavedShortclick#1 millis=32662
EVENT: Aux2-SavedShortclick millis=32662
Motion chip timeout, trying auto-reboot of motion chip!
EVENT: Aux2-Pressed#1 millis=32804
EVENT: Aux2-Pressed millis=32804
Touch aux2 = 8192 (1 - 8192 MAX! )
EVENT: Aux2-Released#1 millis=32839
EVENT: Aux2-Released millis=32839
EVENT: Aux2-Shortclick#1 millis=32839
EVENT: Aux2-Shortclick millis=32839

I don’t know why you’d get this.

I just recalled that the log in my last post was flashed with the config set to the Proffie v2 base config with Proffieboard V2 selected in Arduino. Likely safe to disregard unless it provides some additional insight.

The current state is that the same config does not trigger reboots on a Proffie v2.2 board (with only the speaker wired) but it does on a Proffie v3.9 board (with only the speaker wired). So I suppose it’s safe to rule out a wiring fault.

Are you sure it’s reboots?
I’m thinking that they are just random button clicks, causing you to go to the next/previous preset maybe?

Good call! I just checked with adding a few more presets and it is booting back into the same preset with a blade removal sound from blade detection.

Still in the process of testing out different scenarios but ran into the following interesting case:

Attempt: Change BLADE_DETECT_PIN from blade2Pin to blade5Pin

Result: Reboot issue is gone. But blade 5 with the following definition

DimBlade(50, SimpleBladePtr<TwoWhiteAccents<140>, NoLED, NoLED, NoLED, bladePowerPin4, -1, -1, -1>())

Has a constant flickering even though off behaviour is set such that the LEDs are off while main blade is off. There are 2 other accent LED blade definitions which behave as expected, off while main blade is off, and on while main blade is on. When all TouchButtons are commented out, all the blades behave correctly. The touch buttons still are not responding in this test case.

Also I thought it was a fluke but on the fully installed saber, when I flashed the config with BLADE_DETECT_PIN set to blade2Pin, blade detection was not working. But when I changed it to blade5Pin/Free1 blade detection was working.

Right now I’m not sure which are directly related to the original “rebooting” issue. But it seems like the blade data pads may have something to do with it?

I’m going to work on reducing the config so we have a test case for the “reboot” issue without interacting with the accent LEDs for now.

Here we are. The following config reproduces the “reboot” issue with only 1 blade.

#ifdef CONFIG_TOP
#include "proffieboard_v3_config.h"
#define NUM_BLADES 1
#define NUM_BUTTONS 2
#define BLADE_DETECT_PIN blade2Pin
#define VOLUME 50
#define SAVE_STATE
const unsigned int maxLedsPerStrip = 144;
#define CLASH_THRESHOLD_G 5.0
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD
#define COLOR_CHANGE_DIRECT
//#define DISABLE_DIAGNOSTIC_COMMANDS
#define SPEAK_TOUCH_VALUES

#endif

#ifdef CONFIG_PROP
#include "../props/saber_fett263_buttons.h"
#endif

#ifdef CONFIG_PRESETS
Preset presets[] = {
  {
    "Dark;common", "",
    StylePtr<InOutHelper<Red,300,800>>(),
    "dark"
  },
  {
    "Blue;common", "",
    StylePtr<InOutHelper<Red,300,800>>(),
    "blue"
  }
};

BladeConfig blades[] = {
  {
    0,
    WS281XBladePtr<136, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3>>(),
    CONFIGARRAY(presets)
  }
};
#endif

#ifdef CONFIG_BUTTONS
TouchButton PowerButton(BUTTON_POWER, powerButtonPin, 1700, "pow");
TouchButton AuxButton(BUTTON_AUX, auxPin, 1700, "aux");
#endif

I’ve also ran into another case with the above config

Attempt: Reduce number of touch buttons down to 1.
Result: The blade removal sound is heard only once on boot

Compared to increasing to 2 touch buttons where it’s constantly in the “reboot” cycle

I’ve added logging to stm32l4_touchbutton.h. This is still with BLADE_DETECT_PIN set to blade2Pin

  void Update(int value) {
    -snip-
    STDOUT.println();
    STDOUT.println(threshold_);
    STDOUT.println(value);
    STDOUT.println(is_pushed_);
    STDOUT.println("Is button pushed?");
    STDOUT.println();
  }

I’ve changed the TouchButton threshold to 1. Here’s my serial monitor output showing that my new threshold is set correctly, the detected touch value is greater than my threshold. And as per the Update() call, the button is not marked as pushed. But it’s still “rebooting”

Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16

1
8192
0
Is button pushed?

Welcome to ProffieOS v7.8
For available serial commands, see:
https://pod.hubbe.net/tools/serial-monitor-commands.html
EVENT: Select-Off millis=10207
blade = 0
WS2811 Blade with 136 leds.
Style RAM = 28
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16

1
8192
0
Is button pushed?

EVENT: Select-On millis=10343
blade = 0
WS2811 Blade with 136 leds.
Style RAM = 28
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladein.wav
channels: 1 rate: 44100 bits: 16

1
8192
0
Is button pushed?

EVENT: Select-Off millis=10480
blade = 0
WS2811 Blade with 136 leds.
Style RAM = 28
Scanning sound font: Dark done
Scanning sound font: common done
Activating polyphonic font.
Activating SmoothSwing V2
Accent Swings Enabled.
Polyphonic swings: 16
Monophonic swings: 0
Accent Slashes NOT Detected: 
unit = 0 vol = 0.50, Playing common/bladeout.wav
channels: 1 rate: 44100 bits: 16

1
8192
0
Is button pushed?

Unfortunately this is a blocker for a Proffie v3.9 install and it wouldn’t make sense to downgrade to a Proffie v2.2 board just to get this working.

Your serial output is indicating that blade detect is fluctuating:

Obviously using touch buttons isn’t supposed to affect blade detect, but it seems like it does for some reason.

Does it help to put blade detect on another pin?

So I just tried moving blade detection from blade2Pin to blade5Pin as well as removing it outright. I get the following behaviour

  • most of the functions of the saber work as expected
  • touch buttons still do not work
  • one of the accent LEDs I configured have a constant flickering when the blade is off, behaves normally when blade is on

I’m thinking that these issues after moving or removing blade detection is separate from the main blade detection rebooting issue.

I’m thinking that blade detection is the “rebooting issue”.
Basically it’s detecting that the blade is in, then out, then in, and each time it has to re-start almost eventhing, like a reboot.

I thought you didn’t have anything soldered up to the touch buttons?
What exactly do you mean by “do not work”?

Sorry, I tested it with two separate test cases in my previous reply.

The first is on the bare Proffieboard v3.9, changed to blade5Pin and then removed it outright as well. There was no reboot issue and I’m also able to send commands to turn on or off the saber.

The second test, is back on my original install with the original config. Changed the blade5Pin as well as removed blade detection, essentially replicating the recent blade detection changes, and saw the behaviour noted in the most recent post. Most functions work as is the same behaviour on the bare Proffie v3.9, but touch values are not reflecting changes when I press the touch button along with the flickering behaviour on one of the LED power pads.

I’m spawning off a separate thread to track the issue with touch button values not updating as well as the flickering on bladePowerPin4.

For the purposes of this current thread, the issue we want to track is why bladePin2 is detecting fluctuating blade detection.

Isn’t the fluctuation connected to the touch button somehow though? Or does it happen if you use bladePin2 without touch buttons too?

Yes I believe so. I’ve just tested the simplified case with 1 TouchButton and BLADE_DETECT_PIN set to blade2Pin and with the latest fix the constant blade detect fluctuation issue is resolved!

Thank you!

1 Like