89sabers HERO V1 is no longer working. help me

Nice to meet you all. My SD card got corrupted and stopped working at all. I’m wondering if the config file is wrong, but I’m having trouble figuring out what to use. I’m an amateur, but I’m going to manage to get the ARDUINO environment in order. The OS used is 5.9. Please lend us your help.

For the SD card, “ProffieOS/TeensySaber Default SD card file” is prepared.
I created some config files by myself and tried writing to the board with OS 5.9, but it does not work.
There is a recognition of SD card presence or absence and an Arduino write completion beep, so you don’t want to think that Proffiebord itself is corrupted.

Generally, it’s best to get the config file from the person/company who installed your saber.
There might have been one on the SD card isn’t working, then that won’t help.
If you don’t have the config file, and you can’t get it from the installer, then we can make a new one, but we would need to know how your saber is wired.

1 Like

Thank you for your reply. I’m really amateurish and embarrassed, but I’ll try to paste the image.
I still didn’t understand enough.
The hilt has two buttons: POW and AUX.
Chassis is a type with a button on the back side and two small LEDs that respond to it.


Here is a suggestion for a config file you could start with:
Note, I didn’t actually test this, hopefully it works…

#ifdef CONFIG_TOP
#include "proffieboard_v2_config.h"
#define NUM_BLADES 3
#define NUM_BUTTONS 2
#define VOLUME 1000
const unsigned int maxLedsPerStrip = 144;
#define CLASH_THRESHOLD_G 1.0
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD
#endif

#ifdef CONFIG_PRESETS
Preset presets[] = {
   { "TeensySF", "tracks/venus.wav",
    StyleNormalPtr<CYAN, WHITE, 300, 800>(),
    StyleNormalPtr<CYAN, WHITE, 300, 800>(), "cyan"},
   { "SmthJedi", "tracks/mars.wav",
    StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 800> >(),
    StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 800> >(), "blue"},
   { "SmthGrey", "tracks/mercury.wav",
    StyleFirePtr<RED, YELLOW, 0>(),
    StyleFirePtr<RED, YELLOW, 1>(), "fire"},
   { "SmthFuzz", "tracks/uranus.wav",
    StyleNormalPtr<RED, WHITE, 300, 800>(),
    StyleNormalPtr<RED, WHITE, 300, 800>(), "red"},
   { "RgueCmdr", "tracks/venus.wav",
    StyleFirePtr<BLUE, CYAN, 0>(),
    StyleFirePtr<BLUE, CYAN, 1>(), "blue fire"},
   { "TthCrstl", "tracks/mars.wav",
    StylePtr<InOutHelper<EASYBLADE(OnSpark<GREEN>, WHITE), 300, 800> >(),
    StylePtr<InOutHelper<EASYBLADE(OnSpark<GREEN>, WHITE), 300, 800> >(),
    StylePtr<InOutHelper<EASYBLADE(OnSpark<GREEN>, WHITE), 300, 800> >(), "green"},
   { "TeensySF", "tracks/mercury.wav",
    StyleNormalPtr<WHITE, RED, 300, 800, RED>(),
    StyleNormalPtr<WHITE, RED, 300, 800, RED>(),
    StyleNormalPtr<WHITE, RED, 300, 800, RED>(), "white"},
   { "SmthJedi", "tracks/uranus.wav",
    StyleNormalPtr<AudioFlicker<YELLOW, WHITE>, BLUE, 300, 800>(),
    StyleNormalPtr<AudioFlicker<YELLOW, WHITE>, BLUE, 300, 800>(),
    StyleNormalPtr<AudioFlicker<YELLOW, WHITE>, BLUE, 300, 800>(), "yellow"},
   { "SmthGrey", "tracks/venus.wav",
    StylePtr<InOutSparkTip<EASYBLADE(MAGENTA, WHITE), 300, 800> >(),
    StylePtr<InOutSparkTip<EASYBLADE(MAGENTA, WHITE), 300, 800> >(),
    StylePtr<InOutSparkTip<EASYBLADE(MAGENTA, WHITE), 300, 800> >(), "magenta"},
   { "SmthFuzz", "tracks/mars.wav",
    StyleNormalPtr<Gradient<RED, BLUE>, Gradient<CYAN, YELLOW>, 300, 800>(),
    StyleNormalPtr<Gradient<RED, BLUE>, Gradient<CYAN, YELLOW>, 300, 800>(),
    StyleNormalPtr<Gradient<RED, BLUE>, Gradient<CYAN, YELLOW>, 300, 800>(), "gradient"},
   { "RgueCmdr", "tracks/mercury.wav",
    StyleRainbowPtr<300, 800>(),
    StyleRainbowPtr<300, 800>(),
    StyleRainbowPtr<300, 800>(), "rainbow"},
   { "TthCrstl", "tracks/uranus.wav",
    StyleStrobePtr<WHITE, Rainbow, 15, 300, 800>(),
    StyleStrobePtr<WHITE, Rainbow, 15, 300, 800>(),
    StyleStrobePtr<WHITE, Rainbow, 15, 300, 800>(), "strobe"},
   { "SmthJedi", "tracks/mars.wav",
    &style_charging,
    StyleNormalPtr<BLACK, BLACK, 300, 800>(), "Battery\nLevel"}
};
BladeConfig blades[] = {
 { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
    subblade(0,0 WS281XBladePtr<2, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4, bladePowerPin5> >()),
    subblade(1,1, NULL),
  , CONFIGARRAY(presets) },
};
#endif

#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
Button AuxButton(BUTTON_AUX, auxPin, "aux");
#endif
1 Like

Thank you for even creating it! Unfortunately there is an error…

Arduino:1.8.19 (Windows Store 1.8.57.0) (Windows 10), ボード:"Proffieboard V2, Serial, SDCARD (SPI), 80 MHz, Smallest Code"





















In file included from C:\Users\owner\Desktop\ProffieOS\ProffieOS.ino:582:

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:18:46: error: cannot convert 'const char*' to 'StyleFactory*' in initialization

   18 |     StyleNormalPtr<CYAN, WHITE, 300, 800>(), "cyan"},

      |                                              ^~~~~~

      |                                              |

      |                                              const char*

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:21:67: error: cannot convert 'const char*' to 'StyleFactory*' in initialization

   21 |     StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 800> >(), "blue"},

      |                                                                   ^~~~~~

      |                                                                   |

      |                                                                   const char*

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:24:37: error: cannot convert 'const char*' to 'StyleFactory*' in initialization

   24 |     StyleFirePtr<RED, YELLOW, 1>(), "fire"},

      |                                     ^~~~~~

      |                                     |

      |                                     const char*

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:27:45: error: cannot convert 'const char*' to 'StyleFactory*' in initialization

   27 |     StyleNormalPtr<RED, WHITE, 300, 800>(), "red"},

      |                                             ^~~~~

      |                                             |

      |                                             const char*

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:30:36: error: cannot convert 'const char*' to 'StyleFactory*' in initialization

   30 |     StyleFirePtr<BLUE, CYAN, 1>(), "blue fire"},

      |                                    ^~~~~~~~~~~

      |                                    |

      |                                    const char*

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:33:75: error: cannot convert 'const char*' to 'StyleFactory*' in initialization

   33 |     StylePtr<InOutHelper<EASYBLADE(OnSpark<GREEN>, WHITE), 300, 800> >(), "green"},

      |                                                                           ^~~~~~~

      |                                                                           |

      |                                                                           const char*

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:36:50: error: cannot convert 'const char*' to 'StyleFactory*' in initialization

   36 |     StyleNormalPtr<WHITE, RED, 300, 800, RED>(), "white"},

      |                                                  ^~~~~~~

      |                                                  |

      |                                                  const char*

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:39:68: error: cannot convert 'const char*' to 'StyleFactory*' in initialization

   39 |     StyleNormalPtr<AudioFlicker<YELLOW, WHITE>, BLUE, 300, 800>(), "yellow"},

      |                                                                    ^~~~~~~~

      |                                                                    |

      |                                                                    const char*

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:42:70: error: cannot convert 'const char*' to 'StyleFactory*' in initialization

   42 |     StylePtr<InOutSparkTip<EASYBLADE(MAGENTA, WHITE), 300, 800> >(), "magenta"},

      |                                                                      ^~~~~~~~~

      |                                                                      |

      |                                                                      const char*

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:45:78: error: cannot convert 'const char*' to 'StyleFactory*' in initialization

   45 |     StyleNormalPtr<Gradient<RED, BLUE>, Gradient<CYAN, YELLOW>, 300, 800>(), "gradient"},

      |                                                                              ^~~~~~~~~~

      |                                                                              |

      |                                                                              const char*

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:48:34: error: cannot convert 'const char*' to 'StyleFactory*' in initialization

   48 |     StyleRainbowPtr<300, 800>(), "rainbow"},

      |                                  ^~~~~~~~~

      |                                  |

      |                                  const char*

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:51:53: error: cannot convert 'const char*' to 'StyleFactory*' in initialization

   51 |     StyleStrobePtr<WHITE, Rainbow, 15, 300, 800>(), "strobe"},

      |                                                     ^~~~~~~~

      |                                                     |

      |                                                     const char*

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:54:47: error: cannot convert 'const char*' to 'StyleFactory*' in initialization

   54 |     StyleNormalPtr<BLACK, BLACK, 300, 800>(), "Battery\nLevel"}

      |                                               ^~~~~~~~~~~~~~~~

      |                                               |

      |                                               const char*

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:58:17: error: expected ')' before 'WS281XBladePtr'

   58 |     subblade(0,0 WS281XBladePtr<2, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4, bladePowerPin5> >()),

      |             ~   ^~~~~~~~~~~~~~~

      |                 )

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:58:102: error: expected primary-expression before '>' token

   58 |     subblade(0,0 WS281XBladePtr<2, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4, bladePowerPin5> >()),

      |                                                                                                      ^

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:58:104: error: expected primary-expression before ')' token

   58 |     subblade(0,0 WS281XBladePtr<2, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4, bladePowerPin5> >()),

      |                                                                                                        ^

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:58:5: error: 'subblade' was not declared in this scope; did you mean 'SubBlade'?

   58 |     subblade(0,0 WS281XBladePtr<2, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4, bladePowerPin5> >()),

      |     ^~~~~~~~

      |     SubBlade

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:59:5: error: 'subblade' was not declared in this scope; did you mean 'SubBlade'?

   59 |     subblade(1,1, NULL),

      |     ^~~~~~~~

      |     SubBlade

C:\Users\owner\Desktop\ProffieOS\config\89saber.h:60:3: error: expected primary-expression before ',' token

   60 |   , CONFIGARRAY(presets) },

      |   ^

exit status 1

ボードProffieboard V2に対するコンパイル時にエラーが発生しました。



「ファイル」メニューの「環境設定」から
「より詳細な情報を表示する:コンパイル」を有効にすると
より詳しい情報が表示されます。

Apparently some of my edits got lost along the way somewhere.
I will take a look at it later today and provide a fixed version.

1 Like

Thank you for being so kind. In fact, progress has been made. When I changed it back to a pure 2-button config file, it does not emit light, but the speaker responded with the POW button (although it was an abnormal noise) Is the SD contents bad?

1 Like