element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
WorkBench Wednesdays
  • Challenges & Projects
  • element14 presents
  • WorkBench Wednesdays
  • More
  • Cancel
WorkBench Wednesdays
Documents Op Amps Without Op Amps - Workbench Wednesdays 39
  • 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: Matt
  • Date Created: 8 Jun 2021 4:49 PM Date Created
  • Last Updated Last Updated: 16 Jun 2021 7:24 AM
  • Views 3704 views
  • Likes 11 likes
  • Comments 9 comments
Related
Recommended

Op Amps Without Op Amps - Workbench Wednesdays 39

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

Okay, technically, this circuit *does* use Op-Amps. However, the ones shown here are integrated into an ATmega128DB microcontroller from Microchip. The DIP package breaks out two operational amplifiers that are controllable entirely by software. Even better, you can program like they are an Arduino!

 

Supplemental Content:

  • Pocket Op-Amp Lab technoblogy: Technoblogy - Pocket Op Amp Lab
  • The Learning Circuit 68: How Op Amps Work
  • DxCore ATmega128DB for Arduino IDE:  https://github.com/SpenceKonde/DxCore
  • 7 reasons why I like the ATmega128Dx MCUs

 

Bill of Material:

Product Name Manufacturer Quantity Buy Now
AVR128DB MCU, 8BIT, 24MHZ, SPDIP-28 ROHS COMPLIANT: YES Microchip 1 Buy Now
Evaluation Board, MCU 8-Bit, Arduino Nano, AVR, ATmega328 Arduino 1 Buy Now
USB to UART (Serial) Board FTDI 1 Buy Now
Digital Oscilloscope, 14-bit, 4-in-1, 2+1 Channel, 200 MHz, 1 GSPS, 40 Mpts, 1.7 ns Multicomp 1 Buy Now

Attachments:
Op_Amps_Without_Op_Amps_Resources.zip

 

Workbench Wednesday
element14 presents  |  About James |  Workbench Wednesdays

  • opampsch
  • programmable gain amplifier (pga)
  • amplifier
  • amplifer
  • e14presents_baldengineer
  • microcontroller
  • workbench wednesdays
  • op amps
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • baldengineer
    baldengineer over 4 years ago in reply to rsjawale24 +2
    I would recommend against this method. Voltage dividers are lousy voltage sources, especially for a circuit like an op-amp. As the current draw changes, the supply voltages are going to change. The result…
  • DAB
    DAB over 4 years ago +1
    Very cool chip. You did a good job of showing off some of its capabilities. You could easily do a series of shows to really put the chip to some use cases. DAB
  • baldengineer
    baldengineer over 4 years ago in reply to koudelad +1
    Ouch. I know there are some other mixed-signal chips out there. Silego? I don't think this microcontroller is meant to compete there. I really think this is a case where they had amplifiers for the DAC…
  • baldengineer
    baldengineer over 3 years ago in reply to kmikemoo

    Maybe someday. I'm up to my ears with learning new platforms for another digital project. I don't have enough bandwidth for getting up-to-speed on yet-another-MCU.

    I'm really starting to struggle with a good reason to stick to 8-bit MCUs anymore. The power management of modern Arm/32-bit MCUs is so good and their prices (when available.......) are usually lower than their 8-bit counterparts.

    But, the AVR128DB is a really cool chip.

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

    baldengineer  Will we be seeing more of the cool features of this chip?  I hope so.

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

    Ouch. I know there are some other mixed-signal chips out there. Silego? I don't think this microcontroller is meant to compete there.

     

    I really think this is a case where they had amplifiers for the DAC and ADC already and just extended the functionality a little bit.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • koudelad
    koudelad over 4 years ago

    Great demonstrations of the chip features.

     

    At first I wanted to write that it seems like the competition is only slowly trying to catch up with Cypress PSoCs that also feature ADC, voltage / current DAC, op amps / comparators and analog multiplexors and most importantly a graphical IDE (PSoC Creator) that makes the development super easy - you can draw a schematics that is part of the project.

    However, newer PSoC 6 is recommended to be developed on a multiplatform Eclipse-based IDE (Modus Toolbox) that lacks the graphical editor.

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

    I would recommend against this method. Voltage dividers are lousy voltage sources, especially for a circuit like an op-amp.

     

    As the current draw changes, the supply voltages are going to change. The result is going to be an unstable circuit. It might seem to work in a simulator, but it definitely will have problems in a real circuit application.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rsjawale24
    rsjawale24 over 4 years ago in reply to jone1316

    Hi!
    An easier way to generate dual polarity supply from a single battery (of V volts) is to create a simple voltage divider network using two equal value resistors and making the junction of both resistors as ground. This way you can get +/- V/2.

    Attached an image for reference. I'm using a 9V battery and 100 ohm resistors. However, as James suggested above, a simple inexpensive 9V battery won't be able to supply 100mA. You can try using a 9V lead acid battery or a Li-Po battery for larger currents.

    Simulated using LTSpice.

    imageimage

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

    Hi Wesley, if you need an output that swings below 0 volts, I could consider a charge pump.

     

    If you can bias the input and output to stay positive. then I would use a LM358–or almost any other op amp than a ua741.

     

    I am more concerned about you using a 9v battery! Those can barely supply 50 mA. They drop quite a bit even at 100 mA!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 4 years ago

    Very cool chip.

     

    You did a good job of showing off some of its capabilities.

    You could easily do a series of shows to really put the chip to some use cases.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jone1316
    jone1316 over 4 years ago

    James,

    I never miss your videos, I think you do an excellent job presenting information.

     

    With respect to an LM741 Op Amp, how would you build a circuit using a single power supply (i.e. a 9v battery) to supply the positive and negative supply rails?

    Let's say the maximum current output might be around 100 mA.

     

    Best regards,

    Wes

    • 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