Author Topic: LM35 series resistor  (Read 1540 times)

0 Members and 1 Guest are viewing this topic.

Offline PerranOakTopic starter

  • Frequent Contributor
  • **
  • Posts: 548
  • Country: gb
LM35 series resistor
« on: July 29, 2018, 02:39:25 pm »
I have seen circuits with a 1k resistor between the output of an LM35 and the pin (for ADC) of a microcontroller.

I get that with the input impedance of the uC the current is low and so the resistor will not materially affect the reading but for what purpose is the resistor? I mean, what good does it do?

Cheers.
You can release yourself but the only way to go is down!
RJD
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16607
  • Country: us
  • DavidH
Re: LM35 series resistor
« Reply #1 on: July 29, 2018, 03:04:27 pm »
Sometimes a series resistor is used in combination with a capacitor to filter out noise and provide a low AC impedance to the ADC.  Just a series resistor might be used to limit fault current but that seems unlikely unless the LM35 and ADC are separately powered.  Or if the series resistor is located at the LM35, it might be to prevent instability when driving a long line.

 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: us
Re: LM35 series resistor
« Reply #2 on: July 29, 2018, 06:15:56 pm »
A real schematic might help.  Links to datasheets...
FWIW, Figure 12 of the LM35 datasheet shows a 2k series resistor for use when driving a capacitive load > 50 pf.  Most ADCs are capacitive due to the sample and hold circuit but I don't know that they have that much capacitance.
The LPC1768 ADC has an input capacitance of 15 pf.

 

Offline PerranOakTopic starter

  • Frequent Contributor
  • **
  • Posts: 548
  • Country: gb
Re: LM35 series resistor
« Reply #3 on: August 02, 2018, 01:23:46 pm »
Thanks both.

Sorry, I hadn't a particular circuit in mind it just that my circuit doesn't have a series resistor. I put one in and nothing seemed to change so I wondered what was up.

I though that it would confuse things as the voltage drop across the resistor surely reduces the voltage "seen" by the ADC but it didn't seem to!
You can release yourself but the only way to go is down!
RJD
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: us
Re: LM35 series resistor
« Reply #4 on: August 02, 2018, 05:23:10 pm »
I though that it would confuse things as the voltage drop across the resistor surely reduces the voltage "seen" by the ADC but it didn't seem to!

Sure, it reduces the voltage, WHEN the current is flowing.  The idea behind a sample-and-hold ADC is to charge a capacitor through the resistor during the sample period and then analyze it during the hold period.  The sample circuit is designed to limit current flow such that a given driving impedance (check the datasheet) won't affect the reading.  Some ADCs want < 10k Ohms driving impedance, others want somewhat less.  It is important to check the datasheet.
 
The following users thanked this post: PerranOak

Offline atmfjstc

  • Regular Contributor
  • *
  • Posts: 121
  • Country: ro
Re: LM35 series resistor
« Reply #5 on: August 02, 2018, 07:10:31 pm »
It could be there for safety. Some microcontrollers such as ATMEGAs allow you to switch the direction of pins such that an ADC input pin becomes a digital output. While all pins start off as inputs by default, it is possible to accidentally switch them to outputs if a crash or a bug occurs. Nothing good will happen if the LM35 and the ATMEGA try to drive the same wire to different voltage levels without any resistor there to limit the current.
 
The following users thanked this post: PerranOak

Offline PerranOakTopic starter

  • Frequent Contributor
  • **
  • Posts: 548
  • Country: gb
Re: LM35 series resistor
« Reply #6 on: August 03, 2018, 10:04:18 am »
Cheers, thank you both.
You can release yourself but the only way to go is down!
RJD
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf