Difference between revisions of "Transistors, Diodes, etc."

From OpenCircuits
Jump to navigation Jump to search
(Moved to separate pages)
 
(41 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[Category:Components]]
+
[[Transistors]], [[Diodes]], [[Triacs]]
  
==Transistors==
+
[[Category:AFD]]
 
 
Transistors are three termainal devices where one terminal controls the power through the other two.
 
 
 
===Transistors Bipolar===
 
'''TWO TYPES:'''
 
 
 
Bipolar transistors are basically current controlled devices.  The current flowing in/out of base controlls the current flowing in/out of the Collector.  There are two basic types of Bipolar transistors:  NPN and PNP. 
 
 
 
In bipolars, the collector current (Ic) is controlled by the base current (Ib).  Ic equals the Ib times a variable called "Hfe" (often listed in transistor datasheets).  In other words, Ic = Ib * Hfe.  Hfe can range from 30 (for big bipolars) to several hundred.
 
 
 
'''NPN Operation:''' 
 
To turn on and get Ic flowing, a small base current must be squirted INTO the base.  Do this by raising base voltage through a base resistor.  If this current is too small (or zero), the base is starved and collector current shuts off.  When you squirt enough current into the base, the base-emitter acts like a diode.  The way you know you are squirting enough current into the base is by checking the voltage between base and emitter.  When transistor is on full, the base will be several hundred millivolts above the emitter voltage (< 500 mV if barely on, usually 600-900 mV when full on). 
 
 
 
'''PNP Operation:''' 
 
To turn on and get Ic flowing, a small base current must be pulled OUT OF the base.  Do this by pulling base below emitter voltage through a base resistor.  If this current is too small (or zero), the base is starved and collector current shuts off.  When you pull enough current out of the base, the emitter-base acts like a diode.  The way you know you are pulling enough current out of the base is by checking the voltage between emitter and base.  When transistor is on full, the emitter will be several hundred millivolts above the base voltage (< 500 mV if barely on, usually 600-900 mV when full on). 
 
 
 
'''Bipolar Smoke Warning: '''
 
You must limit the curent in bipolar devices.  Two ways to do that. 
 
(1) Limit Ib.  Use a resistor feeding into the base to limit Ib.  Since Ib controls Ic, that will limit Ic.  (typical for NPN switching)
 
(2) Limit Ic.  Use a resistor in series with the collector to limit Ic (emitter follower circuit).  If you don't limit one or the other, you will get smoke. 
 
 
 
If you're not sure which to do, USE A BASE RESISTOR OR BOTH.  In a switch, Ib can get large, even if Ic is limited.
 
 
 
 
 
'''BIPOLAR SWITCHES vs AMPLIFIER:'''
 
NPNs and PNPs can be used as switches, buffers or amplifiers.  When used as a switch (the easiest), you're cranking the device hard-on or hard-off, nothing in between.  Using a transistor as an amplifier requires significantly more design finesse to get linear gain and proper behavior. 
 
 
 
'''NPN SWITCH DESCRIPTION:''' 
 
Emitter to ground.  Resistor (e.g. 10k) between collector and Vcc.  Resistor (e.g. 3k) between input voltage and base.  Output = collector voltage.  When input goes high (5V, 12V, whatever), transistor turns on, pulls current through collector resistor, and output goes low.  When input goes to zero, no current can go into the NPN base.  Transistor shuts off, collector voltage pulled to Vcc.  When Ic is on fully, voltage between collector and emitter may be around 0.2V.
 
'''Normal NPN Switching Operation for hobbiests:''' 
 
Emitter tied to ground for switching.  Squirt current into base to turn on.  Base will be 600-900 mV above the emitter when on.  If collector drops below base voltage (saturation in switch operation), the base will start sucking in more current. 
 
 
 
 
 
'''PNP SWITCH DESCRIPTION:''' 
 
Emitter to Vcc.  Resistor (e.g. 10k) between collector and Ground.  Resistor (e.g. 3k) between input voltage and base.  Output = collector voltage.  When input goes to ground, transistor turns on, pushes current through collector resistor, and output goes high.  When input goes to Vcc, no current can flow out of the PNP base.  Transistor shuts off, collector voltage pulled to Ground.  When Ic is on fully, voltage between collector and emitter may be around 0.2V.
 
'''Normal PNP operation for hobbiests:  '''
 
Emitter tied to Vcc for switching.  Pull current out of base to turn on.  Base will be 600-900 mV below the emitter when on.  If collector rises above base voltage (saturation in switch operation), the base will start sending out more current.
 
 
 
 
 
Links:
 
 
 
