Registration Notice

Due to increased spam, forum registration must be manually approved by a moderator! Please see this post for instructions.

*

Offline rockchuck

  • 27
    • View Profile
  • australia
problems with sound files on Open Panzer Sound card
« on: August 20, 2024, 08:03:41 AM »
Hello
I am having some trouble with the sound files not playing correctly and also affecting control of the tank. I have a set of test sound files downloaded from this site and they work ok in 3 other tanks fitted with tcb and Op sound cards.

The test set of sound files run correctly when fitted to the tank and all functions are ok.
When I fit my own sound files then I have trouble with the working etc. The sound files I have made are configured for 16bit PCM at 44100hz sample rate and the play ok on my pc as wav files.
I have checked the file names on my files and they are correct.

I tried the sound card test with the good set of sound files by placing the jumper on rc1 input on the sound card but nothing played and nothing downloaded to OP config.
I know the sound card works ok. So I don't know why this test mode didn't work.

The only thing I have noticed between the test sound files and my own files is the size. The test files (downloaded from this site ) is 9.61mB however my file is 142mB so I don't know if this is the reason for the odd behavior!
Any help would be appreciated.

thanks
rockchuck 

*

Offline LukeZ

  • 1255
    • View Profile
  • France
Re: problems with sound files on Open Panzer Sound card
« Reply #1 on: August 20, 2024, 02:37:00 PM »
Hi Rock,

Hopefully we can troubleshoot this one successfully. I should mention that I don't have a sound card of my own anymore, all my equipment was stolen about a year ago. The Teensy 3.2 has since been discontinued so I am unable to build a new one.

You are correct in trying the test routine by placing the jumper on RC input 1. I might not have made this clear in the Wiki, but when you are running this test routine, it is the sound card that needs to be connected to the computer (with a USB cable to the Teensy), and not the TCB. In fact, you don't even need the TCB for this test, and you can leave it disconnected. With the jumper on RC 1, and the sound card plugged into the computer, open a Snoop connection to the appropriate COM port and a baud rate of 115200, and see what happens. Note also that while the USB cable will provide power to the Teensy, it will not provide power to the amplifier, so you also need to make sure the sound card has power from a battery or else you will hear nothing.

Even if the sound files don't play for whatever reason, the sound card should still post some information to the Snoop window, such as whether it was able to read the SD card or not, etc... This will at least tell us whether the sound card is functioning correctly.

So that is the first step, to make sure that the Teensy can communicate with the computer. Hopefully that will give us some more information about what is happening.

I don't think the size of your sound files is an issue, as even 142 MB is not very large.

NO SUPPORT THROUGH PM - Read why
Need a forum account? Read here
Open Panzer FAQs

*

Offline rockchuck

  • 27
    • View Profile
  • australia
Re: problems with sound files on Open Panzer Sound card
« Reply #2 on: August 20, 2024, 08:50:17 PM »
Hi Luke
thanks for the reply.
OK I did get the sound card to snoop and see attached file for results.
I had to have the serial cable disconnected from the sound card for it to work and use the Teensy usb port as you said.
I had power onto the card however no sound was heard. I assume this is because I had no volume control pot plugged in as I use the radio to control the sound?
So looking at what is happening some sounds do work-- ie turret rotation and elevation, light switch sound on/off and some engine sound when I accelerate.

There is no startup sound or idle sound, machine gun sound ,cannon fire, engine shut down etc.
The sound files I am using are ones that I had to convert to 16bit format. I am using Audacity to modify the sound.
Maybe I need another source file for my sounds and get some sounds from various tank videos etc and try these out.
See attached snoop file.

thanks
rock
*
OP sound check.docx
(13.65 kB ~ Downloads: 53)

*

Offline rockchuck

  • 27
    • View Profile
  • australia
Re: problems with sound files on Open Panzer Sound card
« Reply #3 on: August 21, 2024, 10:35:46 AM »
Hi Luke
just thought of something after reading the posts in the sound card section regarding adding sound trigger functions etc. Maybe I need to upgrade the firmware in my sound card. The sound files I have been using that work ok are from this site and are the very first files made. My new files have some of the additional sound files added , and after reading the posts seem to require a firmware upgrade.  My TCB has the latest firmware as it prompted me to upgrade it but the sound card doesn't prompt so I never thought to upgrade it.
cheers
rockchuck

*

Offline LukeZ

  • 1255
    • View Profile
  • France
Re: problems with sound files on Open Panzer Sound card
« Reply #4 on: August 21, 2024, 12:02:35 PM »
Hi Rock, yes, it would be a good idea to make sure the Teensy has the latest firmware. You can update it from the Firmware tab of OP Config, just note that after you click the "Flash" button in OP Config, you also have to press the little physical button that is on the Teensy itself (you have about 10 seconds to push it after the Flash has begun). This tells the Teensy to accept new firmware.

When I look at the Word document you posted I can see that some files were successfully played, although the format of the text looks different that I would expect, I beleive it is also supposed to print the track length for each file that gets played. So that may indicate that your firmware is an old version.

Yes, I think the lack of sound during the test routine is probably because you don't have a volume pot and of course the TCB is not sending any volume commands. So I think you will need to plug in a potentiometer, hopefully you have one. 

See if those changes are of any help. If you still have problems, what I would recommend next is to remove all the sound files from the SD card, and add one file at a time and run through the test. Of course you can skip the files that you know already work. Maybe there is one file in there somewhere that is corrupted and causing problems, and in this way, although tedious, you may be able to discover which one it is. But if none of your problem files are playing, even when they are the only file on the SD card, then it probably indicates the file is not formatted correctly somehow. Audacity in theory should work just fine, and it sounds to me like you have saved them in the correct format, but who knows if maybe something went wrong in the conversion.

I'm sorry I'm not able to be of more help, but I hope with some tinkering and exploring on your end we can figure out what is going on.
NO SUPPORT THROUGH PM - Read why
Need a forum account? Read here
Open Panzer FAQs

 

bomber-explosion