Electronics Repair (sci.electronics.repair) Discussion of repairing electronic equipment. Topics include requests for assistance, where to obtain servicing information and parts, techniques for diagnosis and repair, and annecdotes about success, failures and problems.

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
 
Posts: n/a
Default Understanding pull up resistors

I am working through an electronics course and hoping that someone can
explain this to me. Ok here goes

VCC
|
|
\
/ R1
\
/
|
|
|-------------------------------------- Device Pin
| |
| |
/ V
/ _ LED1
| SW1 |
| \
| / R2
| \
| /
| |
| |
GND GND

(hope this drawing comes out okay)
For this assume R1 and R2 = 470 Ohms and LED1 is just a plain old LED
with a voltage drop of 2V. Vcc=+5V

Okay, here is my dilemma. With S1 open and the LED lit, I get a
voltage of about 3.5 V at the device pin. With the Switch closed, my
device pin is at 0. This is what this circuit is supposed to do but I
don't understand it. I dont understand the function of R1 at all.
Why when I measure the voltage at the device pin doesn't the voltage
drop across R1 count when the switch is open (or closed for that
matter). What brings the voltage to zero at my device pin when the
switch is closed. What path is it taking (or not taking since it is
at zero).

This is the explanation from my book. Since I know I am applying 5V
to the two resistors and the LED, I can use Kirchhoff's law to divvy
up the voltages across these three devices..

Vcc=Vr1+Vr2+VLED

I know Vcc = 5.0V and VLED=2.0V

Because R1 and R2 are the same value, the same voltage drop will be
across each one of them:
2Vr=Vr1+Vr2
2Vr=3V
Vr(x) = 1.5V

So in this circuit, the voltage drop across R1 and R2 is 1.5V.

(Okay this is where the book looses me).

It says when the switch is open, the voltage applied to the device pin
is the voltage across R2 and LED1. Since we know these, we can
express the switch open voltage as:
Vopen=Vled1+Vr2
=2.0V+1.5V
=3.5V

and it works just like that!!! which is dandy.

WHY OH WHY doesn't R1 come into the picture with the switch open. It
is hooked to Vcc. Is the voltage flowing from the device pin through
LED1 and R2 to ground..why doesn't it flow from Vcc to ground anymore.
This is where the whole concept of a "Pull up resistor" on a input pin
just totally looses me. I know it works, I just don't get how it
works. Can someone here express it in different words or something.

It takes the path of least resistance because the switch is like a
zero ohm resistor...I just dont understand why it goes to zero at my
device pin. There is something very basic here that I am just not
getting. Sorry for the dumb question but this has been bothering me
for quite some time now. My poor confused brain.

Thanks for any help!



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
removing pull dowel pins KD Metalworking 3 March 13th 04 03:47 AM
how to rewire bathroom pull switch to regular light switch Nick UK diy 20 January 20th 04 07:57 PM
Precision Resistors HELP! Dennis Electronics Repair 0 September 25th 03 05:14 PM


All times are GMT +1. The time now is 12:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 DIYbanter.
The comments are property of their posters.
 

About Us

"It's about DIY & home improvement"