Thermal detonator not working as it should?

I am progressing nicely on my proffie thermal detonator project, and I finally wired everything up tonight. Quite a tight fit.

Once I turned it on, I discovered my switch was wired in reverse, so I corrected that. It now seems to mostly be doing what it should, but I have 2 issues. The first is the middle led doesn’t light up. I am sure its wired correctly and not bad. I noticed the code on the hubbe.net web site defined the blade config is this

BladeConfig blades[] = {
{ 0,
  SimpleBladePtr<CH1LED,CH2LED,CH3LED,NoLED, bladePowerPin1, bladePowerPin2, bladePowerPin3, -1>(),
  SimpleBladePtr<CH1LED,NoLED,NoLED,NoLED, bladePowerPin4, -1, -1, -1>(),
  CONFIGARRAY(presets) },
};

however the code I used (from the proffie os files) is this

BladeConfig blades[] = {
 { 0,
     // Note, I use bladePowerPin5 instead of bladePowerPin2!
     SimpleBladePtr<CH1LED,CH2LED,CH3LED,NoLED,
                    bladePowerPin1, bladePowerPin5, bladePowerPin3, -1>(),
     SimpleBladePtr<CH1LED,NoLED,NoLED,NoLED,
                    bladePowerPin4, -1, -1, -1>(),
     CONFIGARRAY(presets) },
  };

So is bladePowerPin2 vs bladePowerPin5 an issue?
My 4 led’s are wired to proffie pads led1 thru led4.

My other issue is the sound font. I have ThermalD and I did the sound mods listed as well, so I have the font directory “tdmod” with 10 wav files. It seems like it should have more? Pressing the red button does nothing, and I never hear a boom or anything.

Here is the tdmod font directory
Screenshot 2024-10-12 160235

I’ve not done a thermal detonator, so I’m not sure how the sound is supposed to work, but for your LEDs, I would say yes, the Pin 2/5 thing is the problem.

The Proffie pads 1 to 6 correspond to the bladePowerPins referenced in your array. So if I’ve read your post right, you have an LED wired to pad 2 but you haven’t referenced pad 2 in your array - instead you’ve referenced pad 5 which you haven’t wired anything to. This means there’s nothing to tell pad 2 to power up, which presumably is why your middle LED isn’t lighting.

If you’re using LED1/2/3, you want your blade definition to use bladePowerPin2 not bladePowerPin5. (I fried my LED2 somehow, which is why I use LED5 instead.)

The font I started with didn’t have a lot of files, and I removed all the ones that fit with how I imagine a TD should sound, which reduced the files even more. Looks like my font directory also has 10 sounds in it.

Do you see anything in the serial monitor when you press the button?

Note that in my config, I wired the power button to aux2, not aux, so you may need to change this:

Button AuxButton(BUTTON_AUX2, aux2Pin, "aux");

to

Button AuxButton(BUTTON_AUX, auxPin, "aux");

Thanks, that was it!

Thank you. The pins in my config did need to be changed.

for the button, initially the serial monitor registered nothing when I clicked the red button. After removing “2” like you said, it seems to work in the monitor.
I got:
EVENT: Aux-Pressed#1 ON millis=10669 EVENT: Aux-Pressed ON millis=10669 EVENT: Aux-Released#1 ON millis=10946

However, outside the monitor (as in no longer plugged int) it doesn’t seem to do anything.

As for the font - it seems to be playing the hum.wav over and over, which is probably whats intended, but it is the sound of people screaming, not the beep the bomb makes when armed. That sound appears to be the original font file “humM1.wav”

@profezzorn, I appreciate you tutorial, and I am sure it has been quite a while, but can you look into your sound files for the td and see if I maybe missed something in your tutorial? Maybe sound files is why the button seems to nothing as well?

Oh, Looks like I wrote the TD prop file expecting an AUX2 button.
In that case, try this:

Button AuxButton(BUTTON_AUX2, auxPin, "aux");

I guess they have updated ThermalD since I made mine, my copy of ThermalD does not have a humM1.wav file.

These are the files in the Thermal-D font that I have:

