|
Post by dbickel on Apr 14, 2022 22:05:30 GMT -5
Hello all, I know I am weird in that I opted to go with a simple RGB Tricree and decided upon this board as it supported Tri-Cree with the 2.2 board. The issue I am encountering is that regardless of configuration or style changes my RGB light is always the same color and I cannot figure out why. Below is my simple configuration taken from the configuration editor and I did modify the TeensySF to try and have it be a different color.
#ifdef CONFIG_TOP #include "proffieboard_v2_config.h" #define NUM_BLADES 1 #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", StylePtr<InOutHelper<SimpleClash<Lockup<Blast<Red,White>,AudioFlicker<Red,Red>>,White>,300,800>>()}, { "SmthJedi", "tracks/mars.wav", StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 800> >(), "blue"}, { "SmthGrey", "tracks/mercury.wav", StyleNormalPtr<RED, WHITE, 300, 800>(), "red"}, { "SmthFuzz", "tracks/uranus.wav", StylePtr<InOutHelper<EASYBLADE(OnSpark<GREEN>, WHITE), 300, 800> >(), "green"}, { "RgueCmdr", "tracks/venus.wav", StyleNormalPtr<WHITE, RED, 300, 800, RED>(), "white"}, { "TthCrstl", "tracks/mars.wav", StyleNormalPtr<AudioFlicker<YELLOW, WHITE>, BLUE, 300, 800>(), "yellow"}, { "TeensySF", "tracks/mercury.wav", StylePtr<InOutSparkTip<EASYBLADE(MAGENTA, WHITE), 300, 800> >(), "magenta"}, { "SmthJedi", "tracks/uranus.wav", StyleStrobePtr<WHITE, Rainbow, 15, 300, 800>(), "strobe"} }; BladeConfig blades[] = { { 0, SimpleBladePtr<CreeXPE2RedTemplate<1000>, CreeXPE2GreenTemplate<0>, CreeXPE2BlueTemplate<240>, NoLED, bladePowerPin1, bladePowerPin2, bladePowerPin3, -1>(), CONFIGARRAY(presets) }, }; #endif
#ifdef CONFIG_BUTTONS Button PowerButton(BUTTON_POWER, powerButtonPin, "pow"); Button AuxButton(BUTTON_AUX, auxPin, "aux"); #endif
Basically I am trying to make this into a simple Vader tricree blade (nothing fancy) and I am kinda bummed I didn't use one of my all red tricree LEDs if I was going to have this issue.
|
|
|
Post by bartsimpson on Apr 14, 2022 22:14:13 GMT -5
Are you sure all leds on the cree are working? Try to perform a clash and see if it makes white.
What’s the color it is only making? How did you wire the board for the cree? Pics would be most helpful.
|
|
|
Post by dbickel on Apr 14, 2022 22:42:03 GMT -5
Are you sure all leds on the cree are working? Try to perform a clash and see if it makes white. What’s the color it is only making? How did you wire the board for the cree? Pics would be most helpful. Yes. 1/3rd is the color blue, 1/3 red, 1/3 green. Pretty easy to see all are going and basically giving a rainbow style color effect. I wired the tri cree as specified on page 9 of the manual ( here). Its a single blade so quite simple to wire really.
|
|
|
Post by dbickel on Apr 14, 2022 23:21:48 GMT -5
Here's an even more simplified config I tried, still no color change between styles and all LEDs are lite.
#ifdef CONFIG_TOP #include "proffieboard_v2_config.h" #define NUM_BLADES 1 #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<RED, RED, 300, 800>()}, { "SmthJedi", "tracks/mars.wav", StylePtr<InOutSparkTip<EASYBLADE(RED, WHITE), 300, 800> >()}, { "SmthGrey", "tracks/mercury.wav", StylePtr<InOutSparkTip<EASYBLADE(RED, WHITE), 300, 800> >()}, { "SmthFuzz", "tracks/uranus.wav", StylePtr<InOutSparkTip<EASYBLADE(RED, WHITE), 300, 800> >()}, { "RgueCmdr", "tracks/venus.wav", StyleNormalPtr<RED, RED, 300, 800>()}, { "TthCrstl", "tracks/mars.wav", StyleNormalPtr<RED, RED, 300, 800>()}, { "TeensySF", "tracks/mercury.wav", StyleNormalPtr<RED, RED, 300, 800>()}, { "SmthJedi", "tracks/uranus.wav", StyleNormalPtr<RED, RED, 300, 800>()} }; BladeConfig blades[] = { { 0, SimpleBladePtr<CreeXPE2RedTemplate<1000>, CreeXPE2GreenTemplate<0>, CreeXPE2BlueTemplate<240>, NoLED, bladePowerPin1, bladePowerPin2, bladePowerPin3, -1>(), CONFIGARRAY(presets) }, }; #endif
#ifdef CONFIG_BUTTONS Button PowerButton(BUTTON_POWER, powerButtonPin, "pow"); Button AuxButton(BUTTON_AUX, auxPin, "aux"); #endif
|
|
|
Post by bartsimpson on Apr 15, 2022 5:53:48 GMT -5
Try adding this to the top section of your config
#define COLOR_CHANGE_DIRECT
|
|
|
Post by nosloppy on Apr 15, 2022 11:31:27 GMT -5
Try adding this to the top section of your config #define COLOR_CHANGE_DIRECT That's a ColorChange modifier and doesn't apply here. dbickel I think a wiring diagram is needed to see what you did including resistors, LED pads, etc... In your config, all the presets are set to Red......... so you're not going to have different colors. Try a test style, something like StylePtr<Stripes<16000,100,Red,Black,Green,Black,Blue,Black,White,Black,Rainbow,Black,Yellow,Black,Rgb<60,0,255>,Black>>()
|
|
|
Post by dbickel on Apr 15, 2022 13:02:45 GMT -5
Try adding this to the top section of your config #define COLOR_CHANGE_DIRECT That's a ColorChange modifier and doesn't apply here. dbickel I think a wiring diagram is needed to see what you did including resistors, LED pads, etc... In your config, all the presets are set to Red......... so you're not going to have different colors. Try a test style, something like StylePtr<Stripes<16000,100,Red,Black,Green,Black,Blue,Black,White,Black,Rainbow,Black,Yellow,Black,Rgb<60,0,255>,Black>>() The wiring diagram to the page was linked in the manual I used earlier. It's wired exactly like that with the exception there's no switch light due to the RoTS vader switch being touch sensitive on two different ends (and not lite).
|
|
|
Post by profezzorn on Apr 15, 2022 13:11:48 GMT -5
Are you sure the red, blue and green are connected to the right LEDs? Maybe the board activates LED1, but it's actually connected to the green or blue die? Why don't you pull out a multimeter and measure which LED pad is actually activated? If it's activating the wrong one, then we can fix it by updating your blades[] array. If it's activating the right one, but it's hooked up to the wrong die, then we can still fix it by updating your blades[] array. 
|
|
|
Post by dbickel on Apr 16, 2022 20:47:01 GMT -5
Are you sure the red, blue and green are connected to the right LEDs? Maybe the board activates LED1, but it's actually connected to the green or blue die? Why don't you pull out a multimeter and measure which LED pad is actually activated? If it's activating the wrong one, then we can fix it by updating your blades[] array. If it's activating the right one, but it's hooked up to the wrong die, then we can still fix it by updating your blades[] array.  Sorry I will post some pictures soon tomorrow or Monday but I followed the wiring guide for Tricree almost exactly except for momentary switch differences and I removed the charge port.
|
|
|
Post by dbickel on Apr 25, 2022 17:24:58 GMT -5
Are you sure the red, blue and green are connected to the right LEDs? Maybe the board activates LED1, but it's actually connected to the green or blue die? Why don't you pull out a multimeter and measure which LED pad is actually activated? If it's activating the wrong one, then we can fix it by updating your blades[] array. If it's activating the right one, but it's hooked up to the wrong die, then we can still fix it by updating your blades[] array.  Okay so for everyone here this is the wiring guide I followed.  The changes I did to the wiring guide shown above are minor and impact the switches (I have no LED in my switch) and recharge port (I have no recharge port due to chasis size and type, I opted for a removeable battery). This is the LED  This is the wiring on the board (colored wires stay the same)  This is the LED lite.  Notes: It looks like the blue and green wires are flipped atm. I assume I should use the following: BladeConfig blades[] = { { 0, SimpleBladePtr<CreeXPE2RedTemplate<1000>, CreeXPE2BlueTemplate<240>, CreeXPE2GreenTemplate<0>, NoLED, bladePowerPin1, bladePowerPin2, bladePowerPin3, -1>(), CONFIGARRAY(presets) }, };
|
|
|
Post by profezzorn on Apr 26, 2022 1:58:55 GMT -5
Your revised blades[] array looks good to me.
|
|
|
Post by dbickel on Apr 26, 2022 14:35:34 GMT -5
Your revised blades[] array looks good to me. I did the revised array, all three colors are still showing up with the LED. I do not think voltages are being adjusted to the 3 LEDs as both the green and blue are still being fully lite when turned on with a Red configuration on the blades. What else could be the issue or should I at this point swap out for one of my tricree Red LEDs?
|
|
|
Post by profezzorn on May 1, 2022 23:42:02 GMT -5
Ok, two questions: 1. Are you sure you are actually uploading new programs to the board? The behavior you're describing could be explained if it's still running the original programming. Se here for more info: github.com/profezzorn/ProffieOS/wiki/Is-it-uploading%3F2. Get a small piece of wire and short GND to LED1, then GND to LED2 then GND to LED3. If everything is wired right, that should show red, green and blue colors on the LED. If it's wired right, then clearly the problem is a programming issue of some kind.
|
|