[http://www.piclist.com/techref/transistors.htm?key=base+resistor&from= Transistor Components]
 
 
 
===Transistors FET MOSFET===
 
 
 
'''CMOS / MOSFET'''
 
 
 
MOSFET = Metal-Oxide Semiconductor Field Effect Transistor
 
CMOS = Complementary Metal-Oxide Semiconductor
 
These are voltage controlled devices.  The current is controlled by [[difference]] between the gate voltage (Vg) and source voltages (Vs).  When the difference is large enough (above a threshold voltage called Vt (listed in datasheets), the transistor turns on.
 
 
 
'''TERMINALS:'''
 
Drain, Gate, Source
 
 
 
'''NFETS AND PFETS:'''
 
Like Bipolar devices, there are two types of FET devices as well.  They are built differently. 
 
 
 
'''N-Channel FETS (NFETS):'''
 
NFETS turn on by raising the Gate voltage (Vg) above the Source voltage (Vs).  This difference is called Vgs.  When Vgs is more than some threshold voltage (Vt), the device turns on.  In other words, When Vg is Vt or more volts above Vs, it turns on and current flows INTO the drain.  The basic relationship is Id = Constant * (Vgs-Vt)^2.  In switching applications or LED control applications, always tie the NFET source to ground.  Apply TTL voltage directly to the gate.  A resistor is tied between the drain and Vdd.  If an LED is used, then the resistor controls the LED current and the LED is placed in series with the resistor. 
 
 
 
'''P-Channel FETS (PFETS):'''
 
PFETS turn on by lowering the Gate voltage (Vg) below the Source voltage (Vs).  This difference is called Vsg.  When Vsg is more than some threshold voltage (Vt), the device turns on.  In other words, When Vg is Vt or more volts below Vs, it turns on and current flows OUT OF the drain.  The basic relationship is Id = Constant * (Vsg-Vt)^2.  In switching applications or LED control applications, always tie the PFET source to Vdd.  Apply TTL voltage directly to the gate.  A resistor is tied between the drain and Ground.  If an LED is used, then the resistor controls the LED current and the LED is placed in series with the resistor. 
 
 
 
'''Hints:'''
 
Raise a NFET gate up to turn it on.  Pull a PFET gate down to turn it on. 
 
 
 
'''IMPORTANT NOTE ABOUT MOSTFET GATES:'''
 
Unlike Bipolar devices, there is ZERO current going in/out of the gate (gate is very high impedance).  That means you MUST force the gate voltage where you want it.  If left to float, it will move about randomly, turning the transistor on and off unpredictably.  If you have a situation where the gate is floating, tie the gate to Ground or Vdd through a large pullup resistor (e.g. 10-20K) to pin down the voltage to a default value of your choice.
 
 
 
 
 
 
 
'''ANALOGY BETWEEN MOSFETS AND BIPOLAR TRANSISTORS'''SQUARE LAW VS EXPONENTIAL, FETS are square-law devices and
 
 
 
===Transistors Transdiode===
 
 
 
This is a connection of a transistor to use it as a diode.
 
 
 
==Diodes==
 
Diodes are two terminal devices that conduct very differently in one direction verses another.  The basic use takes advantage of this property, but the are other characetistics that are also useful and special diodes that take advantage of these properties.
 
 
 
 
 
===General===
 
A diode lets current through in one direction but not another. It acts somewhat an infinite resistance in one direction, and a 0 resistance in the other direction. A more accurate description ( but not complet ) says that in the low resistance direction there must be a .6 v drop before much current flows.
 
 
 
Other Reading
 
*[http://en.wikipedia.org/wiki/Diode Diode From Wikipedia, the free encyclopedia]
 
 
 
=== Use: Rectifier ===
 
Changing alternating current to direct current.  A standard in almost all plug in power supplies and most electronic circuits run on DC.
 
 
 
=== Use: Detector ===
 
As in an amplitude modulated radio ( AM ) where the radio signal is changed to an audio signal.
 
 
 
=== Use: Snubber ===
 
Some circuits, typically those with inductance like inductors, motors, relays and solenoids, generate a large back or reverse voltage when they turn off.  Often a diode will be inserted to "short circuit" this voltage/current.  This can prevent dammage to other circuit components.
 
 
 
=== Use: Steering ===
 
Sending a voltage/current in a particular direction in a circuit
 
 
 
=== Use: Expotential/Logeritmitc Converter ===
 
The current in the foward direction is an exponential function of the voltage.  Together with an op amp this can be used to convert voltages to via an expoential or logeritmitc function.  These in turn can be used for multiplication, division, powers and roots.  See [[OpAmp Links]]
 
 
 
 
 
=== Use: Clipping, Bias Voltage ( Temperature Sensing ) ===
 
 
 
In the forward direction a junction has about .6 volts when conducting ( as does the base emitter junction of a bipolar transistor ).  This voltage is useful as a small well defined voltage for bias in a transistor circuit.  Often 2 or more will be used in series for a higher voltage.  If the input is a varing voltage the output is equal to the input and then begins to clip ( stop rising ) at about .6 volts.  Feeding in a triangel wave at the right amplitude you get out a triangle wave with the points rounded off, an approximate sine wave.
 
The bias voltage is somewhat temperature sensitive, you can used this in an electronic therometer circuit.
 
 
 
=== Use: Over Voltage Protection ===
 
Many circuits cannot tollerate voltage over a certain limit ( often the power supply voltage ).  Connecting a diode from the circuit input to the power supply can "short out" the over voltage.  Make sure the diode is connected in the proper direction.
 
 
 
=== Use: Bridge ===
 
This is an arrangement that is used for full wave rectification and some other circuits that are a bit tricky.  Not explained here and now but google will help you out
 
 
 
=== Use: Reverse Protection ===
 
Many circuits destroy themselves when connected backwards to a voltage source.  Connecting a diode in series with the circuit blocks the reverse voltage.
 
 
 
=== Use: Isolation ===
 
 
 
=== Tunnel Variable Capicator Transdiode Light Emitting ===
 
 
 
=== Special Types ===
 
 
 
LED,  Shockley Junction, Tunnell, variable capacitance.....
 
 
 
==== Photo ====
 
 
 
see [[Sensors]] photo
 
 
 
[[Image:PG31-PowerSupply.jpg|69px]] [[Reverse Protection Diodes]] - PTH and SMD diodes to protect against reverse polarization.
 

Latest revision as of 19:56, 11 November 2014