Proffie v2.2 Momentary Switch Light

Hello! I have a lightsaber from TXQ with Proffie Board v2.2. The lightsaber has a momentary button switch with a LED. The light comes on when I press the button. If the saber is ignited the light stays on. If the saber is retracted the light turns off after some time. By looking at the board it appears that the button is connected to the 5v pin. How to disable the light on the button using the software? Please see a photo below.

Often those budget hilt makers wire the light by connecting the switch LED positive to the speaker +, or the 5 volt pad as I think that pad is only live when the sound is running. This unfortunately means there’s no way to turn it off with software - you would need to rewire it so that the switch LED neg goes to one of the six LED power pads and LED + goes to battery + or, at a push, the 3.3 volt pad. Once you’ve done that, you can adjust your config to have it blinking, pulsing, on, off or whatever you like.

1 Like

Thank you! Now I know!

I see that the 5v pin receives power from the 5v booster. There is a serial monitor command for turning off the 5v booster. I assume that the 5v booster supplies power to the 5v pin only, doesn’t it? How to incorporate the turning off of the 5v booster on boot in the code? This will turn off the button light when it’s wired to the 5v pin.

The 5V is primarily for the audio amplifier.

1 Like

I’m pretty sure Ryry is right in that the 5 volt pad is part of the sound system. If you did kill it with code, the sound would also stop working and your saber would be mute because that pad is basically the power for the audio amplifier.

3 Likes

I see! I’ll try pulling out the board and changing the button wiring when feel comfortable with that. Probably connecting the button LED to the 5v pin is the easiest for the manufacturer as it does not require setting up the LED as a blade and adding it to each preset. I have tried wrapping the hilt with a twine to hide the button. Will see how it goes.