LM358 op-amp

A

Allen Bong

Guest
I have constructed a circuit as below to convert the input of 12 to
24V as 0 to 12V and show the voltage on a DC volt-meter. The
schematics is shown below:


VCC +24V
+
|
.-.
| | +24V
2k2| | VCC
'-' +
| |
| 10K |\|
| +12V-|___|-+--|-\LM358
| ___ | | >---+-----+
IN +-|___|---+-----|+/ | |
| 10K | | |/| | |
| | | === | |
.-. | | GND | |
| | | | ___ | |
2k2| | .-. +--|___|--+ /+\
'-' | | 10K ( )
| 10K| | VOLT \-/
| '-' |
=== | |
GND | ===
=== GND
GND

(created by AACircuit v1.28.6 beta 04/19/05 www.tech-chat.de)


I have the +12V reference taken from a TL431.

When the input voltage at "IN" is +12V I was not able to get a 0V on
the voltmeter. Instead I am getting 0.58V at the output. Does this
has something to do with the CMRR of the chip? How would I solve
this problem? Would changing the op-amp to LM748 and connecting a
pot between the balance inputs of the LM748 help to reduce the
voltage to O?

Thanks In Advance!

Allen
 
"Allen Bong" <allenbsf6502@gmail.com> wrote in message
news:156490eb-d94f-49fa-a6ed-aca020d20b0f@a5g2000prg.googlegroups.com...
I have constructed a circuit as below to convert the input of 12 to
24V as 0 to 12V and show the voltage on a DC volt-meter. The
schematics is shown below:


VCC +24V
+
|
.-.
| | +24V
2k2| | VCC
'-' +
| |
| 10K |\|
| +12V-|___|-+--|-\LM358
| ___ | | >---+-----+
IN +-|___|---+-----|+/ | |
| 10K | | |/| | |
| | | === | |
.-. | | GND | |
| | | | ___ | |
2k2| | .-. +--|___|--+ /+\
'-' | | 10K ( )
| 10K| | VOLT \-/
| '-' |
=== | |
GND | ===
=== GND
GND

(created by AACircuit v1.28.6 beta 04/19/05 www.tech-chat.de)


I have the +12V reference taken from a TL431.

When the input voltage at "IN" is +12V I was not able to get a 0V on
the voltmeter. Instead I am getting 0.58V at the output. Does this
has something to do with the CMRR of the chip? How would I solve
this problem? Would changing the op-amp to LM748 and connecting a
pot between the balance inputs of the LM748 help to reduce the
voltage to O?

Thanks In Advance!

Allen

The LM358 is a single supply opamp, but is is not going to pull all the way
down to 0V without a load. The low side output driver is a PNP, so it should
be able to get within the saturation voltage (i.e., Vce(sat)) of the ground
rail. However, if you put a load to ground on it, it'll be able to pull all
the way to ground, I believe.

Regards,
Bob Monsen
 
On Tue, 15 Apr 2008 03:40:51 -0700 (PDT), Allen Bong
<allenbsf6502@gmail.com> wrote:

I have constructed a circuit as below to convert the input of 12 to
24V as 0 to 12V and show the voltage on a DC volt-meter. The
schematics is shown below:


VCC +24V
+
|
.-.
| | +24V
2k2| | VCC
'-' +
| |
| 10K |\|
| +12V-|___|-+--|-\LM358
| ___ | | >---+-----+
IN +-|___|---+-----|+/ | |
| 10K | | |/| | |
| | | === | |
.-. | | GND | |
| | | | ___ | |
2k2| | .-. +--|___|--+ /+\
'-' | | 10K ( )
| 10K| | VOLT \-/
| '-' |
=== | |
GND | ===
=== GND
GND

(created by AACircuit v1.28.6 beta 04/19/05 www.tech-chat.de)


I have the +12V reference taken from a TL431.

When the input voltage at "IN" is +12V I was not able to get a 0V on
the voltmeter. Instead I am getting 0.58V at the output. Does this
has something to do with the CMRR of the chip? How would I solve
this problem? Would changing the op-amp to LM748 and connecting a
pot between the balance inputs of the LM748 help to reduce the
voltage to O?

Thanks In Advance!

Allen
This opamp needs a negative power supply here, if you expect it to
swing all the way to ground.

John
 
Allen Bong wrote:
I have constructed a circuit as below to convert the input of 12 to
24V as 0 to 12V and show the voltage on a DC volt-meter. The
schematics is shown below:


VCC +24V
+
|
.-.
| | +24V
2k2| | VCC
'-' +
| |
| 10K |\|
| +12V-|___|-+--|-\LM358
| ___ | | >---+-----+
IN +-|___|---+-----|+/ | |
| 10K | | |/| | |
| | | === | |
.-. | | GND | |
| | | | ___ | |
2k2| | .-. +--|___|--+ /+\
'-' | | 10K ( )
| 10K| | VOLT \-/
| '-' |
=== | |
GND | ===
=== GND
GND

(created by AACircuit v1.28.6 beta 04/19/05 www.tech-chat.de)


I have the +12V reference taken from a TL431.

When the input voltage at "IN" is +12V I was not able to get a 0V on
the voltmeter. Instead I am getting 0.58V at the output. Does this
has something to do with the CMRR of the chip? How would I solve
this problem? Would changing the op-amp to LM748 and connecting a
pot between the balance inputs of the LM748 help to reduce the
voltage to O?

Thanks In Advance!

Allen
You need a little (-) offset at the common rail of the chip..

use a (-) supply rail to get it or create a little (-) rail
voltage using a 555 or something..

--
http://webpages.charter.net/jamie_5"
 
On Apr 16, 5:17 am, Jamie
<jamie_ka1lpa_not_valid_after_ka1l...@charter.net> wrote:
Allen Bong wrote:
I have constructed a circuit as below to convert the input of 12 to
24V as 0 to 12V and show the voltage on a DC volt-meter.  The
schematics is shown below:

    VCC +24V
     +
     |
    .-.
    | |               +24V
 2k2| |               VCC
    '-'                +
     |                 |
     |       10K     |\|
     | +12V-|___|-+--|-\LM358
     |  ___       |  |  >---+-----+
  IN +-|___|---+-----|+/    |     |
     |  10K    |  |  |/|    |     |
     |         |  |   ===   |     |
    .-.        |  |   GND   |     |
    | |        |  |   ___   |     |
 2k2| |       .-. +--|___|--+    /+\
    '-'       | |     10K       (   )
     |     10K| |           VOLT \-/
     |        '-'                 |
    ===        |                  |
    GND        |                 ==> >               ===                GND
              GND

(created by AACircuit v1.28.6 beta 04/19/05www.tech-chat.de)

I have the +12V reference taken from a TL431.

When the input voltage at "IN" is +12V I was not able to get a 0V on
the voltmeter.  Instead I am getting 0.58V at the output.  Does this
has something to do with the CMRR of the chip?  How would I solve
this problem?  Would changing the op-amp to LM748 and connecting a
pot between the balance inputs of the LM748 help to reduce the
voltage to O?

Thanks In Advance!

Allen

You need a little  (-) offset at the common rail of the chip..

   use a (-) supply rail to get it or create a little (-) rail
voltage using a 555 or something..

--http://webpages.charter.net/jamie_5"- Hide quoted text -

- Show quoted text -
Thanks to all who advised me on the problem. I'll try first to get a
little (-) on the negative supply rail. How much is a little -- is 1
volt good enough to offset the 0.58V that I got?

Next I'll google to some schematics on how to set up the 555 to get a
negative voltage.

Thanks too all again!

Allen
 
Allen Bong wrote:
On Apr 16, 5:17 am, Jamie
jamie_ka1lpa_not_valid_after_ka1l...@charter.net> wrote:
Allen Bong wrote:
I have constructed a circuit as below to convert the input of 12 to
24V as 0 to 12V and show the voltage on a DC volt-meter. The
schematics is shown below:
VCC +24V
+
|
.-.
| | +24V
2k2| | VCC
'-' +
| |
| 10K |\|
| +12V-|___|-+--|-\LM358
| ___ | | >---+-----+
IN +-|___|---+-----|+/ | |
| 10K | | |/| | |
| | | === | |
.-. | | GND | |
| | | | ___ | |
2k2| | .-. +--|___|--+ /+\
'-' | | 10K ( )
| 10K| | VOLT \-/
| '-' |
=== | |
GND | ===
=== GND
GND
(created by AACircuit v1.28.6 beta 04/19/05www.tech-chat.de)
I have the +12V reference taken from a TL431.
When the input voltage at "IN" is +12V I was not able to get a 0V on
the voltmeter. Instead I am getting 0.58V at the output. Does this
has something to do with the CMRR of the chip? How would I solve
this problem? Would changing the op-amp to LM748 and connecting a
pot between the balance inputs of the LM748 help to reduce the
voltage to O?
Thanks In Advance!
Allen
You need a little (-) offset at the common rail of the chip..

use a (-) supply rail to get it or create a little (-) rail
voltage using a 555 or something..

--http://webpages.charter.net/jamie_5"- Hide quoted text -

- Show quoted text -

Thanks to all who advised me on the problem. I'll try first to get a
little (-) on the negative supply rail. How much is a little -- is 1
volt good enough to offset the 0.58V that I got?
If so,you might be able to get away with stacking a couple diodes off of
the ground rail- anode to 0V/ground,cathode to the new '-V' rail.
If you connect the supply voltage between -V and +V,your -V rail will be
approx 0.6V (per diode) below the 0V rail and/or '0V' will be ~0.6V
above the -V rail.

If ya get my drift.. kinda hard to explain,need a drawing.

Next I'll google to some schematics on how to set up the 555 to get a
negative voltage.

Thanks too all again!

Allen
 
On Apr 16, 1:44 pm, PhattyMo <phatt...@not.net> wrote:
Allen Bong wrote:
On Apr 16, 5:17 am, Jamie
jamie_ka1lpa_not_valid_after_ka1l...@charter.net> wrote:
Allen Bong wrote:
I have constructed a circuit as below to convert the input of 12 to
24V as 0 to 12V and show the voltage on a DC volt-meter.  The
schematics is shown below:
    VCC +24V
     +
     |
    .-.
    | |               +24V
 2k2| |               VCC
    '-'                +
     |                 |
     |       10K     |\|
     | +12V-|___|-+--|-\LM358
     |  ___       |  |  >---+-----+
  IN +-|___|---+-----|+/    |     |
     |  10K    |  |  |/|    |     |
     |         |  |   ===   |     |
    .-.        |  |   GND   |     |
    | |        |  |   ___   |     |
 2k2| |       .-. +--|___|--+    /+\
    '-'       | |     10K       (   )
     |     10K| |           VOLT \-/
     |        '-'                 |
    ===        |                  |
    GND        |                 ==> >>>               ===                GND
              GND
(created by AACircuit v1.28.6 beta 04/19/05www.tech-chat.de)
I have the +12V reference taken from a TL431.
When the input voltage at "IN" is +12V I was not able to get a 0V on
the voltmeter.  Instead I am getting 0.58V at the output.  Does this
has something to do with the CMRR of the chip?  How would I solve
this problem?  Would changing the op-amp to LM748 and connecting a
pot between the balance inputs of the LM748 help to reduce the
voltage to O?
Thanks In Advance!
Allen
You need a little  (-) offset at the common rail of the chip..

   use a (-) supply rail to get it or create a little (-) rail
voltage using a 555 or something..

--http://webpages.charter.net/jamie_5"- Hide quoted text -

- Show quoted text -

Thanks to all who advised me on the problem.  I'll try first to get a
little (-) on the negative supply rail.  How much is a little -- is 1
volt good enough to offset the 0.58V that I got?

If so,you might be able to get away with stacking a couple diodes off of
the ground rail- anode to 0V/ground,cathode to the new '-V' rail.
If you connect the supply voltage between -V and +V,your -V rail will be
approx 0.6V (per diode) below the 0V rail and/or '0V' will be ~0.6V
above the -V rail.

If ya get my drift.. kinda hard to explain,need a drawing.





Next I'll google to some schematics on how to set up the 555 to get a
negative voltage.

Thanks too all again!

Allen- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -
Do you mean adding a diode or two this way will offset the V- which is
connected to 0V as if it were connected to -1.2V ?


VCC
+
|
|\|
+12V ref -|-\
| >--------+ V2
+12V input -|+/ |
|/| V1 /+\
+---+ ( )
V | \-/
- | |
| /+\ |
V ( ) |
- \-/ |
| | |
+---+-----+
== GND

V1=1.2V

V2=0.58 offset by 1.2V

(created by AACircuit v1.28.6 beta 04/19/05 www.tech-chat.de)
 
"Allen Bong" <allenbsf6502@gmail.com> wrote in message
news:156490eb-d94f-49fa-a6ed-aca020d20b0f@a5g2000prg.googlegroups.com...
I have constructed a circuit as below to convert the input of 12 to
24V as 0 to 12V and show the voltage on a DC volt-meter. The
schematics is shown below:


VCC +24V
+
|
.-.
| | +24V
2k2| | VCC
'-' +
| |
| 10K |\|
| +12V-|___|-+--|-\LM358
| ___ | | >---+-----+
IN +-|___|---+-----|+/ | |
| 10K | | |/| | |
| | | === | |
.-. | | GND | |
| | | | ___ | |
2k2| | .-. +--|___|--+ /+\
'-' | | 10K ( )
| 10K| | VOLT \-/
| '-' |
=== | |
GND | ===
=== GND
GND

