Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 14th February 2008, 12:40 PM   (permalink)
Default LM358 Output saturation at 3.707V.

Hi,

I am working on a temperature controller based on LM35 (Temperature sensor) and interfaced to PIC microcontroller ADC, with 5V as reference for ADC.

To increase the resolution of my signal from LM35, I have added an amplifier -- LM358, with a gain of 11 and supply of +5V and 0V.

My problem is that the output of LM358 (op-amp) saturates at 3.707V. I know that LM358 is not a rail-to-rail Op-amp, but I never expected the output to saturate at 3.707V (when supply is +5V and 0V). I decided to reduce the gain of amplifier so that the output never reaches 3.707V for my application need.

My query --

Where do I get this figure 0f 3.707V output saturation in the data sheet of LM358 (that will help me to figure out such error during design of any other project)?
debrajdeb is offline  
Old 14th February 2008, 01:02 PM   (permalink)
Default

I suggest you consult my PIC tutorials, where you can see how I designed around opamp limitations, and improved performance at the same time.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 14th February 2008, 01:12 PM   (permalink)
Default

There is a parameter called "Output Voltage Swing" It has two items in the LM358 datatsheet. Voh is the output high voltage which is always lower than the supply voltage and Vol which is a couple of tens of millivolts.

Note also the "Common Mode Input Range" It is usually specified as V+ minus 1.5 to 2 Volts. Inputs at the rail caus problems also.
__________________
We never have time to do it right; but we always have time to do it over.
Papabravo is offline  
Old 14th February 2008, 10:03 PM   (permalink)
Default

Use a seperate 7805 with two diodes in the GND leg which will bump up the supply to the opamp by another 1.4 (ish) volts. Feeding the LM358 with 6.4 volts intead of 5v will get you to that magic 5 volts output (well 5.1 volts).
picbits is offline  
Old 15th February 2008, 12:47 AM   (permalink)
Default

Here's the relevant spec.
Attached Images
File Type: png LM358 elec char.PNG (74.6 KB, 16 views)
__________________
Ron

Roff is offline  
Old 15th February 2008, 04:10 AM   (permalink)
Default

The graph in the datasheet for the LM358 shows that its output gets 1.2V from the positive supply when it sources no current. Its loss is worse when it sources current.
Attached Images
File Type: png LM358.PNG (12.5 KB, 8 views)
__________________
Uncle $crooge
audioguru is offline  
Old 15th February 2008, 04:23 AM   (permalink)
Default

Just get a R-R op amp from TI. TLV2462 is a good part.
speakerguy79 is online now  
Old 15th February 2008, 06:14 PM   (permalink)
Default

Just power the op-amp from a higher voltage supply.

The chances are, you're running the regulator from a >9V so it won't be a problem.
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
And http://www.silicontronics.com, same screen name as here.
Hero999 is offline  
Old 15th February 2008, 06:57 PM   (permalink)
Default

Quote:
Originally Posted by Hero999
Just power the op-amp from a higher voltage supply.

The chances are, you're running the regulator from a >9V so it won't be a problem.
Hence why I suggested running from a seperate 7805 with a couple of diodes in the gnd leg.

This would bump up the 5v output to approx 6.4 volts but more importantly should give the opamp a swing from around 300mv (assuming he doesn't have a negative power supply feeding it) to around 5.1 volts which is within the spec of the PIC input.

I've done a fair bit of research on the LM358 as I have around 4000 of them sitting on reels in the workshop
picbits is offline  
Old 15th February 2008, 07:13 PM   (permalink)
Default

The LM358 can nearly go down to 0V and doesn't require a regulated power supply so another regulator would be pointless.
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
And http://www.silicontronics.com, same screen name as here.
Hero999 is offline  
Old 15th February 2008, 07:24 PM   (permalink)
Default

I was thinking more of limiting the maximum output to a 5.1 volts max.

That way you won't damage the microcontroller if the opamp was to output its maximum.

In simulations the LM358 was notoriously unreliable at lower voltage inputs unless used with a negative supply.

I found a workaround by using a 7805 with three diodes in the ground pin and a diode on the output pin before the feedback resistor. This would give me a reasonably reliable 0-5v swing.
picbits is offline  
Old 15th February 2008, 09:04 PM   (permalink)
Default

That's a fair point but I thought microcontrollers had diodes to protect them from that sort of thing.
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
And http://www.silicontronics.com, same screen name as here.
Hero999 is offline  
Old 15th February 2008, 09:49 PM   (permalink)
Default

The output of an opamp with its supply voltage too high might have enough current to destroy the input proctection diode of a PIC.
__________________
Uncle $crooge
audioguru is offline  
Old 15th February 2008, 10:35 PM   (permalink)
Default

Not if you use a series resistor to limit it to a safe level.
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
And http://www.silicontronics.com, same screen name as here.
Hero999 is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Blinking Output Circuit bee-rad Electronic Projects Design/Ideas/Reviews 9 16th November 2007 03:21 PM
Output = Input - Problems adamthole Micro Controllers 20 24th April 2007 05:09 AM
555 timer output help for a newbee... WIZARDSV650S Electronic Projects Design/Ideas/Reviews 6 6th April 2007 05:04 AM
Using PicBasic with Output compare for sounds mduong77 Micro Controllers 7 29th March 2007 03:29 AM
How to design such output stage eeglp Electronic Projects Design/Ideas/Reviews 4 8th April 2003 07:01 PM



All times are GMT. The time now is 07:08 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker