Author Topic: Voltage Divider  (Read 2961 times)

0 Members and 1 Guest are viewing this topic.

Offline hotpointerTopic starter

  • Newbie
  • Posts: 4
Voltage Divider
« on: February 11, 2015, 06:37:48 pm »
Hi All.. and thanks in advance

I have written a programme for the Arduino thats uses a 10k resistor and a 10k ntc voltage divider.

on the breadboard using the arduino, a lcd screen shows the temp . this works fine

on a purpose made Pcb using a atemega 328 etc  the temp on the lcdscreen fluctuates  and is unusable

i dont really know what i am doing but i have put a 10Uf capacitor across the 10k resistor and this stops the Flucation.

my questions our

is this the correct thing to do ?
is there a better way if not?
why did it do this ?
and why didn't it do it when using the arduino and breadboard

thanks again
rgds John


 

Offline IanB

  • Super Contributor
  • ***
  • Posts: 11891
  • Country: us
Re: Voltage Divider
« Reply #1 on: February 11, 2015, 07:04:25 pm »
I think I would have put the capacitor across the NTC, but no matter.

I guess your fluctuation is from external noise that is getting into the MCU through the A/D converter. Adding the capacitor bypasses or filters the noise out of the way. Since temperature changes slowly a low pass filter is needed on the temperature sensor to block high frequency noise. The capacitor is doing this.

There are two ways to reduce unwanted noise in a system. One is to stop the noise getting in to begin with. The second is to filter out the noise that makes it through.

To stop the noise getting in you need to know and identify what the possible sources are and use good design to eliminate them.

To filter the noise you can use various filter arrangements, but an RC filter is the simplest.
 

Offline hotpointerTopic starter

  • Newbie
  • Posts: 4
Re: Voltage Divider
« Reply #2 on: February 11, 2015, 07:09:12 pm »
thank you
 

Offline Vgkid

  • Super Contributor
  • ***
  • Posts: 2710
  • Country: us
Re: Voltage Divider
« Reply #3 on: February 12, 2015, 12:59:04 am »
Why an ntc used in a voltage divider?
If you own any North Hills Electronics gear, message me. L&N Fan
 

Offline Nerull

  • Frequent Contributor
  • **
  • Posts: 694
Re: Voltage Divider
« Reply #4 on: February 12, 2015, 02:58:49 am »
A voltage divider is the standard way to use a thermistor. It outputs a temperature correlated voltage which can easily be read with an ADC.

 

Offline Vgkid

  • Super Contributor
  • ***
  • Posts: 2710
  • Country: us
Re: Voltage Divider
« Reply #5 on: February 12, 2015, 03:26:23 am »
That is what i was thinking you were hoing to use it for. A rather innaccurate rtd, unless calibrated.
If you own any North Hills Electronics gear, message me. L&N Fan
 

Offline Nerull

  • Frequent Contributor
  • **
  • Posts: 694
Re: Voltage Divider
« Reply #6 on: February 12, 2015, 03:39:22 am »
Thermistors have a much smaller temperature range but can be more accurate than class B RTDs when used properly. Also a hell of a lot cheaper and simpler to use.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf