element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Test & Tools
  • Technologies
  • More
Test & Tools
Blog Experimenting with an All-Pass Filter Using the ADALM1000 from Analog Devices
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Test & Tools requires membership for participation - click to join
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: jc2048
  • Date Created: 3 Jul 2023 11:21 AM Date Created
  • Views 1650 views
  • Likes 14 likes
  • Comments 7 comments
  • bode plot
  • All-pass Filter
  • adalm1000
  • jc2048
Related
Recommended

Experimenting with an All-Pass Filter Using the ADALM1000 from Analog Devices

jc2048
jc2048
3 Jul 2023

I wanted to have a look at the Bode plotting with the ADALM1000, so I've chosen to start by looking at an all-pass filter circuit. The idea of an all-pass filter, one that passes all frequencies, seems slightly odd (is it really a 'filter'?) until you remember that a filter has a phase response as well as an amplitude one, and in this case it's the phase response that's of interest and may be of use in a circuit.

Here's the circuit: this is the phase lag variant - you can get the lead variant by swapping the resistor R3 and capacitor C1 positions. The capacitor doesn't really need to go to +2.5V and could go to ground - that was a hangover from where I had a resistor in place of C1, when the voltage on the other end does matter (helpfully, the module has a +2.5V output pin for providing just this sort of bias in circuits being experimented with).

image

Understanding it in a general, hand-wavy kind of way is quite straightforward if you're familiar with how the inverting and non-inverting op-amp amplifiers work. At low frequencies, the capacitor has time to charge and discharge, so the voltage at the non-inverting input follows the input. The op amp feedback will act to keep the two inputs together, so the ouput will also have to be following the input - so no phase change and a gain of close to one. At the high frequency end, the capacitor has no time to charge or discharge, so will maintain an average level of the input signal - now the input signal appears across R3 and, in order to keep the two op amp inputs together, the output will have to be the inverse of the input - absolute gain still one, but phase now 180 degrees. For frequencies between those extremes, we would expect a transition between the two. That's what I'm going to look at with the ADALM1000.

This is the measured response over the interval 10Hz to 10kHz - I chose the log axis, as is conventional with a Bode plot. The purple trace is the amplitude and the yellow trace the phase. I'm doing this with a waveform having a +2.5V dc offset, so that it's midrange for the op amp input.

image

It takes about a second or so for each step at the start of the sweep, though it speeds up a bit as the frequency gets higher. The recovery of the amplitude and phase appears to be done with the FFT.

The response nicely shows the way that the phase varies with frequency whilst the amplitude remains at unity gain. There's a slight dip in the gain at the crossover, where the two modes of operation of the filter don't quite overlap as they should, a contrast to the simulation with it's perfectly matched 10k resistors, which shows this:

image

Although that's all good, I did discover a significant problem with the plotting. If I resize the window and run the sweep again, I get this:

image

You can see that, although the amplitude curve is still at 0dB, the phase curve has moved. It seems that it may have been drawn taking into account the original size in some way. The problem for the user is that it makes the phase values totally unreliable unless the window is left alone in the place where it initially gets created.

Adjusting the axes was somewhat painful. For the gain, the scale is adjusted using the buttons on the panel. I found it best to adjust the dB/div first, and then the level, up or down. There doesn't seem to be any way to adjust the phase axis.

The odd-looking '9999 Hz' label on the frequency axis is a leftover from the sweep (a cursor makes its way across during the sweep, with the frequency being reported at the bottom).


Further information

Analog Signal Processing, Ramon Pallas-Areny and John G. Webster, Wiley Interscience, 1999 p365

A Short Informal Review of the ADALM1000 from Analog Devices

Analog Devices product page for the ADALM1000

Farnell product page for the ADALM1000

  • Sign in to reply
  • DAB
    DAB over 1 year ago in reply to jc2048

    We used discrete component Opamps.

    It was a time when they were just starting to build IC versions.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jc2048
    jc2048 over 1 year ago in reply to DAB

    Another way of looking at it is as a form of active AC bridge. The input excites the bridge (the four passive components) and the op amp auto-balances it.

    Did you learn with 741s, or hadn't they arrived at that point?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jc2048
    jc2048 over 1 year ago in reply to genebren

    You're doing better than me - I don't remember it at all. I was much more focussed on all the exciting new microprocessor stuff back then than analogue electronics. I found this circuit in a book - I've just added a reference at the end of the blog - though they refer to it as 'phase lead' rather than lag, so I might well be wrong in that. They include it in the chapter for active filters, so that must be how it gets taught.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jc2048
    jc2048 over 1 year ago in reply to shabaz

    The hardware is looking good so far. Not sure I would want to actally recommend it to others, though, because of the rough edges to the software. I'll be very interested to find out how the ADALM2000 performs from the roadtests that are currently being carried out.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 1 year ago

    Nice test, I always had trouble visualizing these issues when I learned about opamps 50 years ago.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube