Guest
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!
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!