Proffie v2.2 swing & clash, troublesome

Helle there

I’ve upgrading my old sabers to proffie, all is good.

But one of my proffie boards works different from my other boards, even with same config etc.

There’s no swing sound, but if i clash, the clash comes, and I kinda hear the swing in the background, so it’s there, but only when clashing.

I have 5 other sabers with proffie, and some with a copy of same config and they work :slight_smile:

Any ideas?

And heres the test config:

// ProffieOS7 Config File
#ifdef CONFIG_TOP
#include "proffieboard_v2_config.h"
#define NUM_BLADES 2
#define NUM_BUTTONS 1
const unsigned int maxLedsPerStrip = 144;
#define VOLUME 1000
#define BOOT_VOLUME 800
#define CLASH_THRESHOLD_G 3
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD
#define FILTER_CUTOFF_FREQUENCY 320
#define FILTER_ORDER 8
#define MOTION_TIMEOUT 60 * 15 * 1000
#define IDLE_OFF_TIME 60 * 15 * 1000
#define DISABLE_BASIC_PARSER_STYLES
#define DISABLE_DIAGNOSTIC_COMMANDS
#define ENABLE_ALL_EDIT_OPTIONS
#define NO_REPEAT_RANDOM
#define COLOR_CHANGE_DIRECT
#define FETT263_EDIT_MODE_MENU
#define FETT263_DUAL_MODE_SOUND
#define FETT263_SAY_COLOR_LIST
#define FETT263_SAY_COLOR_LIST_CC
#define FETT263_SAY_BATTERY_PERCENT
#define FETT263_QUOTE_PLAYER_START_ON
#define FETT263_DISABLE_CHANGE_STYLE
#define FETT263_DISABLE_COPY_PRESET
#define FETT263_RANDOMIZE_QUOTE_PLAYER
#define FETT263_LOCKUP_DELAY 200
#define FETT263_BM_CLASH_DETECT 6
#endif

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


#ifdef CONFIG_PRESETS

Preset presets[] = {
{ "Ahsoka;common",  "Ahsoka/tracks/tracks2.waw",
/* copyright Fett263 Rotoscope (Primary Blade) OS7 Style
https://fett263.com/fett263-proffieOS7-style-library.html#Rotoscope
OS7.12 v1.017-p
Single Style
Base Style: Hyper Responsive Rotoscope (Original Trilogy)

Base Color: BaseColorArg (0)

--Effects Included--
Ignition Effect: Standard Ignition [Color: IgnitionColorArg]
PowerUp Effect: Power Flash [Color: IgnitionColorArg]
Retraction Effect: Fade Out [Color: RetractionColorArg]
Lockup Effect: Intensity Lockup V1, Begin Effect: Full Blade Flash, End Effect: Full Blade Absorb [Color: LockupColorArg]
LightningBlock Effect: Responsive Lightning Block [Color: LBColorArg]
Drag Effect: Intensity Sparking Drag [Color: DragColorArg]
Melt Effect: Intensity Melt [Color: StabColorArg]
Blast Effect: Blast Wave (Random) [Color: BlastColorArg]
Clash Effect: Flash on Clash (Full Blade) [Color: ClashColorArg]
Battery Level: Full Blade (Green to Red)
Battery Monitor: Passive Battery Monitor (Boot)
Power Save: 25% Increment
*/
StylePtr<Layers<Mix<HoldPeakF<SwingSpeed<250>,Scale<SwingAcceleration<100>,Int<50>,Int<500>>,Scale<SwingAcceleration<>,Int<20000>,Int<10000>>>,RandomFlicker<StripesX<Int<15000>,Scale<HoldPeakF<SwingSpeed<200>,Scale<SwingAcceleration<100>,Int<50>,Int<300>>,Scale<SwingAcceleration<100>,Int<24000>,Int<16000>>>,Int<-3200>,Int<-200>>,RgbArg<BASE_COLOR_ARG,Rgb<238,255,0>>,RgbArg<BASE_COLOR_ARG,Rgb<238,255,0>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<238,255,0>>>,RgbArg<BASE_COLOR_ARG,Rgb<238,255,0>>,Mix<Int<19276>,Black,RgbArg<BASE_COLOR_ARG,Rgb<238,255,0>>>>,RgbArg<BASE_COLOR_ARG,Rgb<238,255,0>>>,RgbArg<BASE_COLOR_ARG,Rgb<238,255,0>>>,TransitionEffectL<TrConcat<TrJoin<TrDelayX<IgnitionTime<300>>,TrInstant>,RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,TrFade<1000>>,EFFECT_IGNITION>,TransitionEffectL<TrWaveX<RgbArg<BLAST_COLOR_ARG,Rgb<255,255,255>>,Scale<EffectRandomF<EFFECT_BLAST>,Int<100>,Int<400>>,Int<100>,Scale<EffectPosition<EFFECT_BLAST>,Int<100>,Int<400>>,Scale<EffectPosition<EFFECT_BLAST>,Int<28000>,Int<8000>>>,EFFECT_BLAST>,TransitionEffectL<TrConcat<TrJoin<TrDelay<30>,TrInstant>,RgbArg<CLASH_COLOR_ARG,Rgb<255,255,255>>,TrFade<300>>,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<TrInstant,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,255,255>>,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,68,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>,Mix<TwistAngle<>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>,RotateColorsX<Int<3000>,Mix<Int<12000>,Black,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>>,0,3,5,3000,10>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrConcat<TrWipeIn<100>,AlphaL<RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrJoin<TrDelay<4000>,TrFade<300>>,AlphaL<Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>,SmoothStep<IntArg<MELT_SIZE_ARG,28000>,Int<4000>>>,TrFade<4000>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,InOutTrL<TrWipeX<BendTimePowInvX<IgnitionTime<300>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>,TrFadeX<BendTimePowInvX<RetractionTime<0>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>,Black>,EffectSequence<EFFECT_POWERSAVE,AlphaL<Black,Int<8192>>,AlphaL<Black,Int<16384>>,AlphaL<Black,Int<24576>>,AlphaL<Black,Int<0>>>,TransitionEffectL<TrConcat<TrJoin<TrDelay<2000>,TrInstant>,Mix<BatteryLevel,Red,Green>,TrFade<300>>,EFFECT_BATTERY_LEVEL>,TransitionEffectL<TrConcat<TrJoin<TrDelay<2000>,TrInstant>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<IntArg<EMITTER_SIZE_ARG,2000>,Int<-4000>>>,TrFade<300>>,EFFECT_BOOT>>>(),

/* copyright Fett263 Rotoscope (Accent LED / PCB) OS7 Style
https://fett263.com/fett263-proffieOS7-style-library.html#Rotoscope
OS7.12 v1.017-p
Single Style
Base Style: Hyper Responsive Rotoscope (Original Trilogy)

Off Behavior: Off [Color: OffColorArg]

Base Color: BaseColorArg (0)

--Effects Included--
Ignition Effect: Instant [Color: IgnitionColorArg]
Retraction Effect: Instant [Color: RetractionColorArg]
*/
StylePtr<Layers<Mix<HoldPeakF<SwingSpeed<250>,Scale<SwingAcceleration<100>,Int<50>,Int<500>>,Scale<SwingAcceleration<>,Int<20000>,Int<10000>>>,RandomFlicker<StripesX<Int<15000>,Scale<HoldPeakF<SwingSpeed<200>,Scale<SwingAcceleration<100>,Int<50>,Int<300>>,Scale<SwingAcceleration<100>,Int<24000>,Int<16000>>>,Int<-3200>,Int<-200>>,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>>,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>,Mix<Int<19276>,Black,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>>>,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>>,RgbArg<BASE_COLOR_ARG,Rgb<0,0,255>>>,InOutTrL<TrInstant,TrInstant,Black>>>(),

"preset0"
},

};

struct UltraSabersStarWhiteTemplate {
  static constexpr float MaxAmps = 1.0;
  static constexpr float MaxVolts = 3.7;
  static constexpr float P2Amps = 0.7;
  static constexpr float P2Volts = 3.5;
  static constexpr float R = 0;
  // LED color
  static const int Red = 255;
  static const int Green = 255;
  static const int Blue = 255;
};

struct UltraSabersStarRedTemplate {
  static constexpr float MaxAmps = 1.0;
  static constexpr float MaxVolts = 2.6;
  static constexpr float P2Amps = 0.7;
  static constexpr float P2Volts = 2.4;
  static constexpr float R = 0;
  // LED color
  static const int Red = 255;
  static const int Green = 0;
  static const int Blue = 0;
};

struct UltraSabersStarGreenTemplate {
  static constexpr float MaxAmps = 1.0;
  static constexpr float MaxVolts = 4.5;
  static constexpr float P2Amps = 0.7;
  static constexpr float P2Volts = 4.2;
  static constexpr float R = 0;
  // LED color
  static const int Red = 0;
  static const int Green = 255;
  static const int Blue = 0;
};

struct UltraSabersStarBlueTemplate {
  static constexpr float MaxAmps = 1.0;
  static constexpr float MaxVolts = 3.7;
  static constexpr float P2Amps = 0.7;
  static constexpr float P2Volts = 3.5;
  static constexpr float R = 0;
  // LED color
  static const int Red = 0;
  static const int Green = 0;
  static const int Blue = 255;
};

