eolas/zk/Transistors.md

63 lines
2.4 KiB
Markdown
Raw Permalink Normal View History

2022-10-26 13:30:05 +01:00
---
2024-06-16 18:30:03 +01:00
tags:
- logic-gates
- binary
- electronics
2022-10-26 13:30:05 +01:00
---
2022-11-22 07:30:05 +00:00
# Transistors
2022-10-26 13:30:05 +01:00
2024-07-04 07:00:04 +01:00
A digital circuit requires that electrical phenomena be treated as discrete
rather than continuous values.
2022-10-26 13:30:05 +01:00
2024-07-04 07:00:04 +01:00
Although a given voltage at a point in the circuit can vary widely, in order to
represent the binary states of 'on' and 'off' we need it to remain fixed within
certain narrow parameters. This is achieved with transistors.
2022-10-26 13:30:05 +01:00
2024-07-04 07:00:04 +01:00
Transistors are an electrical component that is capable of controlling the flow
of current in the manner of a switch where the 'off' and 'on' states are
represented by [voltage](Voltage.md) values within set parameters.
2022-11-16 08:08:32 +00:00
There are different types of transistors but the simplest for the purposes of
explanation are **bipolar junction transistors**.
2022-11-16 08:08:32 +00:00
2024-07-04 07:00:04 +01:00
![BJT transistor terminals](../img/bjt-terminals.jpg)
2022-11-17 07:30:05 +00:00
2024-07-04 07:00:04 +01:00
The pins:
2022-11-17 07:30:05 +00:00
2024-07-04 07:00:04 +01:00
- C: collector
- B: base
- E: emitter
2022-11-17 07:30:05 +00:00
2024-07-04 07:00:04 +01:00
Applying a small amount of current at the base allows a larger current to flow
from the collector to the emitter. Applying current to the base is like turning
the switch on. Removing this current is like turning the switch off.
2022-11-17 07:30:05 +00:00
2024-07-04 07:00:04 +01:00
This happens because of how current and voltage interact in a transistor. The
small base current controls the larger collector-emitter current through a
process called current amplification.
2022-11-17 07:30:05 +00:00
2024-07-04 08:00:03 +01:00
When a small voltage is applied to the base, it allows a small current to flow
from the base to the emitter. This base current triggers a much larger current
to flow from the collector to the emitter. Think of it like a water valve: a
small turn of the handle (base current) can control a large flow of water
(collector-emitter current). The transistor amplifies this effect, allowing a
tiny input signal to control a much larger output.
2022-11-17 08:30:04 +00:00
## Transistors and logic gates
2024-07-04 07:00:04 +01:00
We can combine transistors to create logic gates. A logic gate is a combination
of transistors arranged such that the logical function is embodied by the
characteristic input and output voltages to the transistor.
2022-11-17 08:30:04 +00:00
2024-07-04 07:00:04 +01:00
For example to create an [AND](Logic_gates.md#and-gate) gate we would have two
voltage inputs going into two transistors that are connected in sequence. The
two transistors create a continuous line going from the collector of one to the
emitter of the other. If either voltage input is low then the voltage of the
combined line is low (equivalent to the circuit being broken) and there is no
current flowing.
2022-11-17 08:30:04 +00:00
2024-02-16 16:14:01 +00:00
![](/img/and-transistor.png)
2022-11-17 08:30:04 +00:00
2024-07-04 07:00:04 +01:00
// Add example of OR gate created with transistors