Registration Notice

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

*

Offline Foxhood

  • 4
  • Electronics Engineer / Mad Scientist
    • View Profile
  • Netherlands
OPSC Lite
« on: December 01, 2025, 04:21:17 PM »
Took a detour from my TCB iterating efforts to experiment with sound involving one of the smaller AVR-Dx (AVR64DD28) and its built-in 10-bit DAC.

My reasoning is that if the original OPSC was a 72Mhz ARM processor juggling "6" channels of stereo, 16-bit, 44Khz PCM data from a uSD card via a SPI bus. Surely a 24Mhz AVR processor could juggle a few 8-bit mono channels. Benedini showed it was possible for AVR to do sound and that was with a older memory constrained ATmega8 type connected to slow Flash memory, no DAC and long before libraries like sdFat became the optimized beasts we know today. Only thing the AVR lacks is a DSP for floating point math so one has to cheat a little to keep mixing data within the ballpark of the ALU by using bit-shifts and multiplications for manipulating volume.

Approach is fairly simple. Two output buffers with one marked as active. A timer routine slowly goes through the active buffer pushing the values to the DAC output while the processor is prepping the other buffer. Grabbing pages of 8-bit signed 22Khz PCM via sdFat from files, manipulating volume and adding them to the buffer being worked on. Been running through benchmarks with pages of 1024 bytes and i've managed to get it to handle 9 files before it started to fail at preparing before the DAC Timer caught up to it. Which is very promising considering the old benedini only managed 2 channels and the OPSC could do 6. Honestly would have been happy with just 4 really. The main reason I'm getting this far is because this little AVR has 8KB of RAM which lets the sdFat library spend far less time seeking as it would with older ATMega.

Next is to get Logic running and test with actual soundsets rather than little test-waveform files, oh and see if i can optimize the SPI driver as currently it is using the default on within the core. Since I'm working with raw-files without a sound library i got a lot of freedom in how i deal with data. Can even do stuff like pre-processing files to make playback easy (e.g. behead them so you get RAW) and simply check the available variable to know when the last few pages are up for fading. Gonna take a lot of coding. But the progress thus far is fairly exciting.

I've also drafted a small board for it with the minimum components to see how small it actually is. It is really just the AVR, a generic LDO, uSD Slot and the MAX9768 (same as regular OPSC). BOM puts it at like 10$ plus PCB which makes it the cheapest sound-card yet, may be good for existing boards, though i am definitely looking at fitting the circuit unto my TCB Re-design as a co-processor. Perhaps even see if i can put it in charge of some 32A drivers...
schematic.png
OPSC Lite schematic.png
Views: 389
PCB.PNG
OPSC Lite PCB.PNG
Views: 386
« Last Edit: December 02, 2025, 01:30:46 PM by Foxhood »
Engineer by day, Mad scientist by night and Artist by weekend.
Ask me anything electronics related :3

*

Offline LukeZ

  • 1313
    • View Profile
  • France
Re: OPSC Lite
« Reply #1 on: December 03, 2025, 08:34:32 AM »
Hi Fox, it's fascinating to see you working, and what is possible when a real engineer tackles a challenge. An inexpensive but capable sound card is definitely one of those things people are frequently asking for, and doesn't really exist presently. I will be following your progress here with great interest !
NO SUPPORT THROUGH PM - Read why
Need a forum account? Read here
Open Panzer FAQs

*

Offline IIHadesII

  • 10
    • View Profile
  • Germany
Re: OPSC Lite
« Reply #2 on: December 04, 2025, 04:06:20 AM »
Hello, I’m not a developer and I don’t really understand what you’re doing there, but it sounds very exciting. I think many people would love to have a kind of TCB sound board again (similar to the Teensy 3.2). It’s especially cool if you can define all the sounds yourself using a micro SD card.
and if its going to be cheap ( becouse i think thats what the most people need, good and cheap) than thats gonna be the perfect solution for everybody.

best regards Ilias

*

Offline Snipah

  • 27
  • As Real as Models can sound
    • View Profile
  • New Zealand
Re: OPSC Lite
« Reply #3 on: December 29, 2025, 07:09:32 PM »
Agreed whole heartedly, I need a few sound cards not just one so something compact, powerful, and flexible is long over due..
As Real as Models can sound

*

Offline jhamm

  • 150
  • It´s a hobby no profession!
    • View Profile
  • Germany
Re: OPSC Lite
« Reply #4 on: December 30, 2025, 02:24:04 AM »
and if its going to be cheap ( becouse i think thats what the most people need, good and cheap) than thats gonna be the perfect solution for everybody.

That's wishful thinking.
Look what happened to the Benedini sound modules.
Chinese copies caused Benedini to give up, the software is no longer being developed.
You can still get these copies for very little money...

*

Offline Foxhood

  • 4
  • Electronics Engineer / Mad Scientist
    • View Profile
  • Netherlands
Re: OPSC Lite
« Reply #5 on: January 07, 2026, 08:48:05 AM »
Hello. Was a bit absent during december. Know how it goes. Lots of things to do, and good luck getting any packages around the holidays on time...
Progress was slowed down a bit because of it. But i'm back at it.

Hello, I’m not a developer and I don’t really understand what you’re doing there, but it sounds very exciting. I think many people would love to have a kind of TCB sound board again (similar to the Teensy 3.2). It’s especially cool if you can define all the sounds yourself using a micro SD card.
and if its going to be cheap ( becouse i think thats what the most people need, good and cheap) than thats gonna be the perfect solution for everybody.

best regards Ilias

The gist is that i'm trying to create something akin to the Benedini TBS in size and components, but with the same kind of functionality as the Teensy 3.2 OPSC and cheap enough in material that you could like get a bunch made at PCBway or something through the inclusion of compliant BOM and Centroid files.
Or hell. Maybe some chinese copycat starts manufacturing for even cheaper! For the sake of the Open Panzer project as a whole I'd consider that a good thing. Wouldn't mind recognition and a tip though if for some reason people do start building my offshoots ;P.

Agreed whole heartedly, I need a few sound cards not just one so something compact, powerful, and flexible is long over due..

I'll do my best. Are you looking for sound from RC inputs or OpenPanzer specifically? Cause latter is the priority at first. Former i don't have much information on what people are looking for, like channel count.
I'm trying to keep things in the realm of being possible to build oneself using a miniature reflow plate (e.g. Sequre T55 or Miniware MHP50) and compliant with assembly services.

and if its going to be cheap ( becouse i think thats what the most people need, good and cheap) than thats gonna be the perfect solution for everybody.

That's wishful thinking.
Look what happened to the Benedini sound modules.
Chinese copies caused Benedini to give up, the software is no longer being developed.
You can still get these copies for very little money...

That is kind of why I'm taking a stab at this. The only option atm for programmable sound are copycats making clone boards that are quite frank: horribly outdated and reliant on old pirated copies of what is now essentially Abandonware. An Open-source alternative is much needed. On costs: I'm avoiding stuff like double-sided components and overall complexity to push assembly costs down as much as possible. As stated above: Intent is for it to be feasible to get it however one wishes.
Engineer by day, Mad scientist by night and Artist by weekend.
Ask me anything electronics related :3

 

bomber-explosion