Electronics notes/Transistors

From Helpful
(Redirected from Opto-isolation)
Jump to navigation Jump to search

⚠ This is for beginners and very much by a beginner / hobbyist

It's intended to get an intuitive overview for hobbyist needs. It may get you started, but to be able to do anything remotely clever, follow a proper course or read a good book.


Some basics and reference: Volts, amps, energy, power · batteries · resistors · transistors · fuses · diodes · capacitors · inductors and transformers · ground

Slightly less basic: amplifier notes · varistors · changing voltage · baluns · frequency generation · Transmission lines · skin effect


And some more applied stuff:

IO: Input and output pins · wired local IO · wired local-ish IO · ·  Various wireless · 802.11 (WiFi) · cell phone

Sensors: General sensor notes, voltage and current sensing · Knobs and dials · Pressure sensing · Temperature sensing · humidity sensing · Light sensing · Movement sensing · Capacitive sensing · Touch screen notes

Actuators: General actuator notes, circuit protection · Motors and servos · Solenoids

Noise stuff: Stray signals and noise · sound-related noise names · electronic non-coupled noise names · electronic coupled noise · ground loop · strategies to avoid coupled noise · Sampling, reproduction, and transmission distortions

Audio and video notes: See avnotes


Platform specific

Arduino and AVR notes · (Ethernet)
Microcontroller and computer platforms ··· ESP series notes · STM32 series notes


Less sorted: Ground · device voltage and impedance (+ audio-specific) · electricity and humans · Common terms, useful basics, soldering · landline phones · pulse modulation · PLL · Multimeter notes · signal reflection · Project boxes · resource metering · Radio and SDR · vacuum tubes · Unsorted stuff · 'E-fuse'

Some stuff I've messed with: Avrusb500v2 · GPS · Hilo GPRS · JY-MCU · DMX · Thermal printer ·

See also Category:Electronics.

Component families


BJT family

Transistor behaviour (BJT)

This article/section is a stub — some half-sorted notes, not necessarily checked, not necessarily correct. Feel free to ignore, or tell me about it.


Transistors have four distinct modes of operation:


Mode NPN PNP Notes
Cutoff VB < VE and VB < VC VB > VE and VB > VC C-E current is 0 because it's an open circuit (close to it).

Maximum VCE (VCE = VCC, the least flow through the collector (verify))

Active
(forward active)
VE < VB < VC VE > VB > VC C-E currrent is IB times hFE, i.e. input current times the gain - it's a current amplifier.
Saturation VB > VE and VB > VC VB < VE and VB < VC The C-E current is maximum, often close enough to short circuit (so) at this point it acts like a switch
also in that C-E current is already maximum, and higher base current has no further effect
Reverse
(reverse active)
VE > VB > VC VE < VB < VC Current flows from E to C
Current will be IB times the reverse gain
reverse gain is much smaller
   (...and not often specced, because this is rarely used intentionally)

Notes:

  • between NPN and PNP, the conditions are just flipped.
  • In precision circuits, there are a lot more footnotes to all of that.
  • A BJT's gain (forward current gain), hFE, is ΔIC/ΔIB, a dimensionless value.
If the input and output impedance is equal (it often is), this can be simplified to Iout/Iin, and can be given in dB
  • there is also a reverse gain, which will be much smaller,
and is rarely characterized because it's not typically used.



While current amplifiers, transistors are easily used as voltage signal amplifiers as well.

It then matters more that they are not linear from rail to rail - in particular near 0V it does weird things, which conceptually is because the first ~0.6V are eated up by the diode-like nature of transistors).

You ten often want to use a linear-enough region. Which often starts above said diode-ish voltage, which is why you often see biasing (=adding a little voltage) to put the signal you want in that linear region.

https://learn.sparkfun.com/tutorials/transistors/operation-modes


On transistor reverse avalanche breakdown
unijunction transistors (UJT)

Identifying a bipolar transistor's legs

FET family

Transistor behaviour (FET)


Voltage controlled resistor

On power loss

So why do we use both BJTs and FETs?

Insulated-gate bipolar transistors (IGBT)

A hybrid of the above, basically the high-current ruggedness of a Bipolar with the sensitivity of a FET

https://en.wikipedia.org/wiki/Insulated-gate_bipolar_transistor


Phototransistor / optocouple / opto-isolator

A phototransistor is a transistor with amount of light controlling the base - and exposed.


Uses:

  • switching things on at night.
  • galvanically isolated switching
  • galvanically isolated communication - then often IR (and often modulated, to avoid environment light being confusing)


Optocouples are essentially a LED plus phototransistor isolated in an IC. These are often used for their galvanic isolation, e.g. avoiding ground loops, and are also useful when you want simple (one-way) interactions between circuits at different voltages.


Often appear as 4-pin or 6-pin ICs.

  • The 4-pin variants give you the LED (cathode and anode) on one side, and the transistor's (collector and emitter) on the other.
  • The 6-pin variant use 5 pins; it adds the transistor's base, which just works as an extra (non-isolated) trigger. In practice it may often be left unconnected

ICs with multiple optocouplers also exist.


Specs vary in details such as:

  • current use
  • output voltage
  • how much voltage difference can be isolated
  • rise/fall time (order of microseconds, so order of 1MHz speeds, slower than plain transistors)
  • added components -- may e.g. be a darlington setup

...and more.


See also:

Behaviour and uses

BJT and FET similarities and differences

On conductance

BJTs and FETs as a switch

Simple logic

Transistor output stages

See Transistor output stages

Basic amplifiers

On amplifier classes

Multiple transistor

Compound pairs

Darlington pair

Sziklai pair

Cascode

Current mirror

Long tailed pair

Semi-sorted

Oscillators

As a diode

Pre-biased transistors

This article/section is a stub — some half-sorted notes, not necessarily checked, not necessarily correct. Feel free to ignore, or tell me about it.
One symbol for a pre-biased transistor


Pre-biased transistors

  • tend to have a resistor on the base
A resistor on die is harder to do, so this has looser tolerance. ...but for digital switching, you won't care much.
  • May have a second resistor, between base and emitter


Pre-biased transistors are mostly used to reduce component count.

The resistor values can be chosen to - effectively - limit the current through the component, which means they can protect a load, protect an input socket, or such, and the transistor may not even fry if you short them to ground without a load (but don't count on it).


Unsorted

testing a transistor