X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=3vZakjQ63AieiE7j/vf4UEXDMIk/FQBkzrQJMS0vJAA=; b=V9N2xSsqNlOdZXtUWkVec8ff4uS6W0a0eiLIrVfJwNkxNUL88RURV8H0sff16ZvRni R0OAnTOUdzkZXi9fCNV9ykCsnFaGAZ9FMgHOJ5sfWULF6pwKvnY5YK0At031hKmxJOni +TxJcQ0tUq8ydcsP+sScDn2vfnWnsuymXO+59XuqO7KsvIIIpINyJOtbWEYdk7VpBCvx 52YD0jFnidIq7nU+euHEY45NvUzt8xVYmB67qI5YRwHKr7FR5GiXvhlKfk/82+IdzTBQ jvuOJh1mDj/n1Y+p5c5OUi+f15MwezUQgTBzWU+8fXms/gAWTVgdvUbMfOlFWkRwG3iY 26bA== MIME-Version: 1.0 In-Reply-To: <4FCBC2DB.80004@plastitar.com> References: <4FCBC2DB DOT 80004 AT plastitar DOT com> Date: Sun, 3 Jun 2012 17:06:29 -0400 Message-ID: Subject: Re: [geda-user] Power to a speaker OT From: Rob Butts To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary=0015174c35fa89b70504c197ca2a Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --0015174c35fa89b70504c197ca2a Content-Type: text/plain; charset=ISO-8859-1 The audio is a short sound similar to a duck quack. On Sun, Jun 3, 2012 at 4:02 PM, Phil Taylor wrote: > On 6/3/2012 12:26 PM, Rob Butts wrote: > >> I am using a microchip microcontroller to read in a 8ks 16 bit .wav file >> and output it through the dac. I have a small 109 dB speaker 32 ohm >> impedance, nominal input power of 12mW and max input power of 20mW for 1 >> minute. >> > > 12mW = Vrms^2 / zspkr > > so ... that's 1.8 Vpp continuous or 2.3Vpp for shorter times. The dac > rails are high enough to hit the power level most likely (even on 3V). The > current provided by the DAC is probably not high enough though to drive the > speaker directly. you'd need 30mA before output current limiting kicks in, > a power op amp, or some discretes inside an opamp feedback loop to drive > that speaker. (compute max current at waveform peaks, not with average or > rms voltages.) > > we need to know what kind of audio you are playing back. if it's a sine > wave, you won't need any gain ... to hit your power level. But if it's > music you will need some gain to get it loud. > > As for other ways to limit the power it would be possible to pre-process > your sound file, design a limiter circuit, or clip the analog going into > the speaker. Each of these options would have its own tradeoffs. > > Some compression may be needed to get the audio to feel loud, as will some > gain, though it sounds counterintuitive. > > Phil > --0015174c35fa89b70504c197ca2a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The audio is a short sound similar to a duck quack.

On Sun, Jun 3, 2012 at 4:02 PM, Phil Taylor &l= t;phil AT plastitar DOT co= m> wrote:
On 6/3/2012 12:26 PM, Rob Butts wrote:
I am using a microchip microcontroller to read in a 8ks 16 bit .wav file and output it through the dac. =A0I have a small 109 dB speaker 32 ohm
impedance, nominal input power of 12mW and max input power of 20mW for 1 minute.

12mW =3D Vrms^2 / zspkr

so ... that's 1.8 Vpp continuous or 2.3Vpp for shorter times. =A0The da= c rails are high enough to hit the power level most likely (even on 3V). Th= e current provided by the DAC is probably not high enough though to drive t= he speaker directly. =A0you'd need 30mA before output current limiting = kicks in, a power op amp, or some discretes inside an opamp feedback loop t= o drive that speaker. =A0(compute max current at waveform peaks, not with a= verage or rms voltages.)

we need to know what kind of audio you are playing back. =A0if it's a s= ine wave, you won't need any gain ... to hit your power level. =A0But i= f it's music you will need some gain to get it loud.

As for other ways to limit the power it would be possible to pre-process yo= ur sound file, design a limiter circuit, or clip the analog going into the = speaker. =A0Each of these options would have its own tradeoffs.

Some compression may be needed to get the audio to feel loud, as will some = gain, though it sounds counterintuitive.

Phil

--0015174c35fa89b70504c197ca2a--