1598d5e1909b596f7c2a094ddc34451c  ./Alternate sounds/blaster3 ALTERNATE.wav
ebb5b45b5e0a94faece2830e4dcfc198  ./Alternate sounds/blaster4 ALTERNATE.wav
f3d4c1e5e7ce0cc20b30ea429147fb07  ./Alternate sounds/force ALTERNATE.wav
859225b31cc181dce037b01aa2610194  ./Alternate sounds/lockup ALTERNATE.wav
b0e62df6c4dfa2dd8bb728b2834e53dd  ./CF version/blaster.wav
955f3572e11d27635220bbd6ab642b3f  ./CF version/blaster2.wav
8e9c8738c902109c4dc3f3b8e86ac21d  ./CF version/blaster3.wav
1f5bfc142f1fe927dda3bc30c691cdac  ./CF version/blaster4.wav
797fb262ce27efab8f81b9819c0c40aa  ./CF version/boot.wav
513be100709a8660bf0cb9bab5585c00  ./CF version/clash1.wav
01a94ffd4e2ab5c42c52361f78941498  ./CF version/clash2.wav
aa7227c1a28d183e289e3f9c6fac5c0f  ./CF version/clash3.wav
805a16ed49818e4afbea380e3739d0a2  ./CF version/clash4.wav
3f74860fb117f5507c8fe4e1d945880a  ./CF version/clash5.wav
43239d0dc5b72bd237295e38e1de4372  ./CF version/clash6.wav
07e9e3c4e65b66abacf9b0acb4c5fe78  ./CF version/clash7.wav
867e638b235aada782c123efdf8f2c3b  ./CF version/clash8.wav
23179e458deedc58154012f3a16ace6b  ./CF version/force.wav
9b2630aec8653c58ce6d1e8156add09d  ./CF version/force2.wav
cc99107eaf59a2eb21922e9b608c0d1c  ./CF version/hum.wav
7308327d9cae94b6fb72182e61d61fed  ./CF version/lockup.wav
4156753cd0097a882cd17d000e76deda  ./CF version/poweroff.wav
5c294219d4b6b4af7e434e3ddbdeacf6  ./CF version/poweron.wav
5c294219d4b6b4af7e434e3ddbdeacf6  ./CF version/poweron2.wav
5c294219d4b6b4af7e434e3ddbdeacf6  ./CF version/poweron3.wav
5c294219d4b6b4af7e434e3ddbdeacf6  ./CF version/poweron4.wav
3fb80d6792e83db05fbe944365106388  ./CF version/poweronf.wav
1c88c4f41be1d7d2a22065474b26cf36  ./CF version/pwroff2.wav
a03ce47780dd5b2c813a127330624547  ./CF version/readme.txt
df73e6ab9f713759c5f5d7b09f5078f5  ./CF version/swing1.wav
df73e6ab9f713759c5f5d7b09f5078f5  ./CF version/swing2.wav
df73e6ab9f713759c5f5d7b09f5078f5  ./CF version/swing3.wav
df73e6ab9f713759c5f5d7b09f5078f5  ./CF version/swing4.wav
df73e6ab9f713759c5f5d7b09f5078f5  ./CF version/swing5.wav
df73e6ab9f713759c5f5d7b09f5078f5  ./CF version/swing6.wav
df73e6ab9f713759c5f5d7b09f5078f5  ./CF version/swing7.wav
df73e6ab9f713759c5f5d7b09f5078f5  ./CF version/swing8.wav
140adf160cad1702a14a40759ca6b04e  ./Thermal D MENU.wav

The large hex number is an md5sum, which you can use to check which of your files are identical to mine.

Here are the md5sums for the tdmod files:

bf3326b2729e6287cf4538d64092bd2c  armhum.wav
20efcfc32d58510922a9ce973433d854  bgnarm.wav
513be100709a8660bf0cb9bab5585c00  boom1.wav
01a94ffd4e2ab5c42c52361f78941498  boom2.wav
797fb262ce27efab8f81b9819c0c40aa  boot.wav
df73e6ab9f713759c5f5d7b09f5078f5  hum.wav
4156753cd0097a882cd17d000e76deda  poweroff.wav
5c294219d4b6b4af7e434e3ddbdeacf6  poweron.wav
3fb80d6792e83db05fbe944365106388  poweronf.wav
1c88c4f41be1d7d2a22065474b26cf36  pwroff2.wav

This was a huge help!

It does appear there was some sort of update to the font. In the zip I have, there is a folder called “Thermal D for CFX” and one called “Thermal D for older cards”.

Your check sums matched the “older card” version, so I re-did the whole thing using those files. Now it seems to match. Not sure why the files with the same name are completely different.

However, the red button still seems to do nothing. @profezzorn , in your demo video, it starts to beep when pressed? What else can I look at?

Never mind my last post, I didn’t upload this change!

I thought I did, but now it seems to work as intended. Thank you!