Measuring Frequency Response

Nick Johnson edited this page Jul 30, 2015 · 1 revision

Using the Tsunami to measure frequency response

In the first two tutorials, we discussed the Tsunami's basic signal generation and measurement capabilities. Today, we'll demonstrate how to combine these building blocks to do something more sophisticated: measure frequency response.

As a test subject, we'll be using my Objective2 headphone amplifier. We simply connect the Tsunami's signal generation output to the amplifier's input, and the amplifier's output to the signal generator's input.

After tweaking the volume knob a bit for a useful output voltage, we can load a simple sketch onto the Tsunami:

void setup() {

void loop() {
    for(float freq = 55.0; freq < 2000000.0; freq *= 1.02930224) {
        Serial.print(" ");

After initializing the Tsunami, and configuring it with a useful output voltage for the application, we sweep through the frequency range from 55Hz to 200KHz. At each step, it pauses for 200 milliseconds, then reads the input voltage from the Tsunami's input and prints it out along with the current frequency.

Plotting this gives us a quick visual look at the amplifier's frequency response:

As you can see, it's pretty good - the frequency response is almost perfectly flat all the way from 55Hz up to well beyond audio frequencies. My purchase of this headphone amplifier was clearly a good one - almost as good as your decision to back the Tsunami.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.