Re: Q: Transistor as a switch with pull down ?
- From: Eeyore <rabbitsfriendsandrelations@xxxxxxxxxxx>
- Date: Wed, 27 Jun 2007 22:43:34 GMT
John Fields wrote:
Benjamin Sølberg wrote:
Eeyore wrote:
Benjamin Sølberg wrote:
Eeyore wrote:
Benjamin Sølberg wrote:
Hi all.
I am interfacing an PIC microchip to a relay by using a normal NPN
transistor. The relay is connected between +12v and collector. A
protection diode in reverse has also added. Emitter is grounded. My
concerne is that by only adding a 10k resistor between base and the
digital output pin (5v) the base will be floating if the PIC failes to
start as all IO pins are default input. Would it be correct to add a
pulldown resistor at 10k and replace the IO pin to base with say a 1k
resistor.
For what purpose ? The transistor's leakage current won't be enough to turn the
relay on.
You might be right. I just wanna make sure that the transistor doesn't
turn on because it is floating
as the microcontroller is defaulted to an input pin upon startup.
So to be short: Even if the micro controller does nothing else than an
infinit loop after startup and the IO pis is
defined as an input there are no chance of the base of the transistor
can go beyond 0,7v and thereby setting
the collector emitter in an on state, even so that no other resistor
is on the base except the one from base to
the IO pin (defined as an input) ?
I hope you don't mind my exact question. I am just trying to make sure
i understod everything.
If the uC defaults to an input on start up is there an internal pull-up ?
Maybe it's wise to have a resistor from base to ground anyway. Say 4k7.
Graham- Skjul tekst i anførselstegn -
- Vis tekst i anførselstegn -
Exactly my point, but looking at schematics around the net i usually
only see a resistor between base and IO pin.
And i was surprised so i just wanted to know if this is normal/good
pratice.
---
Good practice dictates that you know what your circuit is doing all
the time, and even though it's tempting to think that a floating
base won't affect anything downstream, it might.
Consequently, it's a good idea to pull the base down (or up,
depending on what your circuit's supposed to do) in order to take
the uncertainty out of it.
Be careful with attaching too much importance to what the donkey
states.
Couldn't resist sniping eh ?
Note that he's back-pedaling in order to try to fix his earlier post
and hasn't stated whether the pull-down should be on the µC side or
on the transistor side of the series-connected base resistor.
Exactly what part of " base to ground " is unclear ?
Graham
.
- Follow-Ups:
- Re: Q: Transistor as a switch with pull down ?
- From: John Fields
- Re: Q: Transistor as a switch with pull down ?
- References:
- Q: Transistor as a switch with pull down ?
- From: Benjamin Sølberg
- Re: Q: Transistor as a switch with pull down ?
- From: Eeyore
- Re: Q: Transistor as a switch with pull down ?
- From: Benjamin Sølberg
- Re: Q: Transistor as a switch with pull down ?
- From: Eeyore
- Re: Q: Transistor as a switch with pull down ?
- From: Benjamin Sølberg
- Re: Q: Transistor as a switch with pull down ?
- From: John Fields
- Q: Transistor as a switch with pull down ?
- Prev by Date: Re: Q: Transistor as a switch with pull down ?
- Next by Date: Re: Could someone please explain how this works?
- Previous by thread: Re: Q: Transistor as a switch with pull down ?
- Next by thread: Re: Q: Transistor as a switch with pull down ?
- Index(es):
Relevant Pages
|