Author Topic: simple Op amp circuit not behaving.  (Read 5053 times)

0 Members and 1 Guest are viewing this topic.

Offline JWoodrellTopic starter

  • Contributor
  • Posts: 35
  • Country: us
    • Woodrell Machine and Control
simple Op amp circuit not behaving.
« on: December 25, 2014, 01:22:54 am »
ok so i made a simple op amp circuit to scale battery voltage down so my PLC could read it.
My input voltage (battery pack) initial target range is 20V - 30V, and my output voltage is 0-10V for the analog input card. to keep it simple

once i get it where i like it i will probably change the scale and offset to have 23.5V-26V as 0-10V output

so in my mind that should be a perfect use for a differential op amp setup.

It mostly works, but the value is slightly off for each of the 4 op amps on the chip  by a few tenths of a volt.
the opamp is a LM148 quad chip.

my question is should I be worried that they are different from each other even on the same chip or is there something I can do with the feedback loop to help eliminate that variance from chip to chip.

 

Offline Andy Watson

  • Super Contributor
  • ***
  • Posts: 2085
Re: simple Op amp circuit not behaving.
« Reply #1 on: December 25, 2014, 01:36:35 am »
Only a +10V supply to the op-amp?

It looks like you are taking the inputs to the op-amp above the voltage of the positive supply to the op-amp  - they won't work in this configuration. For example - consider the voltage at the positive op-amp input - I make it to be 15V.

Edit: Also, expecting to get 10.0V out when the supply voltage is only 10V is a little too optimistic - even for a rail-to-rail op-amp (which I don't believe the LM148 is).
« Last Edit: December 25, 2014, 01:42:11 am by Andy Watson »
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: simple Op amp circuit not behaving.
« Reply #2 on: December 25, 2014, 01:41:26 am »
The input can exceed the rail supply voltage.

Unless this is one of those beyond-the-rail opamps, it is not going to work.
================================
https://dannyelectronics.wordpress.com/
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: simple Op amp circuit not behaving.
« Reply #3 on: December 25, 2014, 01:52:31 am »
The input can exceed the rail supply voltage.

Unless this is one of those beyond-the-rail opamps, it is not going to work.

could you name those beyond-the-rails opamps ? the other day i was searching for one with a common mode voltage allowed to go to the top rail and max supply >=30V(+-15) , and found nothing except LM358... but that one got no trimmable offset.. so i put the project aside :D
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: simple Op amp circuit not behaving.
« Reply #4 on: December 25, 2014, 02:22:12 am »
Off the top of my head, there's LT1494/5/6. No VOS trim on that one either, but fairly low offset to begin with.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: simple Op amp circuit not behaving.
« Reply #5 on: December 25, 2014, 02:58:40 am »
Off the top of my head, there's LT1494/5/6. No VOS trim on that one either, but fairly low offset to begin with.

thanks ;) certainly does the common mode part  :-+... but seems to be the slowest OPamp ever ;) 1V/ms sleeve rate (volt per millisecond, not microsecond!!!) , gain bandwidth product 2.7KHz ! it's so slow, you could safely do other things till it swings from rail to rail :D
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: simple Op amp circuit not behaving.
« Reply #6 on: December 25, 2014, 03:04:26 am »
1V/ms sleeve rate (volt per millisecond, not microsecond!!!) , gain bandwidth product 2.7KHz ! it's so slow, you could safely do other things till it swings from rail to rail :D

I like to use it as a tea timer.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline IconicPCB

  • Super Contributor
  • ***
  • Posts: 1534
  • Country: au
Re: simple Op amp circuit not behaving.
« Reply #7 on: December 25, 2014, 03:14:00 am »
Single rail supply both inputs posiive... use a Norton opamp.

By the by... if only measuring battery voltage, bandwidth is not an issue. Battery voltage is not likely to oscilate at some megahertz.
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: simple Op amp circuit not behaving.
« Reply #8 on: December 25, 2014, 04:55:38 am »
Single rail supply both inputs posiive... use a Norton opamp.

By the by... if only measuring battery voltage, bandwidth is not an issue. Battery voltage is not likely to oscilate at some megahertz.

thanks for reminding me of the Norton amp. existence :) you're right  :-+ those have no issues with common mode input at the top rail. apparently it's time to dig up those LM3900 chips i sourced some time ago (sourced them just because i found them interesting)

that common mode at top rail and slow OPamp is not related to OP (sorry for the little hijack :D - but it's still the same topic ;) )... btw.. for battery voltage 1V/ms sleeve is ok, but for current sensing it's slow.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • 0999
Re: simple Op amp circuit not behaving.
« Reply #9 on: December 25, 2014, 03:05:56 pm »
Off the top of my head, there's LT1494/5/6. No VOS trim on that one either, but fairly low offset to begin with.

thanks ;) certainly does the common mode part  :-+... but seems to be the slowest OPamp ever ;) 1V/ms sleeve rate (volt per millisecond, not microsecond!!!) , gain bandwidth product 2.7KHz ! it's so slow, you could safely do other things till it swings from rail to rail :D
The open loop gain is also low.

I suppose to achieve such a wide common mode range, compromises need to be made.
 

Offline JWoodrellTopic starter

  • Contributor
  • Posts: 35
  • Country: us
    • Woodrell Machine and Control
Re: simple Op amp circuit not behaving.
« Reply #10 on: December 25, 2014, 03:18:14 pm »
thank you for your input guys.  its a project I'm working on with my father, he is across the country so i have to wait until he tells me how the changes help (im having him take the supply+ up to the 20V, which should give it enough room to do its Op amp stuff. 

the speed is not important it will probably take several hours for the battery voltage to be drawn down.  its for an automated robot cart thing that needs to know to go home and charge when its batteries get low.

I'll just have an external clipping circuit to keep the final voltage below 10V.  which should never trigger, but just in case so as to not blow the analog input card on the PLC
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: simple Op amp circuit not behaving.
« Reply #11 on: December 25, 2014, 03:54:46 pm »
You may want to think what exactly you are trying to do with this circuit.

In case you haven't noticed, it can oscillate.
================================
https://dannyelectronics.wordpress.com/
 

Offline Rupunzell

  • Frequent Contributor
  • **
  • Posts: 349
Re: simple Op amp circuit not behaving.
« Reply #12 on: December 27, 2014, 06:43:49 pm »
The output will be stuck to the V+ rail.

Input voltages are too high for the divider ratios and the Op-amp is not powered-biased properly.

Use a +/- power supply bypass and ground proper, then reduce the input voltages to 0.2 & 0.3 volts. Begin here.
 

Offline Leadfootin

  • Contributor
  • Posts: 30
Re: simple Op amp circuit not behaving.
« Reply #13 on: December 27, 2014, 11:40:03 pm »
Try 100K to 1M input with 10k feedback resistors. Be careful to match the input pairs and feedback pairs to get accuracy.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf