Rgb red led stays lit

Greetings, I have a base lit rgb with Proffie board that I have wired up. After a while the red led stays lit even when saber is between fonts. Any ideas?

Resistors? What resistor are you using for red?

I am not using any.

red is likely the only one you “need” to resistor with 1.5 ohm or something.

What NoSloppy said, add a resistor to that red to avoid overloading it. Green and blue could use one too, but should be fine. It’s really color (brightness) you are adjusting by adding resistors to those. Baselit fans have almost like secret recipes.

I remember when Khal at KR Sabers made the purpleasy resistors pcb to get the right purple. That’s usually the color people are hunting for.

you could also just let software handle it by setting up a struct with your LED measurements. Although I thought this does that pretty well already?

template<int milliohms = 1000>
struct CreeXPE2RedTemplate {
  static constexpr float MaxAmps = 1.0;
  static constexpr float MaxVolts = 2.65;
  static constexpr float P2Amps = 0.35;
  static constexpr float P2Volts = 2.2;
  static constexpr float R = milliohms / 1000.0;
  static const int Red = 255;
  static const int Green = 0;
  static const int Blue = 0;
};

Read back on the page after the part linked here:

1 Like

This would save a lot of hilt space :slight_smile:

Thanks NoSloppy, I have found the structs in the software. I will change them to the template you provided and try it out.

Thanks LyleStyle, Yes my hilt is tight for space. I will try changing the red led struct.

1 Like

The struct I quoted above already exists. Look at the ProffieOS/blades/leds.h file.

Ah. So if this is already doing its job, how do we get the red LED to behave correctly?

Any LED should really be measured. No 2 are identical so it’s best to take measurements and fill in the properties in a custom struct.
Generally though I think most people have good results with the pre-built ones in ProffieOS , so I don’t know. @Oldspace are you using CreeXPE2RedTemplate in your BladeConfig?

BladeConfig blades = {
{ 0, SimpleBladePtr<CreeXPE2RedTemplate<1000>, CreeXPE2GreenTemplate<0>, CreeXPE2BlueTemplate<240>, NoLED, bladePowerPin1, bladePowerPin2, bladePowerPin3, -1>(), CONFIGARRAY(presets) },

};
#endif

Is this template ok? My red led is still lit up at half power when the saber is powered down or retracted.

well you’ve got 1000 in the template telling the board you have a 1ohm resistor inline.
Maybe you should change that to zero since you have none.
Check out page 9 of the manual

1 Like

Thankyou, I’ll address that. I should know better, if all else fails read the manual. Once I get everything sorted out I will post results.

When the LED stays on, is it full on, glows a little, or something else?

When I first put the battery in and ignite through various fonts, nothing glows red. After about two minutes the red led glows weakly when the saber is off.

Ok, that’s kind of weird.
Can you measure the voltage across the LED with a multimeter?
Please measure both DC and AC, as I’m wondering if this is a leaking current somehow, or if the PWM just isn’t reaching zero for some reason.

Oh, and are the FETs getting warm?