struct AccentBlue {
  static constexpr float MaxAmps = 0.015;
  static constexpr float MaxVolts = 2.8;
  static constexpr float P2Amps = 0.012;
  static constexpr float P2Volts = 2.5;
  static constexpr float R = 0;
  // LED color
  static const int Red = 0;
  static const int Green = 0;
  static const int Blue = 255;
};

struct UltraSabersStarWhite : public UltraSabersStarWhiteTemplate {};
struct UltraSabersStarRed : public UltraSabersStarRedTemplate { typedef UltraSabersStarWhite SUBTRACT; };
struct UltraSabersStarGreen : public UltraSabersStarGreenTemplate { typedef UltraSabersStarWhite SUBTRACT; };
struct UltraSabersStarBlue : public UltraSabersStarBlueTemplate { typedef UltraSabersStarWhite SUBTRACT; };

BladeConfig blades[] = {
  { 0,  SimpleBladePtr<UltraSabersStarRed, UltraSabersStarBlue, UltraSabersStarGreen, UltraSabersStarWhite,
                       bladePowerPin1, bladePowerPin2, bladePowerPin3, bladePowerPin4>(),
	SimpleBladePtr<AccentBlue, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),					   
    CONFIGARRAY(presets) },
};
#endif

#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
#endif

 /* Generated with Fett263 Config Helper v3.0 */

Easier to show here

One possibility is a broken gyro.
If you take out DISABLE_DIAGNOSTIC_COMMANDS you can use “monitor gyro” to see the gyro values in the serial monitor.

I Guess it looks fine, the thingie changes numbers :slight_smile:

> GYRO: -3.03, 2.73, -0.87
> 
> GYRO: -3.06, 2.81, -0.73
> 
> GYRO: -3.08, 2.95, -0.90
> 
> GYRO: -2.98, 2.83, -0.59
> 
> GYRO: -2.94, 2.96, -0.90
> 
> GYRO: -2.87, 2.79, -1.03
> 
> GYRO: -2.85, 2.88, -0.94
> 
> GYRO: -3.09, 3.01, -0.89
> 
> GYRO: -3.00, 2.97, -1.02
> 
> GYRO: -3.14, 2.76, -0.75
> 
> GYRO: -2.96, 2.77, -0.81
> 
> GYRO: -2.92, 2.82, -0.82
> 
> GYRO: -3.16, 2.57, -0.89
> 
> GYRO: -2.82, 2.76, -0.74
> 
> GYRO: -2.97, 2.78, -0.92
> 
> EVENT: ?48 millis=316591
> 
> EVENT MENU TURN LEFT
> 
> GYRO: -2.89, 2.93, -0.89
> 
> GYRO: -2.97, 2.57, -0.84
> 
> GYRO: -3.00, 2.66, -1.13
> 
> GYRO: -3.04, 2.70, -0.65
> 
> GYRO: -3.03, 2.79, -0.78
> 
> GYRO: -3.01, 2.65, -0.97
> 
> GYRO: -3.11, 2.99, -0.88
> 
> GYRO: -2.96, 2.68, -0.66
> 
> GYRO: -2.98, 2.72, -0.76
> 
> GYRO: -3.03, 3.19, -0.93
> 
> GYRO: -2.98, 3.02, -0.72
> 
> GYRO: -2.85, 2.67, -0.70
> 
> GYRO: -3.08, 2.78, -0.76
> 
> GYRO: -2.76, 2.70, -0.82
> 
> EVENT: ?47 millis=319475
> 
> EVENT MENU TURN RIGHT
> 
> EVENT: ?47 millis=319580
> 
> EVENT MENU TURN RIGHT
> 
> GYRO: -3.09, 2.81, -0.80
> 
> GYRO: -2.97, 2.96, -0.81
> 
> EVENT: ?48 millis=319846
> 
> EVENT MENU TURN LEFT
> 
> GYRO: -3.02, 2.58, -0.84
> 
> Battery voltage: 4.09
> 
> EVENT: Clash millis=320080
> 
> GYRO: -2.96, 2.92, -0.86
> 
> GYRO: -2.86, 2.73, -0.70
> 
> GYRO: -3.04, 2.83, -0.77
> 
> GYRO: -3.05, 2.78, -0.86
> 
> GYRO: -3.17, 2.80, -0.96
> 
> GYRO: -3.05, 2.82, -0.87
> 
> GYRO: -3.02, 2.66, -0.69
> 
> GYRO: -2.97, 2.83, -0.77

Looks reasonable. (If the saber is sitting on your desk.)
Does the numbers get bigger if you swing it around too?

Not much, only low numbers, I just changed the board, and it worked right away, and getting very higher numbers when swing with new board.
So I guess something is rotten with the other board

Sounds like it.
Do you have warranty on this board? (If so, you should use it.)

I bought looong time ago :slight_smile: so probably not, but I need a board for a Rey Gun, I guess I wont need acceleration in a gun :slight_smile:

1 Like