Author Topic: LM35 "PIC" of the bunch  (Read 1003 times)

0 Members and 1 Guest are viewing this topic.

Offline PerranOakTopic starter

  • Frequent Contributor
  • **
  • Posts: 548
  • Country: gb
LM35 "PIC" of the bunch
« on: May 05, 2018, 01:20:48 pm »
I am having a go at designing a temperature logger using and LM35 and a PIC ... 16F probably.
I have to get the analogue part right first or the digital part will never work; I realise that.
So, the LM35 goes up to 0.35V at 35degC so I amplified it with an op amp so that I would get a better FSD and so more significant figures. I used a very simple non-inverting circuit.
Problem is that the gain on the op amp seems to vary wildly with the input from the LM35.
I set it at 25degC and then cooled it to 20degC and the op amp output suggested a temp that was a whole degree different.
This can only mean that the gain changed!
Is this normal?
You can release yourself but the only way to go is down!
RJD
 

Online David Hess

  • Super Contributor
  • ***
  • Posts: 16615
  • Country: us
  • DavidH
Re: LM35 "PIC" of the bunch
« Reply #1 on: May 06, 2018, 08:32:56 pm »
Is the supply voltage to the LM35 +4 volts or higher?  I am not sure what the LM35 does with a supply voltage of +3.0 or +3.5 volts.

You might need an RC filter at the non-inverting input to the operational amplifier.  A feedback capacitor between the output and inverting input would not hurt either.
 

Offline PerranOakTopic starter

  • Frequent Contributor
  • **
  • Posts: 548
  • Country: gb
Re: LM35 "PIC" of the bunch
« Reply #2 on: May 08, 2018, 07:44:10 pm »
Cheers David.

Yes, the supply is at 4.9V and the LM35 measures accurately. It's only the output from the op amp that varies.

I'll  try your suggestions, thank you.

PS
Ah. I've just noted what the problem is. I had tried to offset the LM35 because the output goes negative below 0degC and this is no good for the uC. However, I did this by placing a resistor between ground (i.e. battery negative) and the ground pin of the LM35. It did offset the output but interferes with the op amp gain!

PPS
Durr. I've just realised why. I am amplifying the resistor offset too! Sorry for sharing the thought process!
« Last Edit: May 08, 2018, 08:20:35 pm by PerranOak »
You can release yourself but the only way to go is down!
RJD
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf