Author Topic: Speaker simulation model for open source project  (Read 1380 times)

0 Members and 1 Guest are viewing this topic.

Offline gnuarm

  • Frequent Contributor
  • **
  • Posts: 942
  • Country: aq
Speaker simulation model for open source project
« on: February 10, 2021, 11:16:51 pm »
I need to design a driver for a speaker to sound an alarm on an open source project.  The drive is from a PWM modulated 32.768 kHz waveform.  I'm not worried so much about the 33 kHz drive, but I would be interested in seeing how the circuit handles that.  If nothing else the speaker and the ear should integrate the 33 kHz. 

I'm interested in seeing the frequency response of the in series cap with the speaker characteristics as well as the resulting current through a sense resistor used to detect a speaker failure.  Yeah, I know, this sounds a bit extreme.  It's for a ventilator where the alarm circuit has requirements regarding this.

I've found a number of web pages that show a 5 element equivalent circuit, LR(LCR) where the parentheses enclose components in parallel and everything else is in series.  What they don't show is how to obtain the parameters for the speaker. 

I've written to the speaker maker to see if they can provide the parameters for simulation.  One of the web pages for the model show how to calculate the simulation parameters from other, equally hard to get parameters such as Mechanical Q factor, Electrical Q factor and other Thiele Parameters.  I'm pretty sure I'm not going to get Thiele Parameters for a 2" speaker (although BMS has them for some of their 500 watt products which would be about perfect other than the price).  I'm not sure I'll be able to get the passive model data either. 

The speaker I'm using has a resonance of 300 Hz and a response range of 150 Hz to 12500 Hz, impedance 50 ohms.  I could come up with values for a three element model, but that doesn't seem it would be as effective as the five element model.  Any suggestions?  I suppose without more data there's no way to come up with a fuller simulation model. 

One effect I'd like to get right is the DC response.  I would expect the DC resistance to be a lot different from the stated impedance but I have no way of estimating that.
« Last Edit: February 10, 2021, 11:50:27 pm by gnuarm »
Rick C.
  - Get 1,000 miles of free Supercharging
  - Tesla referral code - https://ts.la/richard11209
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 10469
Re: Speaker simulation model for open source project
« Reply #1 on: February 11, 2021, 01:32:50 am »
Your GoogleFu is lacking! Try https://www.google.com/search?q=measuring+thiele+small+parameters
This result looked interesting and relatively simple to implement
https://audiojudgement.com/measure-thiele-small-parameters-using-free-software/

Hint: simply measure the DC resistance, preferably using a meter that supports four wire measurement.

Of course if you haven't got the speaker yet, you'll be a bit stuck . . . .
« Last Edit: February 11, 2021, 01:40:56 am by Ian.M »
 

Offline Circlotron

  • Super Contributor
  • ***
  • Posts: 2473
  • Country: au
Re: Speaker simulation model for open source project
« Reply #2 on: February 11, 2021, 01:39:33 am »
T&S parameters are pretty straightforward to measure. Here's my tried and true spreadsheet that does it all for you.

https://www.diyaudio.com/forums/multi-way/24864-parameter-spreadsheet-post353269.html
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 10469
Re: Speaker simulation model for open source project
« Reply #3 on: February 11, 2021, 01:44:20 am »
@Circlotron,
diyAudio attachments are members only. :( Any chance you can repost your spreadsheet here?
 

Offline Circlotron

  • Super Contributor
  • ***
  • Posts: 2473
  • Country: au
Re: Speaker simulation model for open source project
« Reply #4 on: February 11, 2021, 01:50:50 am »
Here you go.
 
The following users thanked this post: Ian.M

Offline gnuarm

  • Frequent Contributor
  • **
  • Posts: 942
  • Country: aq
Re: Speaker simulation model for open source project
« Reply #5 on: February 11, 2021, 03:22:21 am »
Of course if you haven't got the speaker yet, you'll be a bit stuck . . . .

Ah, the economist joke.  Castaways on dessert island, crate of canned food, can't open cans, chemist idea doesn't work, engineer's idea doesn't work, economist says, "Assume we have a can opener!" 

No, I don't yet have the speaker.  lol  :-//
Rick C.
  - Get 1,000 miles of free Supercharging
  - Tesla referral code - https://ts.la/richard11209
 
The following users thanked this post: Ian.M


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf