Replies: 3 comments 4 replies
-
Chris this rocks!!!!!! Adding a wiki tag to remember to add it there. Good to know that the frequency response changes depending on whether the resistor is a speaker vs. a resistor (i shoulda known that the speaker wouldn't be totally passive) The only evidence we have for the output filter on the amp is from the support forum as well as there seeming to literally be an LC filter visible on the chip, though I didn't measure the capacitance/inductance of either of the components when I took them off. |
Beta Was this translation helpful? Give feedback.
-
I think something that will tickle you both happened recently in the lab I'm in. We threw an oscilloscope onto our speakers' wires to see why were getting these odd crackling noises from the Jonny told me about the perils of this a while ago. I figured it would be interesting to share an occurrence of looking at this stuff "from the field". And we're only producing tones that are 2 and 9 kHz... |
Beta Was this translation helpful? Give feedback.
-
That is how a Class-D audio amplifier works (or, as far as I understand
it). There is a lot more to the details of it, which is why people don't
replace their stereos with Arduinos, but I think that's the general idea.
https://en.wikipedia.org/wiki/Class-D_amplifier
…On Tue, Aug 16, 2022 at 1:18 PM Jeremy Delahanty ***@***.***> wrote:
That is what it does (PWM bit)! Is that kind of filtering literally what
an audio card does? I've never really looked into what they're up to.
—
Reply to this email directly, view it on GitHub
<#182 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEWFUKFFKVSLRVKZDSEOL3VZPEPXANCNFSM55CH3YCQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello all, I have finally got around to testing the frequency response of various hifiberry cards with my tweeters. The results are encouraging.
As background, for a while we have thought there is a lowpass filter applied to the output of the hifiberry, to remove signals above some cutoff frequency. This makes sense for human listeners but not necessarily for mice.
https://wiki.auto-pi-lot.com/index.php/HiFiBerry_Amp2
https://twitter.com/chrisXrodgers/status/1535849926533562368
https://support.hifiberry.com/hc/en-us/community/posts/201846541-Ultrasonic-Frequency-Response-
https://support.hifiberry.com/hc/en-us/community/posts/360014295118-Ultrasonic-frequency-response
I tested the output of 3 cards:
Hifiberry Amp2 https://www.hifiberry.com/shop/boards/hifiberry-amp2/
Hifiberry DAC2 Pro https://www.amazon.com/gp/product/B08GKGVMZN
Hifiberry DAC2 HD https://www.amazon.com/gp/product/B08C1ZMDF1
I'm using Amazon links to the actual products I bought because Hifiberry's website sometimes seems to use DAC2 and DAC+ interchangeably, and I am confused about the difference. In particular the DAC2 Pro I have doesn't really match any of the DACs on the Hifiberry website, but is most similar visually to the DAC+ Pro.
I played full bandwidth white noise using Autopilot. I measured the audio power using an HBK ultrasonic microphone that is guaranteed flat up to 100 kHz. I also measured the voltage on the output of the DAC.
I tested two speakers, neither of which are available anymore. They were dirt cheap and promoted as ultrasonic transducers.
Almencla 2-inch 2.5-60KHz Piezo Horn Speaker Tweeter
Multicomp MCPCT-G5100-4139
I also made measurements with no speaker connected. Obviously no sound was played, but I could still measure the voltage coming out of the DAC. Importantly (spoiler) this voltage was very different with a speaker connected versus not.
First let's just look at the voltage output of each DAC. See figure here: https://www.dropbox.com/s/08lqlswf70jl3b0/dac_comparison.svg?dl=1
Next let's take a look at the audio power coming out of the speaker in each condition. See figure here:
https://www.dropbox.com/s/u7a9huc51xa8mxj/audio_power_analysis.svg?dl=0
So in conclusion, at high frequencies, it becomes more difficult to apply a voltage to the speakers, and the audio they produce for a given voltage is lower. But the Amp2 effectively compensates for this, first because it is better able to drive the speakers at high frequencies, and second because its own voltage output actually increases at high frequencies.
I see no evidence for a lowpass filter on the output of the Amp2, though I do definitely see one on the DAC2 HD. This matches what Hifiberry support wrote in this comment on Dec 2020 (https://support.hifiberry.com/hc/en-us/community/posts/360014295118/comments/360003504057). Is there any documented evidence of a lowpass filter at 20 kHz on the Amp2?
However these results are very dependent on the load: you will get a very different result if you test just with no speaker (open circuit), a load resistor (purely resistive), or different kinds of speakers. I certainly could believe that there are tweeters out there that the Amp2 cannot drive but other, specialized amplifiers can drive (perhaps Ralph's are like this). They probably just become very low-impedance at high frequencies and the Amp2 doesn't have enough current to drive them. My cheap tweeters don't seem to suffer from this problem until 75 kHz or so.
Next I am going to apply some filtering to the audio stimuli in order to produce sound out of the speaker that is flat from 5 kHz to 75 kHz, I think this should be possible.
Beta Was this translation helpful? Give feedback.
All reactions