Author Topic: Pull down resistors  (Read 1688 times)

0 Members and 1 Guest are viewing this topic.

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4247
  • Country: gb
Pull down resistors
« on: November 08, 2017, 11:45:09 am »
I was playing around with trying to make AND and OR gates with transistors last night and was getting LED flickering and random bi-directional voltage on the transistors.  In an epiphany moment I realised when my switches were off the base pin was floating in the breeze picking up all manor of noise.  I added a 1M resistor to ground and the circuit was silent.

It just so happens I was watching this video and I note that he does not have pull downs on the base pins, but... strangely his LEDs do not appear to flicker and the circuit looks stable and quiet.



What is going on here?  Is he using transistors with a a higher minimum B-E current or is he just lucky?  (My transistors are cheap and nasty chinese 2n2222's).
« Last Edit: November 08, 2017, 11:47:02 am by paulca »
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Pull down resistors
« Reply #1 on: November 08, 2017, 12:14:16 pm »
Depends on transistor leakage and its beta. The leakage can be
multiplied by the beta to produce enough collector current to
turn on transistor. Temperature also a big effect on leakage.


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17117
  • Country: us
  • DavidH
Re: Pull down resistors
« Reply #2 on: November 08, 2017, 07:29:38 pm »
The Nylon commonly used with solderless breadboards may have enough leakage to go either way depending on layout, humidity, and temperature.
 

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4247
  • Country: gb
Re: Pull down resistors
« Reply #3 on: November 08, 2017, 08:43:37 pm »
I'm putting it down to dodgy transistors, or I have different kind to the video.  If I wire a floating pin on mine then waving my hand around the board produces flickering LED.  If I grab the base pin with my finger the LED comes fully on, even with a 10K resistor.

Then again I was always the one to light the mains tester the most in science class which raised a few eyebrows.  Yet the touch screen coffee machine in work often ignores me. :(

Also my YrRobot 5V breadboard supply is dodgy as ____ I noticed tonight that an LED on the board that wasn't even connected to the ground rail by any component would light dimly while I was holding the board.... the PSU power was OFF!  The LED was connected to the 5V rail via a 330R, that took a bit of bewilderment.  When I disconnected it from the wall wart the LED went out.  Something really screwed up happening there.  I must have been grounding the board via the PSU module somehow, but that still doesn't explain the fact the LED wasn't connected to ground on any breadboard rail.

Maybe I'm a walking battery/capacitor and electrons like me or hate me. <shrug>

Can I assume for such transistor circuits to run cleanly one should have a pull down instead of a floating pin?

(I am also replacing my cheap Chinese discovery kit bit by bit with actual branded components)
« Last Edit: November 08, 2017, 08:47:30 pm by paulca »
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline csar

  • Newbie
  • Posts: 8
  • Country: br
Re: Pull down resistors
« Reply #4 on: November 09, 2017, 07:29:53 pm »
What is the real reason to use a resistor at the base of the BJT transitor?
 

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4247
  • Country: gb
Re: Pull down resistors
« Reply #5 on: November 09, 2017, 08:45:02 pm »
What is the real reason to use a resistor at the base of the BJT transitor?

Beginner to beginner (I assume)....

For the input signal on the base you don't need to supply very much current.  Milliamps, to work out just how many you need the datasheet, the "gain" across the collector/emitter and the current you want to flow across them in your circuit.  Divide the current you want by the gain, apply that to the base.  You can work out the resistor you need using Ohm's law.

If you don't put a resistor (as I found out) the Base->Emitter current will try and power the circuit beyond the trannie and the trannie will get hot.

The "pull down" I am referring to however is what happens to the Base of the transistor when you disconnect the signal to the base.  With the base disconnected the current/voltage on the base is "undetermined" and subject to interference/RF/noise.  By connecting the base to GND/0V you know that zero current will flow into the transistor.  It should be a pretty high value resistor (1M sort of thing) so that when the signal is connected you aren't "throwing away" a load of current to ground.

With a pull down in place, if your base current needs to be precise, you will need to factor the pull down into the equation to get your base current.

Some of that will be wrong or non-pedantic, so I'd be grateful for corrections. :)
« Last Edit: November 09, 2017, 08:46:38 pm by paulca »
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17117
  • Country: us
  • DavidH
Re: Pull down resistors
« Reply #6 on: November 10, 2017, 05:45:33 am »
What is the real reason to use a resistor at the base of the BJT transitor?

Usually a resistor is included between the base and emitter to sink leakage current which could otherwise turn the transistor on.  This becomes more important at high temperatures.

A resistor between the base and emitter also serves to help remove charge decreasing storage time and rise time.

A high value resistor in series with the base or emitter limits base to emitter current when the transistor is driven by a low impedance source.

A low value resistor in series with the base may be used to prevent parasitic oscillation do to a capacitive load reflecting through the transistor to become a negative resistance at the base.

Integrated injection logic can be implemented with no resistors at all.  The example there shows a rather poor PNP current source with one resistor but a superior integrated version could be implemented without any resistors.  A discrete version of this logic would require low value resistors in series with every emitter not to limit current but to allow a large variation in Vbe from using unmatched transistors.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf