Hello, I turned on my saber for the first time in a year and encountered a problem

Hello, I am a Proffieboard user from Korea.

After using my lightsaber for a wedding entrance event, I turned it on again for the first time in about a year and started experiencing problems. The saber would freeze while powered on, and repeated rapid button presses caused noticeable delays.

To resolve this, I attempted to update ProffieOS to version 7.15. During this process, I discovered that uploading was not possible when using my previous 7.8 version configuration header file. After investigating further, I learned that #ifdef CONFIG_PRESETS was required. I removed several presets to reduce memory usage, but the same errors continued to occur.

Even after reducing the configuration to only two presets and uploading again, the problem persisted. If this type of issue occurs, what would be the recommended way to resolve it? There is no one locally in Korea I can ask for help. I would really appreciate your assistance.

Post the full error you are receiving as well, and we can check it out.

1 Like

When I upload the config file linked above, the upload process completes without any issues. However, when I power on the lightsaber and try to operate it, it freezes while remaining lit (no sound and no response), and pressing the button repeatedly causes severe lag and performance issues.

Oh, I see. Could it be shorting to the metal hilt?

I have a light saber where the solder balls are very close to the hilt when inserted, its works fine until a certain flex make it contact the hilt, then it goes crazy, but doesn’t short to off. for me, some kapton tape fixed it.

1 Like

I’m not sure, as I don’t have much knowledge about wiring. Since I’m using a chassis made by 89Sabers, I don’t think it’s a short circuit. However, could this possibly be a battery-related issue? I left the battery installed for a long time without using it.

Your right, 89 chassis are pretty good, unlikely a hilt short. Still could be another short, but you never know.

And, yes, a low battery (or god forbid a bad battery) can and will produce strange behaviour. Give it a standard charge or try another fully charged battery.

The same issue occurs even after fully charging the rechargeable battery. :frowning: Should I check the battery voltage?

Do you have another battery to try?

I am not sure otherwise. I will let some others step in for further troubleshooting.

I currently don’t have another battery, so it’s difficult to test right now. I’m planning to purchase a new battery, so I would appreciate it if you could provide the detailed specifications I should look for.

I would go for a high quality, high draw 18650 (I assume thats the size you need) with the largest mah you can find.

Most people recommend a protected battery. Rightfully so, but unfortunately 89sabers chassis do not come with or use protected batteries. 18650 protected batteries are slightly longer than non-protected and will not fit in your chassis.

1 Like

Thank you very much for your kind help. I’ll buy a new battery and try again. :slight_smile:

1 Like

What version did you have before?

What settings do you have in Arduino → Tools → Optimization ?
(See also: ProffieOS Documentation: Saving FLASH Memory)

My guess is that you have a problem with the SD card.
I would try a different SD card (copy the files from the old sd card to a new one.)

Did your previous config file not have that?

I previously used version 7.8. I am currently on my way to work, so I will check and get back to you later. I have a spare SD card. If the issue persists even after using a new battery, I will try replacing it.

Since version 7.8 is quite old, the h file I was using at the time was configured without CONFIG_PRESETS.

7.15 should not use more memory than 7.8 (within some small margin of error)
The only difference between 7.15 and 7.8 is bugfixes.
If you’re running out of memory, it’s because of optimization settings in arduino.
Note that running out of flash memory causes problems at upload, it cannot cause freezing or crashes at runtime.

1 Like

That seems unlikely since CONFIG_PRESETS has been around since before ProffieOS was called ProffieOS. Maybe you used my include file which has the presets in a separate file?

1 Like

Would it be possible to get an example h file that I could use as a reference? I will add the PRESET definitions myself. I am using a Proffieboard v2.2 with a two-button setup and the Fett263 button configuration.

What’s wrong with the one you have?

1 Like