Newbie problems - card no longer recognized after compile

UPDATE: user error up the wazoo!!!

Deleted my old ProffieOS folder and used a new one - I don’t even know what weirdness was going on in there.

Upload worked flawlessly, and the saber is now producing sound at boot and blade ignition!

The ONLY remaining issue is that I’m not getting light at the accent LED anymore or from the illuminated PCB.

Here’s the config file - this is SO close!!! What did I miss?

#ifdef CONFIG_TOP
#include "proffieboard_v3_config.h"
#define NUM_BLADES 3
#define NUM_BUTTONS 1
#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
#define SHARED_POWER_PINS
#endif

#ifdef CONFIG_PRESETS
Preset presets[] = {
   { "Corran", "tracks/corrandance.wav",
    StyleNormalPtr<CYAN, WHITE, 300, 800>(),
    StyleNormalPtr<CYAN, WHITE, 300, 800>(),
    StyleNormalPtr<CYAN, WHITE, 300, 800>(), "cyan"}
};
BladeConfig blades[] = {
 { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
    SubBladeWithStride(0, 15, 2, WS281XBladePtr<16, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >()),
    SubBladeWithStride(1, 15, 2, NULL)
  , CONFIGARRAY(presets) },
};
#endif

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

Since you started a new file, you likely lost the info for this illuminated pcd. It probably needs a new blade defined and new styles for it.

You have power pin 2 and 3 defined. So, look at the board and see if there is solder on any other power pads and/or data pads. Then you can attempt to redefine it.

This config doesn’t have a blade for an accent LED.
Also, it’s not easy to create one without having some guess for how it’s wired.
(Is it a single color LED? A Neopixel? What LED* pad gives it power? Is it wired to one of the data pads?)

This config does have two blades for the illuminated PCB (assuming that there is one outer ring and one inner ring of lights) bug perhaps it’s not wired to data2 as the configuration suggests?

@orntar and @profezzorn Excellent points; your questions are both wise and good. And at my current noob level, answers beat the heck out of me!

I wonder if these pics might help figure out how the saber is wired… I should add that the 5V pad has solder in it, but there’s no loose wires that could go to it. Maybe the installer made a mistake?

Any guesses as to what I might try for settings? Thank you both!

The copper coil is actually an LED - it’s really sweet when lit up!



So the only things that are connected on tihs board are:

  • data1
  • LED2/3
  • LED6

Now data1 and LED2/3 are almost certainly connected to the main blade.
Maybe the LED inside the copper braid is a simple one-color noodle connected to LED6?
And maybe the LEDs on the pogo pin PCB are either connected in series or parallel with the main blade.

The original picture also shows two wires connected to the 5v pad, one of which seems to be using a resistor. Maybe that resistor is not a data resistor as I thought, but a resistor used to limit the current to some LEDs?

Is there any way you can figure out where these wires go?
LED6 is clearly used for something, so maybe add a SimpleBladePtr for it to your config and see what lights up? (Add a single-color accent in the configurator, check the generated configuration to make sure it says bladePowerPin6. If not, change it to bladePowerPin6)

1 Like

Alas, the chassis is secured somehow into the emitter area, so I can’t trace the wires. If all else fails, I can try contacting the person who built the saber.

I’ll give your ideas a shot and see if I get anywhere with it. Thank you for your support!

So, on that note.
Maybe they can give you the original config file? (Because that would help a lot.)
Have you checked if the SD card contains the original config file?

That would have made it much easier - no dice.

I reached the smith who made it - he sent me the original config file. Phew!

Thank you to everyone for your kind support!