(created by AACircuit v1.28.6 beta 04/19/05 www.tech-chat.de)


I have the +12V reference taken from a TL431.

When the input voltage at "IN" is +12V I was not able to get a 0V on
the voltmeter. Instead I am getting 0.58V at the output. Does this
has something to do with the CMRR of the chip? How would I solve
this problem? Would changing the op-amp to LM748 and connecting a
pot between the balance inputs of the LM748 help to reduce the
voltage to O?

Thanks In Advance!

Allen

The LM358 includes a 50uA pull-down on the output, to get you to 0V.
However, you are pulling up on the output (with the reference through the
two 10k resistors) using 600uA. So, increase all the 10k resistors to 1MEG.
That way, your pull-up will only be 6uA, and it'll be able to get all the
way down to 0V. You can also increase the divider (which uses 2.2k
resistors) to using 1MEG resistors.

When you run into this kind of problem, go to the manufacturer, and see if
they have a datasheet for the device. They often include a schematic in the
datasheet, and using it, you can sometimes figure out what's up.

Regards,
Bob Monsen
 
On Apr 17, 12:42 am, "Bob Monsen" <rcmon...@gmail.com> wrote:
"Allen Bong" <allenbsf6...@gmail.com> wrote in message

news:156490eb-d94f-49fa-a6ed-aca020d20b0f@a5g2000prg.googlegroups.com...





I have constructed a circuit as below to convert the input of 12 to
24V as 0 to 12V and show the voltage on a DC volt-meter.  The
schematics is shown below:

   VCC +24V
    +
    |
   .-.
   | |               +24V
2k2| |               VCC
   '-'                +
    |                 |
    |       10K     |\|
    | +12V-|___|-+--|-\LM358
    |  ___       |  |  >---+-----+
 IN +-|___|---+-----|+/    |     |
    |  10K    |  |  |/|    |     |
    |         |  |   ===   |     |
   .-.        |  |   GND   |     |
   | |        |  |   ___   |     |
2k2| |       .-. +--|___|--+    /+\
   '-'       | |     10K       (   )
    |     10K| |           VOLT \-/
    |        '-'                 |
   ===        |                  |
   GND        |                 ==> >              ===                GND
             GND

(created by AACircuit v1.28.6 beta 04/19/05www.tech-chat.de)

I have the +12V reference taken from a TL431.

When the input voltage at "IN" is +12V I was not able to get a 0V on
the voltmeter.  Instead I am getting 0.58V at the output.  Does this
has something to do with the CMRR of the chip?  How would I solve
this problem?  Would changing the op-amp to LM748 and connecting a
pot between the balance inputs of the LM748 help to reduce the
voltage to O?

Thanks In Advance!

Allen

The LM358 includes a 50uA pull-down on the output, to get you to 0V.
However, you are pulling up on the output (with the reference through the
two 10k resistors) using 600uA. So, increase all the 10k resistors to 1MEG..
That way, your pull-up will only be 6uA, and it'll be able to get all the
way down to 0V. You can also increase the divider (which uses 2.2k
resistors) to using 1MEG resistors.

When you run into this kind of problem, go to the manufacturer, and see if
they have a datasheet for the device. They often include a schematic in the
datasheet, and using it, you can sometimes figure out what's up.

Regards,
 Bob Monsen- Hide quoted text -

- Show quoted text -
Hi Bob,

Thanks for your good advice. I actually read through the datasheet and
the application notes, but there are a lot of things in the datasheet
I dont understand. Now reading the datasheet again, I see the 50uA at
the 'Output Current Sink' at Vo = 200mV and V+ = 15V.

I'll try it out tonight and report the result here.

Thank you again for helping!

Allen
 
"Allen Bong" <allenbsf6502@gmail.com> wrote in message
news:cb54d3d6-0e79-468f-bdc9-5b0fc90602ed@f63g2000hsf.googlegroups.com...

How are you powering it? Also, what it is the output going to be doing
(besides making your multimeter register 0)?

If you are trying to shift from the range [12,24] to the range [0,12], then
you might be able to simply reference your output ground up to 12V, and use
the actual input rather than messing around with this level shifter

If the input you are driving is very high resistance, you can just use a
voltage divider to generate the 'virtual' ground.

Regards,
Bob Monsen
 

Welcome to EDABoard.com

Sponsor

Back
Top