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
  • 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
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum Differential amplifier problem
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 38 replies
  • Answers 15 answers
  • Subscribers 301 subscribers
  • Views 9850 views
  • Users 0 members are here
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

Differential amplifier problem

Andrew J
Andrew J over 5 years ago

I'm working with a DAC and experimenting with removing the zero scale error - the actual output at a zero input code.  I'm on a breadboard so it isn't particularly accurate but the ZSE is 5mV to 11mV.

 

I set up a differential amplifier as follows - image is copied from a website, but I've confirmed and re-confirmed that my setup matches:

image

So, I have the following inputs:

V1 = 0.005mV

V2 = DACoutput

R = 100K.  All of them.

Opamp is an LM741 which is all I have on-hand, V+ = 5V, V- = ground .  It has a max offset voltage of 6mV.

 

Given that, I would expect Vout = V2 - V1.  Vout is connected to a 1K resistor to ground.

 

So the reality is that the R values are not perfectly 100K but are within the 10% spec.  Thus I wouldn't expect Vout to be an exact difference, but 'more-or-less'.

 

This is what I'm measuring:

DACout (V2) = 4.06V, Vout = 4.04V

DACout (V2) = 0.011V, Vout = 3.6V

 

I've tried working out why with a low DACout I'm still getting a large Vout.  Measuring the resistors and plugging them into the gain formula:

 

Vout = -0.005 * (99.03/99.5) + 0.011 * (99.21/(99.05+99.21)) * ((99.5+99.03)/99.5)

Vout = (-0.005 * 0.995) + (0.011 * 0.500 * 1.995)

Vout = -0.005 + 0.011 = 0.006

 

So, essentially, my calculation confirms what I would expect the amplifier to do with a -0.005mV and 0.011mV input.

 

I can't figure out where I've gone wrong, can anyone give me some pointers?

Attachments:
2477.LM741.asc.zip
  • Sign in to reply
  • Cancel

Top Replies

  • michaelkellett
    michaelkellett over 5 years ago +5 verified
    What power do you have connected to the 741 - it's not rail to rail capable it needs positive and negative supplies, +/- 10V is the minimum recommended. The input common mode range is +/- 12V when running…
  • michaelkellett
    michaelkellett over 5 years ago in reply to Andrew J +5 suggested
    If you want to sink any current at 0V you need a negative supply. You could consider using +/- 5V supplies (+/- 10 if you stick with the 741 ) You can do a lot of this without spending money by using a…
  • Jan Cumps
    Jan Cumps over 5 years ago in reply to Andrew J +4 suggested
    Yes, we're doing it the naive way. That's why I hope that analog / DAC experts chime in and show the shining path to real world solutions. In the eLoad we made, things like OpAmp offset, quiescent current…
Parents
  • Andrew J
    0 Andrew J over 5 years ago

    To follow this up.  I ran a small test with V+ at +15V and V- at -15V.

     

    As predicted by others in this thread the op amp isn't really up to the job.  The original issue which drew my question is solved - it needs the -ve rail - but it shows its limitations.  I can't even null the offset error.

     

    Here's the results of two tests for given inputs, the resulting output:

    1. DACout 12.6mV, Voffset 12.6mV, Vout = 44.6mV
    2. DACout 4.0631V, Voffset 14.2mV, Vout = 4.0948V

     

    So it's not exactly subtracting!

     

    I also created an LTSpice simulation for these tests:

    Test 1

    image

    The -4.5v drop at the start limits the V scale, but the cursor measurement shows a drop to <1mV

     

    Test 2

    image

    Here, it shows a correct subtraction.

     

    So LTSpice simulation is proving the principle even if a physical part can't quite live up to it.  I'm now looking into Op Amps in more detail to get a better idea.  Thanks to Michael and Wolfgang for their input on this.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 5 years ago in reply to Andrew J

    Can you post your LTSpice model ?

    Thanks.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Andrew J
    0 Andrew J over 5 years ago in reply to michaelkellett

    I used the one in the LTSpice example folder which I've attached to the post.  Changed the input voltages and Spice directives as necessary but changed nothing else.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Andrew J
    0 Andrew J over 5 years ago in reply to michaelkellett

    I used the one in the LTSpice example folder which I've attached to the post.  Changed the input voltages and Spice directives as necessary but changed nothing else.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • michaelkellett
    0 michaelkellett over 5 years ago in reply to Andrew J

    Sorry Andrew, I can't see the attachment.

    You could just paste the .ascii file in from LTSpice.

     

    Thanks.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Andrew J
    0 Andrew J over 5 years ago in reply to michaelkellett

    I can see it as a ZIP file attachment (.asc file) to the original post but here's the ascii version:

     

    Version 4

    SHEET 1 3268 1552

    WIRE 2416 384 1744 384

    WIRE 3264 384 2496 384

    WIRE 1856 464 1616 464

    WIRE 2032 464 1856 464

    WIRE 2096 464 2032 464

    WIRE 2288 464 2096 464

    WIRE 2448 464 2288 464

    WIRE 2816 464 2448 464

    WIRE 3040 464 2816 464

    WIRE 1616 480 1616 464

    WIRE 2096 496 2096 464

    WIRE 2288 496 2288 464

    WIRE 2448 496 2448 464

    WIRE 2816 496 2816 464

    WIRE 2176 544 2160 544

    WIRE 2224 544 2176 544

    WIRE 2528 544 2512 544

    WIRE 2752 544 2528 544

    WIRE 1616 576 1616 560

    WIRE 3040 576 3040 464

    WIRE 2448 624 2448 592

    WIRE 2528 624 2528 544

    WIRE 2528 624 2448 624

    WIRE 2816 624 2816 592

    WIRE 2816 624 2560 624

    WIRE 2928 624 2816 624

    WIRE 2976 624 2928 624

    WIRE 1616 656 1456 656

    WIRE 1744 656 1744 384

    WIRE 1744 656 1696 656

    WIRE 1856 656 1744 656

    WIRE 2256 656 1856 656

    WIRE 1456 672 1456 656

    WIRE 2928 672 2928 624

    WIRE 2096 688 2096 592

    WIRE 2096 688 1936 688

    WIRE 2176 688 2176 544

    WIRE 2176 688 2096 688

    WIRE 2704 688 2688 688

    WIRE 2816 688 2816 624

    WIRE 2816 688 2784 688

    WIRE 2816 720 2816 688

    WIRE 3040 720 3040 672

    WIRE 3040 720 2992 720

    WIRE 1936 736 1936 688

    WIRE 2176 736 2176 688

    WIRE 2448 736 2448 624

    WIRE 3040 752 3040 720

    WIRE 2688 768 2688 688

    WIRE 2752 768 2688 768

    WIRE 1632 784 1536 784

    WIRE 1776 784 1712 784

    WIRE 1856 784 1776 784

    WIRE 1872 784 1856 784

    WIRE 2256 784 2256 656

    WIRE 2256 784 2240 784

    WIRE 1456 816 1456 752

    WIRE 2560 816 2560 624

    WIRE 1536 832 1536 784

    WIRE 2688 832 2688 768

    WIRE 2704 832 2688 832

    WIRE 2816 832 2816 816

    WIRE 2816 832 2784 832

    WIRE 1776 848 1776 784

    WIRE 1936 864 1936 832

    WIRE 2176 864 2176 832

    WIRE 2928 864 2928 768

    WIRE 3040 864 3040 832

    WIRE 3040 864 2928 864

    WIRE 3136 864 3040 864

    WIRE 3264 864 3264 384

    WIRE 3264 864 3136 864

    WIRE 3040 880 3040 864

    WIRE 2112 912 2000 912

    WIRE 2288 912 2288 592

    WIRE 2288 912 2112 912

    WIRE 2816 912 2816 832

    WIRE 2816 912 2672 912

    WIRE 2672 928 2672 912

    WIRE 1536 960 1536 912

    WIRE 2032 960 2032 464

    WIRE 2176 976 2176 960

    WIRE 2560 976 2560 880

    WIRE 2560 976 2176 976

    WIRE 2608 976 2560 976

    WIRE 3040 976 3040 960

    WIRE 1776 992 1776 928

    WIRE 1936 1008 1936 960

    WIRE 1968 1008 1936 1008

    WIRE 2816 1024 2816 912

    WIRE 2976 1024 2816 1024

    WIRE 2816 1056 2816 1024

    WIRE 1936 1088 1936 1008

    WIRE 2176 1088 2176 976

    WIRE 2448 1088 2448 816

    WIRE 2448 1088 2368 1088

    WIRE 2672 1104 2672 1024

    WIRE 2752 1104 2672 1104

    WIRE 2288 1120 2288 912

    WIRE 2448 1120 2448 1088

    WIRE 2032 1136 2032 1056

    WIRE 2032 1136 2000 1136

    WIRE 2112 1136 2032 1136

    WIRE 2560 1136 2560 976

    WIRE 2368 1168 2368 1088

    WIRE 2368 1168 2352 1168

    WIRE 2384 1168 2368 1168

    WIRE 2816 1184 2816 1152

    WIRE 2816 1184 2624 1184

    WIRE 1936 1216 1936 1184

    WIRE 2032 1216 2032 1136

    WIRE 2176 1216 2176 1184

    WIRE 2672 1216 2672 1104

    WIRE 2816 1216 2816 1184

    WIRE 2288 1232 2288 1216

    WIRE 1856 1328 1712 1328

    WIRE 1936 1328 1936 1296

    WIRE 1936 1328 1856 1328

    WIRE 2032 1328 2032 1296

    WIRE 2032 1328 1936 1328

    WIRE 2176 1328 2176 1296

    WIRE 2176 1328 2032 1328

    WIRE 2288 1328 2288 1312

    WIRE 2288 1328 2176 1328

    WIRE 2448 1328 2448 1216

    WIRE 2448 1328 2288 1328

    WIRE 2560 1328 2560 1232

    WIRE 2560 1328 2448 1328

    WIRE 2672 1328 2672 1296

    WIRE 2672 1328 2560 1328

    WIRE 2816 1328 2816 1296

    WIRE 2816 1328 2672 1328

    WIRE 3040 1328 3040 1072

    WIRE 3040 1328 2816 1328

    WIRE 1712 1344 1712 1328

    WIRE 1712 1440 1712 1424

    FLAG 1856 784 3

    FLAG 1856 656 2

    FLAG 1712 1440 0

    FLAG 3136 864 Vout

    FLAG 1616 576 0

    FLAG 1536 960 0

    FLAG 1856 464 7

    FLAG 1856 1328 4

    FLAG 1776 992 0

    FLAG 1456 816 0

    SYMBOL NPN 1872 736 R0

    SYMATTR InstName Q1

    SYMATTR Value NP

    SYMBOL npn 2240 736 M0

    SYMATTR InstName Q2

    SYMATTR Value NP

    SYMBOL PNP 2112 960 M180

    WINDOW 0 60 72 Left 2

    WINDOW 3 64 20 Left 2

    SYMATTR InstName Q5

    SYMATTR Value PN

    SYMBOL pnp 2000 960 R180

    WINDOW 0 60 72 Left 2

    WINDOW 3 64 20 Left 2

    SYMATTR InstName Q6

    SYMATTR Value PN

    SYMBOL npn 2000 1088 M0

    SYMATTR InstName Q7

    SYMATTR Value NP

    SYMBOL npn 2112 1088 R0

    SYMATTR InstName Q8

    SYMATTR Value NP

    SYMBOL npn 1968 960 R0

    SYMATTR InstName Q3

    SYMATTR Value NP

    SYMBOL pnp 2160 592 R180

    WINDOW 0 60 72 Left 2

    WINDOW 3 64 20 Left 2

    SYMATTR InstName Q4

    SYMATTR Value PN

    SYMBOL RES 1920 1200 R0

    SYMATTR InstName R1

    SYMATTR Value 1K

    SYMBOL res 2016 1200 R0

    SYMATTR InstName R2

    SYMATTR Value 50K

    SYMBOL res 2160 1200 R0

    SYMATTR InstName R3

    SYMATTR Value 1K

    SYMBOL pnp 2224 592 M180

    WINDOW 0 60 72 Left 2

    WINDOW 3 64 20 Left 2

    SYMATTR InstName Q9

    SYMATTR Value PN

    SYMBOL pnp 2512 592 R180

    WINDOW 0 60 72 Left 2

    WINDOW 3 64 20 Left 2

    SYMATTR InstName Q10

    SYMATTR Value PN

    SYMBOL pnp 2752 592 M180

    WINDOW 0 60 72 Left 2

    WINDOW 3 64 20 Left 2

    SYMATTR InstName Q11

    SYMATTR Value PN

    SYMBOL npn 2384 1120 R0

    WINDOW 0 56 20 Left 2

    SYMATTR InstName Q12

    SYMATTR Value NP

    SYMBOL npn 2352 1120 M0

    SYMATTR InstName Q13

    SYMATTR Value NP

    SYMBOL res 2272 1216 R0

    SYMATTR InstName R4

    SYMATTR Value 5K

    SYMBOL npn 2752 720 R0

    SYMATTR InstName Q14

    SYMATTR Value NP

    SYMBOL npn 2752 1056 R0

    SYMATTR InstName Q15

    SYMATTR Value NP

    SYMBOL npn 2608 928 R0

    SYMATTR InstName Q16

    SYMATTR Value NP

    SYMBOL res 2656 1200 R0

    SYMATTR InstName R5

    SYMATTR Value 50K

    SYMBOL res 2800 1200 R0

    SYMATTR InstName R6

    SYMATTR Value 50

    SYMBOL npn 2624 1136 M0

    SYMATTR InstName Q17

    SYMATTR Value NP

    SYMBOL cap 2544 816 R0

    SYMATTR InstName C1

    SYMATTR Value 30p

    SYMBOL res 2800 816 R90

    WINDOW 0 0 56 VBottom 2

    WINDOW 3 32 56 VTop 2

    SYMATTR InstName R7

    SYMATTR Value 7.5K

    SYMBOL res 2800 672 R90

    WINDOW 0 0 56 VBottom 2

    WINDOW 3 32 56 VTop 2

    SYMATTR InstName R8

    SYMATTR Value 4.5K

    SYMBOL npn 2976 576 R0

    SYMATTR InstName Q18

    SYMATTR Value NP

    SYMBOL pnp 2976 1072 M180

    WINDOW 0 60 72 Left 2

    WINDOW 3 64 20 Left 2

    SYMATTR InstName Q19

    SYMATTR Value PN

    SYMBOL res 3024 736 R0

    SYMATTR InstName R9

    SYMATTR Value 25

    SYMBOL res 3024 864 R0

    SYMATTR InstName R10

    SYMATTR Value 50

    SYMBOL npn 2992 672 M0

    SYMATTR InstName Q20

    SYMATTR Value NP

    SYMBOL VOLTAGE 1712 1328 R0

    SYMATTR InstName V1

    SYMATTR Value -15

    SYMBOL voltage 1616 464 R0

    SYMATTR InstName V2

    SYMATTR Value 15

    SYMBOL res 2512 368 R90

    WINDOW 0 0 56 VBottom 2

    WINDOW 3 32 56 VTop 2

    SYMATTR InstName R11

    SYMATTR Value 100K

    SYMBOL res 1712 640 R90

    WINDOW 0 0 56 VBottom 2

    WINDOW 3 32 56 VTop 2

    SYMATTR InstName R12

    SYMATTR Value 100K

    SYMBOL voltage 1536 816 R0

    SYMATTR InstName DACout

    SYMATTR Value 4.0631

    SYMBOL res 2432 720 R0

    SYMATTR InstName R13

    SYMATTR Value 39K

    SYMBOL res 1728 768 R90

    WINDOW 0 0 56 VBottom 2

    WINDOW 3 32 56 VTop 2

    SYMATTR InstName R14

    SYMATTR Value 100K

    SYMBOL res 1760 832 R0

    SYMATTR InstName R15

    SYMATTR Value 100K

    SYMBOL voltage 1456 656 R0

    WINDOW 0 46 47 Left 2

    WINDOW 3 46 76 Left 2

    SYMATTR InstName Voffset

    SYMATTR Value 14.2m

    TEXT 1768 768 Left 2 ;IN+

    TEXT 1776 640 Left 2 ;IN-

    TEXT 3168 848 Left 2 ;OUT

    TEXT 2840 1392 Left 2 ;.step param V1 0 4.096 0.5

    TEXT 2344 1432 Top 1 ;This example schematic is supplied for informational/educational purposes only.

    TEXT 1784 1312 Left 2 ;V-

    TEXT 1784 416 Left 2 ;V+

    TEXT 1896 1360 Left 2 !.model NP NPN(BF=125 Cje=.5p Cjc=.5p Rb=500)\n.model PN LPNP(BF=25 Cje=.3p Cjc=1.5p Rb=250)

    TEXT 2840 1352 Left 2 !.tran 40u startup

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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