Hello. I brought a proffie v3.9 board to replace my v2.2 and after wiring everything togheter the blade turns on when power is pressed but turns off on single press as if it’s a two button configuration. The config is configured to use only one button and the button works fine(tested it with the multimeter and serial monitor reports the button presses). I found on google that it could be a props issue but i am not sure. I tried using fett268 props config but it didn’t work or maybe i didn’t do it right. I new to arduino programming. What could be the issue?
Post your config, you can use pastebin.com to share the full config easier.
Since you’re new, let’s make sure you’re uploading correctly. I recommend reading through this page and going step-by-step.
thank you for the reply. after you posted this and watching trough the videos on your website i saw how to configure props in the config and i used sa22c wich is how the old 2.2 board i changed was setup and it works now. The second problem that i am having is that i am using an illuminated momentary button wich has the LED hooked to the 5V on the board. This LED and the proffies LED do not turn off no matter how long i let them. What could be the problem?
You can’t control LEDs from 5V pad, you’d have to completely cut power to the board. I’d recommend reviewing the config generator or manual for recommended wiring.
but that’s how the saber came with the 2.2 board and it worked without a problem. I saw that the other alternative is to wire it to a free pad but i don’t know how to program the pad to light up the led.
You used the original config when updating? Maybe confirm with you vendor, it’s possible it’s wired differently? They’d know best.
no. i am using my own config. the thing is even if i take out the power button led + from the board the proffie still stays on indefinetly. The proffies LED is also pulsing rapidly.
You want to use the original config and then update. I would request from the vendor if you don’t have. If you just make your own it may not align to how things are actually wired and/or intended to run. Start with the original config to return the saber to how it was, then edit that file to update presets, etc.
I have asked for it. In the meantime can you tell me how to power the button led from the free1 pad?
I used this line SimpleBladePtr<CreeXPE2WhiteTemplate<0>, NoLED, NoLED, NoLED, blade5Pin, -1, -1, -1>()
but it does’t do anything. No power to that pin.
Are you sure that’s how it’s actually wired? I think these are questions for your vendor/installer.
actually i just noticed it is working but only when the blade is clashing. any way to make it stay on while the blade is on and turn off with it?
The 5v pad is supposed to turn off, but only when everything else on the board is not running, and in some cases, that can be difficult for ProffieOS to figure out.
If you have any accent LEDs running, proffieOS will keep the 5v on forever, or at least until the idle timeout occurs.
Some blade styles also makes it impossible for ProffieOS to figure out that the blade doesn’t need to be powered, which means the 5v stays on.
You could try adding an idle timeout to see if that helps, but I think the better recommendation is to re-wire the button to use one of the LED pads, then add a blade for it. Then you will have full control over when it lights up.
Your blade line is set up to only react to white colors.
I bet your style is only white during clashes.
Change the style to be white while on?
it’s possible. i am using the default fonts until i am figuring out all the problems i have with it. when it boots up it plays the vader breathing theme so i’m guessing it’s set to vader font. how do i change this style to be white while on?
If you don’t post your config, all we can do is guess.
You can use the 3 back ticks method, like this:
```
your config code here
```
#ifdef CONFIG_TOP
#include "proffieboard_v3_config.h"
#define NUM_BLADES 2
#define NUM_BUTTONS 1
#define VOLUME 1000
const unsigned int maxLedsPerStrip = 684;
#define CLASH_THRESHOLD_G 1.0
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD
#define IDLE_OFF_TIME 60 * 1 * 1000
#endif
#ifdef CONFIG_PROP
#include "../props/saber_sa22c_buttons.h"
#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> >(), "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<684, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
SimpleBladePtr<CreeXPE2WhiteTemplate<0>, NoLED, NoLED, NoLED, blade5Pin, -1, -1, -1>()
, CONFIGARRAY(presets) },
};
#endif
#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
#endif
I am absolutely not a blade style “specialist” but if you just want white while on, this should work:
StylePtr<InOutHelper<White,300,800>>(),
// Usage: InOutHelper<BASE, OUT_MILLIS, IN_MILLIS>
// or: InOutHelper<BASE, OUT_MILLIS, IN_MILLIS, OFF_COLOR>
// BASE, OFF_COLOR: COLOR
// OUT_MILLIS, IN_MILLIS: a number
// return value: COLOR
// This class does a basic extend/retract. Basically it fades between
// BASE and OFF_COLOR (which defaults to black). It starts by just
// displaying OFF_COLOR, and when you turn the saber on it starts mixing
// in BASE at the base of the saber. After OUT_MILLIS milliseconds, it
// will be displaying the BASE color on the entire blade.
You can use that as your blade style for your button, for example:
{ "TeensySF", "tracks/venus.wav",
StyleNormalPtr<CYAN, WHITE, 300, 800>(),
StylePtr<InOutHelper<White,300,800>>(), "cyan"},
I am not seeing in your config, any indication that you have a Vader font in there?
yeah so i assumed it’s a vader font because of the vader breathing when i put the battery in the board but it’s actully the teensySF font that has that sound. but i don’t understand what “white while on” means. my led is a single blue color (not RGB) and all i want is for it to stay on while the blade is on and power off with it.
So you want blue color on your button led when your saber is on (while on) and you want the light off when your saber is off. Is that correct ? I must have miss-read “while” & “white” when reading your post above. It’s the same code anyway, because you don’t have a red or green channel on your led. Or you can replace “White” with “Blue” if you like it better. In both cases your blue led will get 100% blue on the blue “channel”.
this solution involves editing every single font for it to set it globally on with the board. i need something that doesn’t involve all that editing. It says in the documentation that the free pads can be pwm. what if i set it to pwn while the blade is on. is that possible?