Dual blade, sound is iffy, help

Hello, I’m new to all this, but after I found about proffie boards and DIY lightsabers, I had an idea for a cosplay I wanted to do that would be perfect for a lightsaber so here we are.


I used this diagram for the wiring, which i think I got all correct. I used the config that it generated and added a config prop to be able to use saber_fett263’s one button config. Here’s my config file:

#ifdef CONFIG_TOP
#include "proffieboard_v3_config.h"
#define NUM_BLADES 2
#define NUM_BUTTONS 1
#define VOLUME 2000
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_PROP
#include "../props/saber_fett263_buttons.h"
#endif

#ifdef CONFIG_PRESETS
Preset presets[] = {
   { "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> >(), "green"},
   { "TeensySF", "tracks/mercury.wav",
    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>(), "yellow"},
   { "SmthGrey", "tracks/venus.wav",
    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>(), "gradient"},
   { "RgueCmdr", "tracks/mercury.wav",
    StyleRainbowPtr<300, 800>(),
    StyleRainbowPtr<300, 800>(), "rainbow"},
   { "TthCrstl", "tracks/uranus.wav",
    StyleStrobePtr<WHITE, Rainbow, 15, 300, 800>(),
    StyleStrobePtr<WHITE, Rainbow, 15, 300, 800>(), "strobe"},
   { "TeensySF", "tracks/venus.wav",
    &style_pov,
    StyleNormalPtr<BLACK, BLACK, 300, 800>(), "POV"},
   { "SmthJedi", "tracks/mars.wav",
    &style_charging,
    StyleNormalPtr<BLACK, BLACK, 300, 800>(), "Battery\nLevel"}
};
BladeConfig blades[] = {
 { 0, WS281XBladePtr<40, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
    WS281XBladePtr<40, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4, bladePowerPin5> >()
  , CONFIGARRAY(presets) },
};
#endif

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

I then plugged it all with my button and neopixel blades and… only one blade works, it sometimes says “font directory not found” i think but no other sounds. Any help would be greatly appreciated, i’ll keep tweaking and see what happens, but at this moment I am lost. Thank you in advance.

Sweet!

Since you are using the Fett263 prop, why not check out his other tools at fett263.com ?

The top section you have has barely any defines (not even swing on :slight_smile: ) and you can see all of your options in his config helper. Defines tell your saber what it should and should not do. Like turn on when you swing it, or whether or not you have editing capabilities…. It’s a lot!

There’s also info on how to set up your SD card and get the sound working. For starters, try using the program at sdcard.org to reformat and transfer the fonts back to the card. You might need a better one… it’s not perfect in SD card land. They’re inconsistent, like data cables. NoSloppy recommends the industrial cards from Kingston, purchased direct, and I agree that they are fast and stable.

As far as your second blade goes, you do have two blades set up and they’re accounted for in your presets, which means either a typo or you should recheck wiring. The better smiths use a multimeter. I usually check my joints and reflow anything that looks dodgy, checking for shorts.

2 Likes

Update: Okay i checked the wiring and it looks like one of the wires for the led plug for the mainblade got disconnect. Re-soldered, works.

Second, the sound is weird… When i power it on, it plays the font intro sound and powers on just fine. After a few second though it seems like it freezes, like no more sound and the button doesn’t respond. I’ve tried turning it off and back on and sometimes the sound wouldn’t play, but the blade turns on and seems to be fine with the different single button actions. Eventually pausing again at some point.

Would this be like an overload or something that’s causing the pauses?

Sounds like an SD card problem.
The SD card might not be very good, in which case you need a new one.
Or, it may be corrupt, if you ejected it before everything was done copying.

I would suggest trying a different SD card. If you don’t have one, maybe try format the the sd card and re-copy all the files back to the sd card and see if that helps.

1 Like

And you need a common folder with a voicepack in it to use fett263. Also you need each preset to have the voicepack declared, like this:

Preset presets[] = {
   { "SmthJedi;common", "tracks/mars.wav",
    ...
   { "SmthGrey;common", "tracks/mercury.wav",
   ...
and so on
1 Like

Thank you everyone. Sorry for the late response, closest electronics store to me doesn’t sell 16GB cards, lowest they got are 64GB and that seems like over kill. Ordered through online, I’ll make changes once I get it and see how it goes.

SD cards fast enough don’t seem to come in sizes smaller than 32GB for the most part.

Some 16GB cards are ok. Few 8GB ones are.

Doesn’t have to do with the storage, just that larger storages tend to be made to be faster also.

Oh, okay did not know that.

Well I did get the 16GB Sandisk ultra, seems to have done the trick, no weird freezing up and all working great. Thanks everyone for the help!! I’ll be sure to study up on all this so that I too can one day help someone.

This is not a good diagram. You are powering 2 neopixel blades, which is a lot of current, through a single Kill Switch — never do that. Use recommended wiring diagrams from the PDF User Manual instead, they are much more efficient: https://drive.google.com/file/d/1vn9vRk-CNZSUHL4xm_hHwS6UgkfKXdO2/view?usp=drivesdk

Also use at least 22 AWG wires for Positive and Negative from battery to neopixel blade and 28 AWG wires for the speaker.

I mean… It is the wiring diagram from the proffie site so didn’t really have any other references points. It does work so. Wire gauge wise I think I read 22 AWG and 20 AWG were good. Used 20 for power and neopixel wiring and button and speaker are 22

It’s still wrong and not recommended, you won’t get full blade brightness this way.

But it is not optimal. A 90" dual strip npxl blade can have up to 9.35A. That is per blade. Also, the board itself need about 3A (max). A single 22AWG can do about 7A, and a 20AWG, about 11A.
So, you need to calculate the positive side and the negative side.
Let’s start with the positive. You need dual 22AW or single 20AWG to each NPXL PCB. Then a separate 24AWG to the board. So, the three or five wires should all be soldered to the battery contact and then you go each to each place.
Regarding the negative side, ProffieBoard only has two Negative pads. So you would need two 20AWG from the battery contact to the board. And then single 20AWG or dual 22AWG to each PCB. Of course, if you use 20AWG, you’d need to solder two mosfets together.