Emulating Proffieboard using ESP32

Hello, I’m a high school student studying electrical and electronics engineering. When I was younger, I used to make lightsabers out of sticks and play with them. Now I’ve discovered proffie boards and I’m extremely curious about them. Since I live in Turkey, there’s no way to send a proffieboard here, so I’ve been thinking about a DIY project for my own lightsaber. My father is a metal worker, and I’m planning to make the handle from stainless steel. I have an ESP32,MAX98357 I2S amplifier , MPU6050 an accelerometer ,3W speakers, a micro SD card module, a pogo pin, a WS2812B LED strip, and batteries – in short, everything I need for a lightsaber. Now, let me get to my problem: the software is where I’ve struggled the most. Even with help from AI, I haven’t been able to achieve a smooth swinging effect. Can you help me?

There is a thread about ESP32-s3 board with ProffieOS here: ESP32 Proffieboard.

The last message (134) will most likely give you some more information

1 Like

Not so, pretty sure The Saber Armory will ship to Turkey:
ProffieBoard v3.9 - Open Source Sound Board – The Saber Armory

AI is terrible at helping. You can get better help here. (Almost anywhere is going to be better than asking an AI to do it.)

If you want to implement the smoothswing effect yourself, I suggest reading Thexter’s original description:

SmoothSwing V2 Algorithm description | The Rebel Armory

And you can see the ProffieOS implementation here:
ProffieOS/sound/smooth_swing_v2.h at master · profezzorn/ProffieOS

ProffieOS also has MPU6050 support that might be helpful:
ProffieOS/motion/mpu6050.h at master · profezzorn/ProffieOS

Ultimately, playing multiple sounds from the SD card with low latency requires some hackery. The ESP32 libraries are helpful, but default to very high latency, which doesn’t work for SmoothSwing.
It may be easier to just port ProffieOS to your setup, but as mentioned on the other thread, that isn’t exactly easy either

Ultimately, you’ll probably need to learn some programming as an EE student, so maybe just buckle up, learn what you need and write the required code?

2 Likes

Thanks a lot for your answers, friends. I’m thinking of buying a profile board from Etsy. I have one last question: 2.2 or 3.9, considering the price?

V2.2 will do everything you want, and V3.9 will do it a bit better and will hold more blade styles. Can’t go wrong either way.

Generally, I always recommend V3 boards nowadays.
The memory limitations of the V2 boards can be painful sometimes, but they do still work.

1 Like