Why voltage divider for resistive sensors?

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Why voltage divider for resistive sensors?

Postby relaxing » Sun Dec 02, 2012 1:39 pm

Excuse my basic theory question, but...
I've read the Wikipedia article on voltage dividers and I'm pretty sure I understand what they do. But why do we build them into sensor circuits?

I've built Arduino circuits like...
5V------thermistor------Analog In
And they work.
So why is it better to do
5V------thermistor------Analog In------resistor-----GND
:?:
relaxing
 
Posts: 35
Joined: Thu Mar 24, 2005 10:22 am


Re: Why voltage divider for resistive sensors?

Postby relaxing » Sun Dec 02, 2012 3:16 pm

So the answer is linearization?
Is it fair to say if I'm unconcerned with linear response, I can still hook up my sensor to a GPIO without also connecting it to ground?
relaxing
 
Posts: 35
Joined: Thu Mar 24, 2005 10:22 am

Re: Why voltage divider for resistive sensors?

Postby adafruit_support_bill » Sun Dec 02, 2012 5:08 pm

If you have nothing connected to the input of an analog pin, it 'floats' and you get nothing but noise. If you connect a fixed pullup or pulldown resistor of sufficient strength (strong = low value) you get 5v (pullup) or 0v (pulldown). If you connect a variable resistor (e.g. a thermistor) between the analog pin 5v, you will get 5v at low values (strong pullup) and 'float' at high values (weak pullup). So the resistor is about more than just linearization.
User avatar
adafruit_support_bill
 
Posts: 15995
Joined: Sat Feb 07, 2009 9:11 am


Return to General Project help

Who is online

Users browsing this forum: No registered users and 11 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]