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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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
WorkBench Wednesdays
  • Challenges & Projects
  • element14 presents
  • WorkBench Wednesdays
  • More
  • Cancel
WorkBench Wednesdays
Documents Learn Three Ways You Can Create Bode Plots - Workbench Wednesdays 64
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join WorkBench Wednesdays to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: tariq.ahmad
  • Date Created: 9 Nov 2022 6:10 PM Date Created
  • Last Updated Last Updated: 23 Nov 2022 8:24 AM
  • Views 23582 views
  • Likes 5 likes
  • Comments 19 comments
Related
Recommended

Learn Three Ways You Can Create Bode Plots - Workbench Wednesdays 64

Creating a bode plot from a simulation (or transfer function) is easy. But what if you want to create a bode plot for a REAL op-amp circuit or filter? One way is to measure a few parameters with an oscilloscope and function generator and then put those into a spreadsheet. Another is to use network analysis or frequency response analysis to do it automatically!

Watch the Video:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Supplemental Content:

  • Workbench Wednesdays 42: Compare Ideal vs. Real Filter with an LCR Meter
  • Workbench Wednesday 17: Instrument Basics: Function Generator
  • Workbench Wednesdays 54: How Oscilloscope Acquisition Modes Work
  • Workbench Wednesday 18: Digilent Analog Discovery Review
  • Workbench Wednesdays 49: Instrument Basics: Vector Network Analyzer (VNA) with PicoVNA
  • DC to Daylight 13: How Operational Amplifiers Work
  • The Learning Circuit 68: How Op Amps Work
  • Voltage Feedback Op-Amp Gain and Bandwidth App Note

Bill of Material:

Product Name Manufacturer Quantity Buy Kit
LM358 - Audio TI 1 Buy Now
TL081 - JFET General Purpose, 4 MHz SOIC-8 ST Microelectronics 1 Buy Now
Bench Oscilloscope - 200 MHz, 1 GSa/s, 14-bit, AFG, DMM Multicomp Pro 1 Buy Now
[Bundle] Development Kit, Analog Discovery 2 Pro Bundle, 30MHz Oscilloscope, 12MHz Waveform Generator Digilent 1 Buy Now
MXO4 - 4 Channel Oscilloscope 200 MHz Rohde & Schwarz 1 Buy Now
 

element14 presents

element14 Presents  |  About James|  Workbench Wednesdays

  • bode plot
  • network analyzer
  • Network analysis
  • oscilloscope
  • function generator
  • frequency response analysis
  • FRA
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • scottiebabe
    scottiebabe over 3 years ago in reply to jc2048 +3
    I think BE just had bad luck with the intern/murphy . The TL081 spice model doesn't include any capacitance on its input, let alone the parasitic capacitance on a breadboard. Green: No cf, Red: Cf…
  • jc2048
    jc2048 over 3 years ago in reply to baldengineer +1
    Here's a possible theory you might test. The TL081 has a pair of offset pins which you appear to have left unconnected. As well as using them to adjust the offset, which you wouldn't need to worry about…
  • baldengineer
    baldengineer over 3 years ago in reply to scottiebabe +1
    Cool! My plan is to solder a duplicate circuit to a perfboard (with generous solder) and do the sweep/plot again when I talk about how to automate the measurement in python (for those that don’t have an…
Parents
  • baldengineer
    baldengineer over 3 years ago

    At the end of the video, before I rushed The Intern to the ER, I showed this picture:

    image

    I didn't show in the video how closely the LM358-based circuit matched between simulation and measured. (The -3dB point was off by a few kilohertz--but close enough.)

    So any thoughts as to why the TL081-based circuit has such a different response in simulation versus being measured?

    For reference, here are the LTSpice files I used.

    wbw64 - lm358 and tl081 LTspice sims.7z

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jc2048
    jc2048 over 3 years ago in reply to baldengineer

    Here's a possible theory you might test.

    The TL081 has a pair of offset pins which you appear to have left unconnected. As well as using them to adjust the offset, which you wouldn't need to worry about for ac-coupled signals with a lowish gain, one of them could also be used to adapt the compensation for better bandwidth (see the part of the TI datasheet that refers to feed-forward compensation - there's a graph and a schematic, but it's not all that clear on a quick, casual read that they relate together or what the circuit does). On your breadboard, with all the parasitic capacitances between traces, it might just be that you're doing your own adaption of the compensation. A simple way to find out is to bend both those legs so that they're pointing straight up and have minimal capacitance to anything else and see if the Bode plot changes.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • baldengineer
    baldengineer over 3 years ago in reply to jc2048

    I have been able to change the simulation to match the measured result.

    Interesting idea on the test with offset pins. I'm curious what will happen, so I'll give it a try.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • scottiebabe
    scottiebabe over 3 years ago in reply to jc2048

    I think BE just had bad luck with the intern/murphy. The TL081 spice model doesn't include any capacitance on its input, let alone the parasitic capacitance on a breadboard.

    image

    image

    Green: No cf, Red: Cf=4pF

    On the LM358 the output and inverting input pins are adjacent so you get the breadboard row-row capacitance a helpful bonus by introducing a zero to help counteract the pole created in the feedback network from capacitance to ground. 

    If the peaking problem disappears with smaller feedback resistors say 1kOhm, then the gain was likely peaking due to capacitance on the inverting input node (reducing the closed loop phase margin).

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • baldengineer
    baldengineer over 3 years ago in reply to scottiebabe

    Gosh. It's almost like there was a reason I made sure to attach the TL081 model I used. Slight smile  (Not sure if you used that one or another. I think I got that one from TI.)

    I found just 5 pF got a similar result. (I had a Cf cap at one point too.) Enough to realize what was going on.

    image

    I knew the prolific members here would likely catch this one. But it did throw me for a few minutes.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • baldengineer
    baldengineer over 3 years ago in reply to baldengineer

    And by "me," of course, I mean The Intern.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • scottiebabe
    scottiebabe over 3 years ago in reply to baldengineer

    I tried your circuit with a TL072 (don't have a 071) and got a substantially different results, the gain peaked maybe 5-10%.

    So I was intrigued to dig a little deeper. I had the bend the output pin up and solder the one leg of feedback resistor to demonstrate the effect.

    Again, great episode!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • baldengineer
    baldengineer over 3 years ago in reply to scottiebabe

    Cool! My plan is to solder a duplicate circuit to a perfboard (with generous solder) and do the sweep/plot again when I talk about how to automate the measurement in python (for those that don’t have an FRA option on their scope.)

    But your way sounds more fun. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • scottiebabe
    scottiebabe over 3 years ago in reply to baldengineer

    That sounds wonderful! Being able to automate your measurements is a game changer for sure!

    To clarify the reason I didn't see the issue nearly as pronounced as you had was because the breadboard was doing me a favor! 

    I got this capacitor for free:

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • scottiebabe
    scottiebabe over 3 years ago in reply to baldengineer

    That sounds wonderful! Being able to automate your measurements is a game changer for sure!

    To clarify the reason I didn't see the issue nearly as pronounced as you had was because the breadboard was doing me a favor! 

    I got this capacitor for free:

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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 © 2026 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