Documente Academic
Documente Profesional
Documente Cultură
com
1 of 28
https://learn.sparkfun.com/tutorials/transistors
STA RT A PROJ E CT
WORK SHOPS
S H OP
E D U BL OG
LEARN
FORUM
RE SOURCE S
DAT A
TU TORI A L S
CL A SSE S
HE L L O, SE L V A N
YOU R A CCOU NT
CA L E ND A R
search...
CON TA CT
Transistors
C ON TR IBU TO R S:
JI MB0
S H A RE
Sections
Introduction
Introduction
View Paginated
Print
Tags
In small, discrete quantities, transistors can be used to create simple
electronic switches, digital logic, and signal amplifying circuits. In quantities
of thousands, millions, and even billions, transistors are interconnected and
embedded into tiny chips to create computer memories, microprocessors,
and other complex ICs.
E L E CTRI C A L E N GI N E E RI N G
TE CH N OL OGY
License
tutorials are CC BY-NC-SA 3.0
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
2 of 28
https://learn.sparkfun.com/tutorials/transistors
Suggested Reading
Before digging into this tutorial, wed highly recommend giving these
tutorials a look-through:
Voltage, Current, Resistance, and Ohms Law An introduction to the
fundamentals of electronics.
Electricity Basics Well talk a bit about electricity as the flow of
electrons. Find out how those electrons flow in this tutorial.
Electric Power One of the transistors main applications is
amplifying increasing the power of a signal. Increasing power
means we can increase either current or voltage, find out why in this
tutorial.
Diodes A transistor is a semiconductor device, just like a diode. In
a way, its what youd get if you stacked two diodes together, and tied
their anodes together. Understanding how a diode works will go a
long way towards uncovering the operation of a transistor.
The only difference between an NPN and PNP is the direction of the arrow
on the emitter. The arrow on an NPN points out, and on the PNP it points in.
A useful mnemonic for remembering which is which is:
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
3 of 28
https://learn.sparkfun.com/tutorials/transistors
Transistor Construction
Transistors rely on semiconductors to work their magic. A semiconductor is
a material thats not quite a pure conductor (like copper wire) but also not
an insulator (like air). The conductivity of a semiconductor how easily it
allows electrons to flow depends on variables like temperature or the
presence of more or less electrons. Lets look briefly under the hood of a
transistor. Dont worry, we wont dig too deeply into quantum physics.
The diode connecting base to emitter is the important one here; it matches
the direction of the arrow on the schematic symbol, and shows you which
way current is intended to flow through the transistor.
The diode representation is a good place to start, but its far from accurate.
Dont base your understanding of a transistors operation on that model
(and definitely dont try to replicate it on a breadboard, it wont work).
Theres a whole lot of weird quantum physics level stuff controlling the
interactions between the three terminals.
(This model is useful if you need to test a transistor. Using the diode (or
resistance) test function on a multimeter, you can measure across the BE
and BC terminals to check for the presence of those diodes.)
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
4 of 28
https://learn.sparkfun.com/tutorials/transistors
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
5 of 28
https://learn.sparkfun.com/tutorials/transistors
The NPN transistor is designed to pass electrons from the emitter to the
collector (so conventional current flows from collector to emitter). The
emitter emits electrons into the base, which controls the number of
electrons the emitter emits. Most of the electrons emitted are collected by
the collector, which sends them along to the next part of the circuit.
A PNP works in a same but opposite fashion. The base still controls current
flow, but that current flows in the opposite direction from emitter to
collector. Instead of electrons, the emitter emits holes (a conceptual
absence of electrons) which are collected by the collector.
The transistor is kind of like an electron valve. The base pin is like a
handle you might adjust to allow more or less electrons to flow from emitter
to collector. Lets investigate this analogy further
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
6 of 28
https://learn.sparkfun.com/tutorials/transistors
1) On Short Circuit
A valve can be completely opened, allowing water to flow freely passing
through as if the valve wasnt even present.
Likewise, under the right circumstances, a transistor can look like a short
circuit between the collector and emitter pins. Current is free to flow
through the collector, and out the emitter.
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
7 of 28
https://learn.sparkfun.com/tutorials/transistors
Amplifying Power
Theres another analogy we can wrench into this. Imagine if, with the slight
turn of a valve, you could control the flow rate of the Hoover Dams flow
gates. The measly amount of force you might put into twisting that knob has
the potential to create a force thousands of times stronger. Were
stretching the analogy to its limits, but this idea carries over to transistors
too. Transistors are special because they can amplify electrical signals,
turning a low-power signal into a similar signal of much higher power.
Kind of. Theres a lot more to it, but thats a good place to start! Check out
the next section for a more detailed explanation of the operation of a
transistor.
Operation Modes
Unlike resistors, which enforce a linear relationship between voltage and
current, transistors are non-linear devices. They have four distinct modes
of operation, which describe the current flowing through them. (When we
talk about current flow through a transistor, we usually mean current
flowing from collector to emitter of an NPN.)
The four transistor operation modes are:
Saturation The transistor acts like a short circuit. Current freely
flows from collector to emitter.
Cut-off The transistor acts like an open circuit. No current flows
from collector to emitter.
Active The current from collector to emitter is proportional to the
current flowing into the base.
Reverse-Active Like active mode, the current is proportional to
the base current, but it flows in reverse. Current flows from emitter to
collector (not, exactly, the purpose transistors were designed for).
To determine which mode a transistor is in, we need to look at the voltages
on each of the three pins, and how they relate to each other. The voltages
from base to emitter (VBE), and the from base to collector (VBC) set the
transistors mode:
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
8 of 28
https://learn.sparkfun.com/tutorials/transistors
The simplified quadrant graph above shows how positive and negative
voltages at those terminals affect the mode. In reality its a bit more
complicated than that.
Lets look at all four transistor modes individually; well investigate how to
put the device into that mode, and what effect it has on current flow.
Note: The majority of this page focuses on NPN transistors. To understand
how a PNP transistor works, simply flip the polarity or > and < signs.
Saturation Mode
Saturation is the on mode of a transistor. A transistor in saturation mode
acts like a short circuit between collector and emitter.
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
9 of 28
https://learn.sparkfun.com/tutorials/transistors
In saturation mode both of the diodes in the transistor are forward biased.
That means VBE must be greater than 0, and so must VBC. In other words,
VB must be higher than both VE and VC.
Because the junction from base to emitter looks just like a diode, in reality,
VBE must be greater than a threshold voltage to enter saturation. There
are many abbreviations for this voltage drop Vth, V, and Vd are a few
and the actual value varies between transistors (and even further by
temperature). For a lot of transistors (at room temperature) we can
estimate this drop to be about 0.6V.
Another reality bummer: there wont be perfect conduction between emitter
and collector. A small voltage drop will form between those nodes.
Transistor datasheets will define this voltage as CE saturation voltage
VCE(sat) a voltage from collector to emitter required for saturation. This
value is usually around 0.05-0.2V. This value means that VC must be slightly
greater than VE (but both still less than VB) to get the transistor in saturation
mode.
Cutoff Mode
Cutoff mode is the opposite of saturation. A transistor in cutoff mode is off
there is no collector current, and therefore no emitter current. It almost
looks like an open circuit.
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
10 of 28
https://learn.sparkfun.com/tutorials/transistors
To get a transistor into cutoff mode, the base voltage must be less than
both the emitter and collector voltages. VBC and VBE must both be negative.
Active Mode
To operate in active mode, a transistors VBE must be greater than zero and
VBC must be negative. Thus, the base voltage must be less than the
collector, but greater than the emitter. That also means the collector must
be greater than the emitter.
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
11 of 28
https://learn.sparkfun.com/tutorials/transistors
The actual value of varies by transistor. Its usually around 100, but can
range from 50 to 200even 2000, depending on which transistor youre
using and how much current is running through it. If your transistor had a
of 100, for example, thatd mean an input current of 1mA into the base could
produce 100mA current through the collector.
is usually very close to, but less than, 1. That means IC is very close to,
but less than IE in active mode.
You can use to calculate , or vice-versa:
Reverse Active
Just as saturation is the opposite of cutoff, reverse active mode is the
opposite of active mode. A transistor in reverse active mode conducts,
even amplifies, but current flows in the opposite direction, from emitter to
collector. The downside to reverse active mode is the (R in this case) is
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
12 of 28
https://learn.sparkfun.com/tutorials/transistors
much smaller.
To put a transistor in reverse active mode, the emitter voltage must be
greater than the base, which must be greater than the collector (VBE<0 and
VBC>0).
Reverse active mode isnt usually a state in which you want to drive a
transistor. Its good to know its there, but its rarely designed into an
application.
Active
Reverse
Saturation Cutoff
Cutoff Saturation
Reverse
Active
If youre burnt out on conceptual stuff, take a trip to the next section. The
best way to learn how a transistor works is to examine it in real-life circuits.
Lets look at some applications!
Applications I: Switches
One of the most fundamental applications of a transistor is using it to
control the flow of power to another part of the circuit using it as an
electric switch. Driving it in either cutoff or saturation mode, the transistor
can create the binary on/off effect of a switch.
Transistor switches are critical circuit-building blocks; theyre used to make
logic gates, which go on to create microcontrollers, microprocessors, and
other integrated circuits. Below are a few example circuits.
Transistor Switch
Lets look at the most fundamental transistor-switch circuit: an NPN switch.
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
13 of 28
https://learn.sparkfun.com/tutorials/transistors
Our control input flows into the base, the output is tied to the collector, and
the emitter is kept at a fixed voltage.
While a normal switch would require an actuator to be physically flipped,
this switch is controlled by the voltage at the base pin. A microcontroller I/O
pin, like those on an Arduino, can be programmed to go high or low to turn
the LED on or off.
When the voltage at the base is greater than 0.6V (or whatever your
transistors Vth might be), the transistor starts saturating and looks like a
short circuit between collector and emitter. When the voltage at the base is
less than 0.6V the transistor is in cutoff mode no current flows because it
looks like an open circuit between C and E.
The circuit above is called a low-side switch, because the switch our
transistor is on the low (ground) side of the circuit. Alternatively, we can
use a PNP transistor to create a high-side switch:
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
14 of 28
https://learn.sparkfun.com/tutorials/transistors
Similar to the NPN circuit, the base is our input, and the emitter is tied to a
constant voltage. This time however, the emitter is tied high, and the load is
connected to the transistor on the ground side.
This circuit works just as well as the NPN-based switch, but theres one
huge difference: to turn the load on the base must be low. This can cause
complications, especially if the loads high voltage (VCC in this picture) is
higher than our control inputs high voltage. For example, this circuit
wouldnt work if you were trying to use a 5V-operating Arduino to switch on
a 12V motor. In that case itd be impossible to turn the switch off because
VB would always be less than VE.
Base Resistors!
Youll notice that each of those circuits uses a series resistor between the
control input and the base of the transistor. Dont forget to add this resistor!
A transistor without a resistor on the base is like an LED with no currentlimiting resistor.
Recall that, in a way, a transistor is just a pair of interconnected diodes.
Were forward-biasing the base-emitter diode to turn the load on. The diode
only needs 0.6V to turn on, more voltage than that means more current.
Some transistors may only be rated for a maximum of 10-100mA of current
to flow through them. If you supply a current over the maximum rating, the
transistor might blow up.
The series resistor between our control source and the base limits current
into the base. The base-emitter node can get its happy voltage drop of
0.6V, and the resistor can drop the remaining voltage. The value of the
resistor, and voltage across it, will set the current.
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
15 of 28
https://learn.sparkfun.com/tutorials/transistors
The resistor needs to be large enough to effectively limit the current, but
small enough to feed the base enough current. 1mA to 10mA will usually be
enough, but check your transistors datasheet to make sure.
Digital Logic
Transistors can be combined to create all our fundamental logic gates:
AND, OR, and NOT.
(Note: These days MOSFETS are more likely to be used to create logic
gates than BJTs. MOSFETs are more power-efficient, which makes them
the better choice.)
Inverter
Heres a transistor circuit that implements an inverter, or NOT gate:
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
16 of 28
https://learn.sparkfun.com/tutorials/transistors
AND Gate
Here are a pair of transistors used to create a 2-input AND gate:
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
17 of 28
https://learn.sparkfun.com/tutorials/transistors
If either transistor is turned off, then the output at the second transistors
collector will be pulled low. If both transistors are on (bases both high),
then the output of the circuit is also high.
OR Gate
And, finally, heres a 2-input OR gate:
H-Bridge
An H-bridge is a transistor-based circuit capable of driving motors both
clockwise and counter-clockwise. Its an incredibly popular circuit the
driving force behind countless robots that must be able to move both
forward and backward.
Fundamentally, an H-bridge is a combination of four transistors with two
inputs lines and two outputs:
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
18 of 28
https://learn.sparkfun.com/tutorials/transistors
0
1
1
1
1
0
Stopped (braking)
Clockwise
1
1
0
1
0
0
1
0
Counter-clockwise
Stopped (braking)
Oscillators
An oscillator is a circuit that produces a periodic signal that swings between
a high and low voltage. Oscillators are used in all sorts of circuits: from
simply blinking an LED to the producing a clock signal to drive a
microcontroller. There are lots of ways to create an oscillator circuit
including quartz crystals, op amps, and, of course, transistors.
Heres an example oscillating circuit, which we call an astable
multivibrator. By using feedback we can use a pair of transistors to
create two complementing, oscillating signals.
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
19 of 28
https://learn.sparkfun.com/tutorials/transistors
Aside from the two transistors, the capacitors are the real key to this
circuit. The caps alternatively charge and discharge, which causes the two
transistors to alternatively turn on and off.
Analyzing this circuits operation is an excellent study in the operation of
both caps and transistors. To begin, assume C1 is fully charged (storing a
voltage of about VCC), C2 is discharged, Q1 is on, and Q2 is off. Heres
what happens after that:
If Q1 is on, then C1s left plate (on the schematic) is connected to
about 0V. This will allow C1 to discharge through Q1s collector.
While C1 is discharging, C2 quickly charges through the lower value
resistor R4.
Once C1 fully discharges, its right plate will be pulled up to about
0.6V, which will turn on Q2.
At this point weve swapped states: C1 is discharged, C2 is charged,
Q1 is off, and Q2 is on. Now we do the same dance the other way.
Q2 being on allows C2 to discharge through Q2s collector.
While Q1 is off, C1 can charge, relatively quickly through R1.
Once C2 fully discharges, Q1 will be turn back on and were back in
the state we started in.
It can be hard to wrap your head around. You can find another excellent
demo of this circuit here.
By picking specific values for C1, C2, R2, and R3 (and keeping R1 and R4
relatively low), we can set the speed of our multivibrator circuit:
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
20 of 28
https://learn.sparkfun.com/tutorials/transistors
So, with the values for caps and resistors set to 10F and 47k
respectively, our oscillator frequency is about 1.5 Hz. That means each
LED will blink about 1.5 times per second.
As you can probably already see, there are tons of circuits out there that
make use of transistors. But weve barely scratched the surface. These
examples mostly show how the transistor can be used in saturation and
cut-off modes as a switch, but what about amplification? Time for more
examples!
Common Configurations
Three of the most fundamental transistor amplifiers are: common emitter,
common collector and common base. In each of the three configurations
one of the three nodes is permanently tied to a common voltage (usually
ground), and the other two nodes are either an input or output of the
amplifier.
Common Emitter
Common emitter is one of the more popular transistor arrangements. In this
circuit the emitter is tied to a voltage common to both the base and emitter
(usually ground). The base becomes the signal input, and the collector
becomes the output.
The common emitter circuit is popular because its well-suited for voltage
amplification, especially at low frequencies. Theyre great for amplifying
audio signals, for example. If you have a small 1.5V peak-to-peak input
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
21 of 28
https://learn.sparkfun.com/tutorials/transistors
signal, you could amplify that to a much higher voltage using a slightly more
complicated circuit, like:
One quirk of the common emitter, though, is that it inverts the input signal
(compare it to the inverter from the last page!).
The common collector doesnt do any voltage amplification (in fact, the
voltage out will be 0.6V lower than the voltage in). For that reason, this
circuit is sometimes called a voltage follower.
This circuit does have great potential as a current amplifier. In addition to
that, the high current gain combined with near unity voltage gain makes this
circuit a great voltage buffer. A voltage buffer prevents a load circuit from
undesirably interfering with the circuit driving it.
For example, if you wanted to deliver 1V to a load, you could go the easy
way and use a voltage divider, or you could use an emitter follower.
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
22 of 28
https://learn.sparkfun.com/tutorials/transistors
As the load gets larger (which, conversely, means the resistance is lower)
the output of the voltage divider circuit drops. But the voltage output of the
emitter follower remains steady, regardless of what the load is. Bigger loads
cant load down an emitter follower, like they can circuits with larger output
impedances.
Common Base
Well talk about common base to provide some closure to this section, but
this is the least popular of the three fundamental configurations. In a
common base amplifier, the emitter is an input and the collector an output.
The base is common to both.
In Summary
These three amplifier configurations are at the heart of many more
complicated transistor amplifiers. They each have applications where they
shine, whether theyre amplifying current, voltage, or buffering.
Voltage Gain
Current Gain
Input Impedance
Output Impedance
High
Low
Low
High
Multistage Amplifiers
We could go on and on about the great variety of transistor amplifiers out
there. Here are a few quick examples to show off what happens when you
combine the single-stage amplifiers above:
Darlington
The Darlington amplifier runs one common collector into another to create a
high current gain amplifier.
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
23 of 28
https://learn.sparkfun.com/tutorials/transistors
Voltage out is about the same as voltage in (minus about 1.2V-1.4V), but
the current gain is the product of two transistor gains. Thats 2, upwards of
1000!
The Darlington pair is a great tool if you need to drive a large load with a
very small input current.
Differential Amplifier
A differential amplifier subtracts two input signals and amplifies that
difference. Its a critical part of feedback circuits, where the input is
compared against the output, to produce a future output.
Heres the foundation of the differential amp:
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
24 of 28
https://learn.sparkfun.com/tutorials/transistors
This circuit is also called a long tailed pair. Its a pair of common-emitter
circuits that are compared against each other to produce a differential
output. Two inputs are applied to the bases of the transistors; the output is
a differential voltage across the two collectors.
Push-Pull Amplifier
A push-pull amplifier is a useful final stage in many multi-stage amplifiers.
Its an energy efficient power amplifier, often used to drive loudspeakers.
The fundamental push-pull amp uses an NPN and PNP transistor, both
configured as common collectors:
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
25 of 28
https://learn.sparkfun.com/tutorials/transistors
The push-pull amp doesnt really amplify voltage (voltage out will be slightly
less than that in), but it does amplify current. Its especially useful in bi-polar
circuits (those with positive and negative supplies), because it can both
push current into the load from the positive supply, and pull current out
and sink it into the negative supply.
If you have a bi-polar supply (or even if you dont), the push-pull is a great
final stage to an amplifier, acting as a buffer for the load.
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
26 of 28
https://learn.sparkfun.com/tutorials/transistors
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
27 of 28
https://learn.sparkfun.com/tutorials/transistors
Then you can move on to: Transistor Biasing Configurations Part 1 and
Part 2, and finally Current Mirrors. Great stuff!
Going Further
Or, if youre itching to learn more about electronics in general, check out
some of these SparkFun tutorials:
Integrated Circuits What do you get when you combine thousands
of transistors and stuff them in a black box? An IC!
Shift Registers Shift registers are one of the most common
integrated circuits around. Learn how you can use a transistor to
blink dozens of LEDs with just a few inputs.
Mini FET Shield Hookup Guide This is a really simple Arduino shield
which uses 8 MOSFETs to control 8 high-current outputs. This is a
good, real-life example of using a transistor as a switch.
Designing PCBs with EAGLE Take your new transistor skills to the
next level. Design them into a PCB! This tutorial explains how to use
a freely available software (Eagle) to design PCBs.
How to Solder If you design a PCB, though, youll need to know
how to solder too. Learn how to through-hole solder in this tutorial.
S H A RE
SparkFun is an online retail store that sells the bits and pieces to make your electronics projects possible. Whether
it's a robot that can cook your breakfast or a GPS cat tracking device, our products and resources are designed to
make the world of electronics more accessible.
In addition to products, SparkFun also offers classes and online tutorials to help educate individuals in the wonderful
world of embedded electronics.
10/21/2014 12:10 AM
Transistors - learn.sparkfun.com
28 of 28
https://learn.sparkfun.com/tutorials/transistors
About Us
About SparkFun
SparkFun Education
Feeds
Jobs
Contact
Help
Customer Service
Shipping
Return Policy
FAQ
Programs
Educator Discount
Hacker-in-Residence Program
Request SparkFun Sponsorship
Tell Us About Your Project
Sell Your Widget on SparkFun
Become a SparkFun Distributor
Community
Forum
SparkFun IRC Channel
Take the SparkFun Quiz
SparkFun Kickstarter Projects
Distributors
SparkFun Electronics / Niwot, Colorado / Customer Service / Site Map / Terms of Service / Privacy Policy
/ Desktop Site
10/21/2014 12:10 AM
1 of 14
STA RT A PROJ E CT
WORK SHOPS
S H OP
E D U BL OG
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic
LEARN
FORUM
RE SOURCE S
DAT A
TU TORI A L S
CL A SSE S
HE L L O, SE L V A N
YOU R A CCOU NT
CA L E ND A R
search...
CON TA CT
JI MB0
Sections
S H A RE
Overview
Overview
Schematics are our map to designing, building, and troubleshooting circuits.
Understanding how to read and follow schematics is an important skill for
any electronics engineer.
This tutorial should turn you into a fully literate schematic reader! Well go
over all of the fundamental schematic symbols:
Comments
View Paginated
Print
Tags
E L E CTRI C A L E N GI N E E RI N G
SK I LL
License
tutorials are CC BY-NC-SA 3.0
Then well talk about how those symbols are connected on schematics to
create a model of a circuit. Well also go over a few tips and tricks to watch
out for.
10/21/2014 12:11 AM
2 of 14
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic
Suggested Reading
Schematic comprehension is a pretty basic electronics skill, but there are a
few things you should know before you read this tutorial. Check out these
tutorials, if they sound like gaps in your growing brain:
What is Electricity?
What is a Circuit?
Voltage, Current, Resistance, and Ohms Law
Resistors
The most fundamental of circuit components and symbols! Resistors on a
schematic are usually represented by a few zig-zag lines, with two
terminals extending outward. Schematics using international symbols may
instead use a featureless rectangle, instead of the squiggles.
Capacitors
There are two commonly used capacitor symbols. One symbol represents a
polarized (usually electrolytic or tantalum) capacitor, and the other is for
non-polarized caps. In each case there are two terminals, running
perpendicularly into plates.
10/21/2014 12:11 AM
3 of 14
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic
The symbol with one curved plate indicates that the capacitor is polarized.
The curved plate represents the cathode of the capacitor, which should be
at a lower voltage than the positive, anode pin. A plus sign might also be
added to the positive pin of the polarized capacitor symbol.
Inductors
Inductors are usually represented by either a series of curved bumps, or
loopy coils. International symbols may just define an inductor as a filled-in
rectangle.
Switches
Switches exist in many different forms. The most basic switch, a singlepole/single-throw (SPST), is two terminals with a half-connected line
representing the actuator (the part that connects the terminals together).
Switches with more than one throw, like the SPDT and SP3T below, add
more landing spots for the the actuator.
Switches with multiple poles, usually have multiple, alike switches with a
dotted line intersecting the middle actuator.
10/21/2014 12:11 AM
4 of 14
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic
Power Sources
Just as there are many options out there for powering your project, there
are a wide variety of power source circuit symbols to help specify the
power source.
DC or AC Voltage Sources
Most of the time when working with electronics, youll be using constant
voltage sources. We can use either of these two symbols to define whether
the source is supplying direct current (DC) or alternating current (AC):
Batteries
Batteries, whether theyre those cylindrical, alkaline AAs or rechargeable
lithium-polymers, usually look like a pair of disproportionate, parallel lines:
More pairs of lines usually indicates more series cells in the battery. Also,
the longer line is usually used to represent the positive terminal, while the
shorter line connects to the negative terminal.
Voltage Nodes
Sometimes on really busy schematics especially you can assign special
symbols to node voltages. You can connect devices to these one-terminal
symbols, and itll be tied directly to 5V, 3.3V, VCC, or GND (ground).
Positive voltage nodes are usually indicated by an arrow pointing up, while
ground nodes usually involve one to three flat lines (or sometimes a
down-pointing arrow or triangle).
10/21/2014 12:11 AM
5 of 14
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic
There are a all sorts of different types of diodes, each of which has a
special riff on the standard diode symbol. Light-emitting diodes (LEDs)
augment the diode symbol with a couple lines pointing away. Photodiodes,
which generate energy from light (basically, tiny solar cells), flip the arrows
around and point them toward the diode.
Other special types of diodes, like Schottkys or zeners, have their own
symbols, with slight variations on the bar part of the symbol.
Transistors
Transistors, whether theyre BJTs or MOSFETs, can exist in two
configurations: positively doped, or negatively doped. So for each of these
types of transistor, there are at least two ways to draw it.
10/21/2014 12:11 AM
6 of 14
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic
The collector (C) and emitter (E) pins are both in-line with each other, but
the emitter should always have an arrow on it. If the arrow is pointing
inward, its a PNP, and, if the arrow is pointing outward, its an NPN. A
mnemonic for remembering which is which is NPN: not pointing in.
The arrow in the middle of the symbol (called the bulk) defines whether the
MOSFET is n-channel or p-channel. If the arrow is pointing in means its a
n-channel MOSFET, and if its pointing out its a p-channel. Remember: n is
in (kind of the opposite of the NPN mnemonic).
Adding a bubble to the output negates the function, creating NANDs, NORs,
and XNORs:
They may have more than two inputs, but the shapes should remain the
same (well, maybe a bit bigger), and there should still only be one output.
10/21/2014 12:11 AM
7 of 14
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic
Integrated Circuits
Integrated circuits accomplish such unique tasks, and are so numerous,
that they dont really get a unique circuit symbol. Usually, an integrated
circuit is represented by a rectangle, with pins extending out of the sides.
Each pin should be labeled with both a number, and a function.
Often, there will be two op amps built into one IC package requiring only
one pin for power and one for ground, which is why the one on the right
only has three pins.
Simple voltage regulators are usually three-terminal components with input,
output and ground (or adjust) pins. These usually take the shape of a
rectangle with pins on the left (input), right (output) and bottom
(ground/adjust).
10/21/2014 12:11 AM
8 of 14
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic
Miscellany
Crystals and Resonators
Crystals or resonators are usually a critical part of microcontroller circuits.
They help provide a clock signal. Crystal symbols usually have two
terminals, while resonators, which add two capacitors to the crystal, usually
have three terminals.
10/21/2014 12:11 AM
9 of 14
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic
No doubt, there are many circuit symbols left off this list, but those above
should have you 90% literate in schematic reading. In general, symbols
should share a fair amount in common with the real-life components they
model. In addition to the symbol, each component on a schematic should
have a unique name and value, which further helps to identify it.
10/21/2014 12:11 AM
10 of 14
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic
Capacitors
Inductors
Switches
D
Q
U
Diodes
Transistors
Integrated Circuits
Reading Schematics
Understanding which components are which on a schematic is more than
half the battle towards comprehending it. Now all that remains is identifying
how all of the symbols are connected together.
10/21/2014 12:11 AM
11 of 14
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic
Nodes give us a way to say that wires crossing this junction are
connected. The absences of a node at a junction means two separate
wires are just passing by, not forming any sort of connection. (When
designing schematics, its usually good practice to avoid these
non-connected overlaps wherever possible, but sometimes its
unavoidable).
Net Names
Sometimes, to make schematics more legible, well give a net a name and
label it, rather than routing a wire all over the schematic. Nets with the same
name are assumed to be connected, even though there isnt a visible wire
10/21/2014 12:11 AM
12 of 14
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic
connecting them. Names can either be written directly on top of the net, or
they can be tags, hanging off the wire.
Each net with the same name is connected, as in this schematic for an
FT231X Breakout Board. Names and labels help keep schematics from
getting too chaotic (imagine if all those nets were actually connected with
wires).
Nets are usually given a name that specifically states the purpose of
signals on that wire. For example, power nets might be labeled VCC or
5V, while serial communication nets might be labeled RX or TX.
If the drawer of a schematic is really nice (like the engineer who designed
this schematic for the RedBoard), they may separate sections of a
schematic into logical, labeled blocks.
10/21/2014 12:11 AM
13 of 14
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic
Like-named voltage nodes like GND, 5V, and 3.3V are all connected
to their counterparts, even if there arent wires between them.
The ground voltage node is especially useful, because so many
components need a connection to ground.
10/21/2014 12:11 AM
14 of 14
https://learn.sparkfun.com/tutorials/how-to-read-a-schematic
S H A RE
SparkFun is an online retail store that sells the bits and pieces to make your electronics projects possible. Whether
it's a robot that can cook your breakfast or a GPS cat tracking device, our products and resources are designed to
make the world of electronics more accessible.
In addition to products, SparkFun also offers classes and online tutorials to help educate individuals in the wonderful
world of embedded electronics.
About Us
About SparkFun
SparkFun Education
Feeds
Jobs
Contact
Help
Customer Service
Shipping
Return Policy
FAQ
Programs
Educator Discount
Hacker-in-Residence Program
Request SparkFun Sponsorship
Tell Us About Your Project
Sell Your Widget on SparkFun
Become a SparkFun Distributor
Community
Forum
SparkFun IRC Channel
Take the SparkFun Quiz
SparkFun Kickstarter Projects
Distributors
SparkFun Electronics / Niwot, Colorado / Customer Service / Site Map / Terms of Service / Privacy Policy
/ Desktop Site
10/21/2014 12:11 AM
1 of 7
https://learn.sparkfun.com/tutorials/analog-vs-digital
STA RT A PROJ E CT
WORK SHOPS
S H OP
E D U BL OG
LEARN
FORUM
RE SOURCE S
DAT A
TU TORI A L S
CL A SSE S
HE L L O, SE L V A N
YOU R A CCOU NT
CA L E ND A R
search...
CON TA CT
JI MB0
Sections
S H A RE
Overview
Overview
We live in an analog world. There are an infinite amount of colors to paint
an object (even if the difference is indiscernible to our eye), there are an
infinite number of tones we can hear, and there are an infinite number of
smells we can smell. The common theme among all of these analog signals
is their infinite possibilities.
Digital signals and objects deal in the realm of the discrete or finite,
meaning there is a limited set of values they can be. That could mean just
two total possible values, 255, 4,294,967,296, or anything as long as its
not (infinity).
Analog Signals
Digital Signals
Analog and Digital Circuits
Resources and Going Further
Comments
View Paginated
Print
Tags
CON C E PTS
E L E CTRI C A L E N GI N E E RI N G
License
tutorials are CC BY-NC-SA 3.0
10/21/2014 12:12 AM
2 of 7
https://learn.sparkfun.com/tutorials/analog-vs-digital
and components.
Suggested Reading
The concepts of analog and digital stand on their own, and dont require a
lot of previous electronics knowledge. That said, if you havent already, you
should peek through some of these tutorials:
Voltage, Current, Resistance and Ohms Law
What is a Circuit
And some mathematics concepts: reading graphs, and understanding
the difference between finite and infinite sets.
Analog Signals
Define: Signals
Before going too much further, we should talk a bit about what a signal
actually is, electronic signals specifically (as opposed to traffic signals,
albums by the ultimate power-trio, or a general means for communication).
The signals were talking about are time-varying quantities which convey
some sort of information. In electrical engineering the quantity thats
time-varying is usually voltage (if not that, then usually current). So when
we talk about signals, just think of them as a voltage thats changing over
time.
Signals are passed between devices in order to send and receive
information, which might be video, audio, or some sort of encoded data.
Usually the signals are transmitted through wires, but they could also pass
through the air via radio frequency (RF) waves. Audio signals, for example
might be transferred between your computers audio card and speakers,
while data signals might be passed through the air between a tablet and a
WiFi router.
10/21/2014 12:12 AM
3 of 7
https://learn.sparkfun.com/tutorials/analog-vs-digital
precise values).
Digital Signals
Digital signals must have a finite set of possible values. The number of
values in the set can be anywhere between two and a-very-large-numberthats-not-infinity. Most commonly digital signals will be one of two values
like either 0V or 5V. Timing graphs of these signals look like square waves.
10/21/2014 12:12 AM
4 of 7
https://learn.sparkfun.com/tutorials/analog-vs-digital
Thats the big difference between analog and digital waves. Analog waves
are smooth and continuous, digital waves are stepping, square, and
discrete.
Serial peripheral interface (SPI) uses many digital signals to transmit data
between devices.
10/21/2014 12:12 AM
5 of 7
https://learn.sparkfun.com/tutorials/analog-vs-digital
Digital Electronics
Digital circuits operate using digital, discrete signals. These circuits are
usually made of a combination of transistors and logic gates and, at higher
levels, microcontrollers or other computing chips. Most processors, whether
theyre big beefy processors in your computer, or tiny little microcontrollers,
operate in the digital realm.
10/21/2014 12:12 AM
6 of 7
https://learn.sparkfun.com/tutorials/analog-vs-digital
Its not rare to see a mixture of analog and digital components in a circuit.
Although microcontrollers are usually digital beasts, they often have internal
circuitry which enables them to interface with analog circuitry (analogto-digital converters, pulse-width modulation, and digital-to-analog
converters. An analog-to-digital converter (ADC) allows a microcontroller to
connect to an analog sensor (like photocells or temperature sensors), to
read in an analog voltage. The less common digital-to-analog converter
allows a microcontroller to produce analog voltages, which is handy when it
needs to make sound.
S H A RE
SparkFun is an online retail store that sells the bits and pieces to make your electronics projects possible. Whether
it's a robot that can cook your breakfast or a GPS cat tracking device, our products and resources are designed to
make the world of electronics more accessible.
In addition to products, SparkFun also offers classes and online tutorials to help educate individuals in the wonderful
world of embedded electronics.
About Us
About SparkFun
SparkFun Education
Feeds
Jobs
Contact
Help
Customer Service
Shipping
Return Policy
FAQ
10/21/2014 12:12 AM
7 of 7
Programs
Educator Discount
Hacker-in-Residence Program
Request SparkFun Sponsorship
Tell Us About Your Project
Sell Your Widget on SparkFun
Become a SparkFun Distributor
https://learn.sparkfun.com/tutorials/analog-vs-digital
Community
Forum
SparkFun IRC Channel
Take the SparkFun Quiz
SparkFun Kickstarter Projects
Distributors
SparkFun Electronics / Niwot, Colorado / Customer Service / Site Map / Terms of Service / Privacy Policy
/ Desktop Site
10/21/2014 12:12 AM
1 of 16
STA RT A PROJ E CT
WORK SHOPS
S H OP
E D U BL OG
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
LEARN
FORUM
RE SOURCE S
DAT A
TU TORI A L S
CL A SSE S
HE L L O, SE L V A N
YOU R A CCOU NT
CA L E ND A R
search...
CON TA CT
JI MB0
Sections
S H A RE
Introduction
Introduction
Have you ever found yourself troubleshooting a circuit, needing more
information than a simple multimeter can provide? If you need to uncover
information like frequency, noise, amplitude, or any other characteristic that
might change over time, you need an oscilloscope!
Basics of O-Scopes
Oscilloscope Lexicon
Anatomy of An O-Scope
Using an Oscilloscope
Resources and Going Further
Comments
View Paginated
Print
Tags
E L E CTRI C A L E N GI N E E RI N G
O-scopes are an important tool in any electrical engineers lab. They allow
you to see electric signals as they vary over time, which can be critical in
diagnosing why your 555 timer circuit isnt blinking correctly, or why your
noise maker isnt reaching maximum annoyance levels.
License
SK I LL
TOOL S
10/21/2014 12:12 AM
2 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
Suggested Reading
Before continuing with this tutorial, you should be familiar with the concepts
below. Check out the tutorial if you want to learn more!
Voltage, Current, Resistance and Ohms Law
How to Use a Multimeter
Analog vs. Digital
Alternating Current (AC) vs. Direct Current (DC)
Basics of O-Scopes
The main purpose of an oscilloscope is to graph an electrical signal as it
varies over time. Most scopes produce a two-dimensional graph with time
on the x-axis and voltage on the y-axis.
10/21/2014 12:12 AM
3 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
Oscilloscope Lexicon
Learning how to use an oscilloscope means being introduced to an entire
lexicon of terms. On this page well introduce some of the important o-scope
buzzwords you should be familiar with before turning one on.
10/21/2014 12:12 AM
4 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
Value
100 MHz
Sampling Rate
Rise Time
Channel Count
Maximum Input Voltage
Resolution
2
400V
8-bit
Vertical sensitivity
Time base
Input Impedance
2mV/div - 5V/div
2ns/div - 50s/div
1 M 3% || 16pF 3pF
10/21/2014 12:12 AM
5 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
Anatomy of An O-Scope
While no scopes are created exactly equal, they should all share a few
similarities that make them function similarly. On this page well discuss a
few of the more common systems of an oscilloscope: the display,
horizontal, vertical, trigger, and inputs.
The Display
An oscilloscope isnt any good unless it can display the information youre
trying to test, which makes the display one of the more important sections
on the scope.
10/21/2014 12:12 AM
6 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
Vertical System
The vertical section of the scope controls the voltage scale on the
display. There are traditionally two knobs in this section, which allow you to
individually control the vertical position and volts/div.
The more critical volts per division knob allows you to set the vertical
scale on the screen. Rotating the knob clockwise will decrease the scale,
and counter-clockwise will increase. A smaller scale fewer volts per
division on the screen means youre more zoomed in to the waveform.
The display on the GA1102, for example, has 8 vertical divisions, and the
volts/div knob can select a scale between 2mV/div and 5V/div. So, zoomed
all the way in to 2mV/div, the display can show waveform that is 16mV from
top to bottom. Fully zoomed out, the scope can show a waveform ranging
over 40V. (The probe, as well discuss below, can further increase this
range.)
The position knob controls the vertical offset of the waveform on the
screen. Rotate the knob clockwise, and the wave will move down, counterclockwise will move it up the display. You can use the position knob to
offset part of a waveform off the screen.
Using both the position and volts/div knobs in conjunction, you can zoom in
on just a tiny part of the waveform that you care about the most. If you had
a 5V square wave, but only cared about how much it was ringing on the
edges, you could zoom in on the rising edge using both knobs.
10/21/2014 12:12 AM
7 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
Horizontal System
The horizontal section of the scope controls the time scale on the screen.
Like the vertical system, the horizontal control gives you two knobs:
position and seconds/div.
Or you can zoom way in, and use the position knob to show just a tiny part
of a wave:
10/21/2014 12:12 AM
8 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
Trigger System
The trigger section is devoted to stabilizing and focusing the oscilloscope.
The trigger tells the scope what parts of the signal to trigger on and start
measuring. If your waveform is periodic, the trigger can be manipulated to
keep the display static and unflinching. A poorly triggered wave will produce
seizure-inducing sweeping waves like this:
10/21/2014 12:12 AM
9 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
A series of buttons and screen menus make up the rest of the trigger
system. Their main purpose is to select the trigger source and mode. There
are a variety of trigger types, which manipulate how the trigger is
activated:
An edge trigger is the most basic form of the trigger. It will key the
oscilloscope to start measuring when the signal voltage passes a
certain level. An edge trigger can be set to catch on a rising or falling
edge (or both).
A pulse trigger tells the scope to key in on a specified pulse of
voltage. You can specify the duration and direction of the pulse. For
example, it can be a tiny blip of 0V -> 5V -> 0V, or it can be a
seconds-long dip from 5V to 0V, back to 5V.
A slope trigger can be set to trigger the scope on a positive or
negative slope over a specified amount of time.
More complicated triggers exist to focus on standardized waveforms
that carry video data, like NTSC or PAL. These waves use a unique
synchronizing pattern at the beginning of every frame.
You can also usually select a triggering mode, which, in effect, tells the
scope how strongly you feel about your trigger. In automatic trigger mode,
the scope can attempt to draw your waveform even if it doesnt trigger.
Normal mode will only draw your wave if it sees the specified trigger. And
single mode looks for your specified trigger, when it sees it it will draw
your wave then stop.
The Probes
An oscilloscope is only good if you can actually connect it to a signal, and
for that you need probes. Probes are single-input devices that route a
signal from your circuit to the scope. They have a sharp tip which probes
into a point on your circuit. The tip can also be equipped with hooks,
tweezers or clips to make latching onto a circuit easier. Every probe also
includes a ground clip, which should be secured safely to a common
ground point on the circuit under test.
While probes may seem like simple devices that just latch onto your circuit
and carry a signal to the scope, theres actually a lot that goes into probe
design and selection.
Optimally, what a probe needs to be is invisible it shouldnt have any
10/21/2014 12:12 AM
10 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
effect on your signal under test. Unfortunately, long wires all have intrinsic
inductance, capacitance, and resistance, so, no matter what, theyll affect
scope readings (especially at high frequencies).
There are a variety of probe types out there, the most common of which is
the passive probe, included with most scopes. Most of the stock passive
probes are attenuated. Attenuating probes have a large resistance
intentionally built-in and shunted by a small capacitor, which helps to
minimize the effect that a long cable might have on loading your circuit. In
series with the input impedance of a scope, this attenuated probe will
create a voltage divider between your signal and the scope input.
Attenuated probes are great for improving accuracy at high frequencies, but
they will also reduce the amplitude of your signal. If youre trying to
measure a very low-voltage signal, you may have to go with a 1X probe.
You may also need to select a setting on your scope to tell it youre using
an attenuated probe, although many scopes can automatically detect this.
Beyond the passive attenuated probe, there are a variety of other probes
out there. Active probes are powered probes (they require a separate
power source), which can amplify your signal or even pre-process it before
it get to your scope. While most probes are designed to measure voltage,
there are probes designed to measure AC or DC current. Current probes
are unique because they often clamp around a wire, never actually making
contact with the circuit.
10/21/2014 12:12 AM
11 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
Using an Oscilloscope
The infinite variety of signals out there means youll never operate an
oscilloscope the same way twice. But there are some steps you can count
on performing just about every time you test a circuit. On this page well
show an example signal, and the steps required to measure it.
The screen should also show previously set values for time and volts per
div. Ignoring those scales for now, make these adjustments to put your
scope into a standard setup:
Turn channel 1 on and channel 2 off.
Set channel 1 to DC coupling.
Set the trigger source to channel 1 no external source or alternate
channel triggering.
Set the trigger type to rising edge, and the trigger mode to auto (as
opposed to single).
Make sure the scope probe attenuation on your scope matches the
setting on your probe (e.g. 1X, 10X).
For help making these adjustments, consult your scopes users manual (as
an example, heres the GA1102CAL manual).
10/21/2014 12:12 AM
12 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
As soon as you connect both parts of the probe, you should see a signal
begin to dance around your screen. Try fiddling with the horizontal and
vertical system knobs to maneuver the waveform around the screen.
Rotating the scale knobs clockwise will zoom into your waveform, and
counter-clockwise zooms out. You can also use the position knob to further
locate your waveform.
If your wave is still unstable, try rotating the trigger position knob. Make
sure the trigger isnt higher than the tallest peak of your waveform. By
default, the trigger type should be set to edge, which is usually a good
choice for square waves like this.
Try fiddling with those knobs enough to display a single period of your wave
on the screen.
Or try zooming way out on the time scale to show dozens of squares.
10/21/2014 12:12 AM
13 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
have a recessed screw head, which you can rotate to adjust the shunt
capacitance of the probe.
Try using a small screwdriver to rotate this trimmer, and look at what
happens to the waveform.
Adjust the trimming cap on the probe handle until you have a
straight-edged square wave. Compensation is only necessary if your
probe is attenuated (e.g. 10X), in which case its critical (especially if you
dont know who used your scope last!).
10/21/2014 12:12 AM
14 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
Once your signal is on the screen, you may want to begin by adjusting the
horizontal and vertical scales into at least the ballpark of your signal. If
youre probing a 5V 1kHz square wave, youll probably want the volts/div
somewhere around 0.5-1V, and set the seconds/div to around 100s (14
divisions would show about one and a half periods).
If part of your wave is rising or falling of the screen, you can adjust the
vertical position to move it up or down. If your signal is purely DC, you
may want to adjust the 0V level near the bottom of your display.
Once you have the scales ballparked, your waveform may need some
triggering. Edge triggering where the scope tries to begin its scan when
it sees voltage rise (or fall) past a set point is the easiest type to use.
Using an edge trigger, try to set the trigger level to a point on your
waveform that only sees a rising edge once per period.
Now just scale, position, trigger and repeat until youre looking at exactly
what you need.
10/21/2014 12:12 AM
15 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
Using the scopes measure tools to find VPP, VMax, frequency, period, and
duty cycle.
A third measuring tool many scopes provide is cursors. Cursors are
on-screen, movable markers which can be placed on either the time or
voltage axis. Cursors usually come in pairs, so you can measure the
difference between one and the other.
10/21/2014 12:12 AM
16 of 16
https://learn.sparkfun.com/tutorials/how-to-use-an-oscilloscope
Going Further
Now that youre a practiced oscilloscop-er, what circuit are you going to be
debugging? Need some inspiration? Here are some related tutorials wed
recommend checking out next!
PCB Design with EAGLE If youre at a point where you need to
troubleshoot circuits at the signal level, maybe youre ready to step
into designing PCBs. Our EAGLE series of tutorials how to use the
freely available software to design your own circuit boards.
Recreating Classic Electronics Kits If youre in search of a circuit
to troubleshoot with a scope, why not make your own version of
50-in-1 electronics kit?
Pulse-Width Modulation PWM signals are the foundation behind
dimming LEDs and driving servo motors. Learn about these signal
types and then scope them with your new skills!
S H A RE
SparkFun is an online retail store that sells the bits and pieces to make your electronics projects possible. Whether
it's a robot that can cook your breakfast or a GPS cat tracking device, our products and resources are designed to
make the world of electronics more accessible.
In addition to products, SparkFun also offers classes and online tutorials to help educate individuals in the wonderful
world of embedded electronics.
About Us
About SparkFun
SparkFun Education
Feeds
Jobs
Contact
Help
Customer Service
Shipping
Return Policy
FAQ
Programs
Educator Discount
Hacker-in-Residence Program
Request SparkFun Sponsorship
Tell Us About Your Project
Sell Your Widget on SparkFun
Become a SparkFun Distributor
Community
Forum
SparkFun IRC Channel
Take the SparkFun Quiz
SparkFun Kickstarter Projects
Distributors
SparkFun Electronics / Niwot, Colorado / Customer Service / Site Map / Terms of Service / Privacy Policy
/ Desktop Site
10/21/2014 12:12 AM
1 of 13
STA RT A PROJ E CT
WORK SHOPS
S H OP
E D U BL OG
https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds
LEARN
FORUM
RE SOURCE S
DAT A
TU TORI A L S
CL A SSE S
HE L L O, SE L V A N
YOU R A CCOU NT
CA L E ND A R
search...
CON TA CT
NPO O L E
Sections
S H A RE
The Basics
The Basics
LEDs are all around us: In our phones, our cars and even our homes. Any
time something electronic lights up, theres a good chance that an LED is
behind it. They come in a huge variety of sizes, shapes, and colors, but no
matter what they look like they have one thing in common: theyre the bacon
of electronics. Theyre widely purported to make any project better and
theyre often added to unlikely things (to everyones delight).
Unlike bacon, however, theyre no good once youve cooked them. This
guide will help you avoid any accidental LED barbecues! First things first,
though. What exactly is this LED thing everyones talking about?
LEDs (thats ell-ee-dees) are a particular type of diode that convert
electrical energy into light. In fact, LED stands for Light Emitting Diode. (It
does what it says on the tin!) And this is reflected in the similarity between
the diode and LED schematic symbols:
Comments
View Paginated
Print
Tags
COMPON E N TS
E L E CTRI C A L E N GI N E E RI N G
TE CH N OL OGY
License
tutorials are CC BY-NC-SA 3.0
In short, LEDs are like tiny lightbulbs. However, LEDs require a lot less
power to light up by comparison. Theyre also more energy efficient, so they
dont tend to get hot like conventional lightbulbs do (unless youre really
10/21/2014 12:12 AM
2 of 13
https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds
pumping power into them). This makes them ideal for mobile devices and
other low-power applications. Dont count them out of the high-power game,
though. High-intensity LEDs have found their way into accent lighting,
spotlights and even automotive headlights!
Are you getting the craving yet? The craving to put LEDs on everything?
Good, stick with us and well show you how!
Suggested Reading
Here are some other topics that will be discussed in this tutorial. If you are
unfamiliar with any of them, please have a look at the respective tutorial
before you go any further.
What is Electricty?
What is a Circuit?
Voltage, Current, Resistance, and Ohms Law
Metric Prefixes and SI Uints
Electric Power
Polarity
Diodes
So youve come to the sensible conclusion that you need to put LEDs on
everything. We thought youd come around. Lets go over the rule book:
1) Polarity Matters
In electronics, polarity indicates whether a circuit component is symmetric
or not. LEDs, being diodes, will only allow current to flow in one direction.
And when theres no current-flow, theres no light. Luckily, this also means
that you cant break an LED by plugging it in backwards. Rather, it just wont
work.
10/21/2014 12:12 AM
3 of 13
https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds
The positive side of the LED is called the anode and is marked by having
a longer lead, or leg. The other, negative side of the LED is called the
cathode. Current flows from the anode to the cathode and never the
opposite direction. A reversed LED can keep an entire circuit from
operating properly by blocking current flow. So dont freak out if adding an
LED breaks your circuit. Try flipping it around.
10/21/2014 12:12 AM
4 of 13
https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds
A good resistor value for most LEDs is 330 Ohms. You can use the
information from the last section to help you determine the exact value you
need, but this is LEDs without math So, start by popping a 330 Ohm
resistor into the above circuit and see what happens.
The interesting thing about resistors is that theyll dissipate extra power as
heat, so if you have a resistor thats getting warm, you probably need to go
with a smaller resistance. If your resistor is too small, however, you run the
risk of burning out the LED! Given that you have a handful of LEDs and
resistors to play with, heres a flow chart to help you design your LED
circuit by trial and error:
10/21/2014 12:12 AM
5 of 13
https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds
Of course, if youre not getting great results with the trial and error
approach, you can always get out your calculator and math it up. Dont
10/21/2014 12:12 AM
6 of 13
https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds
worry, its not hard to calculate the best resistor value for your circuit. But
before you can figure out the optimal resistor value, youll need to find the
optimal current for your LED. For that well need to report to the
datasheet
LED Current
Starting at the top and making our way down, the first thing we encounter is
this charming table:
LED Voltage
Lets see what other kinds of tables theyve put in here Ah!
This is a useful little table! The first row tells us what the forward voltage
drop across the LED will be. Forward voltage is a term that will come up a
lot when working with LEDs. This number will help you decide how much
voltage your circuit will need to supply to the LED. If you have more than
one LED connected to a single power source, these numbers are really
important because the forward voltage of all of the LEDs added together
10/21/2014 12:12 AM
7 of 13
https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds
cant exceed the supply voltage. Well talk about this more in-depth later in
the delving deeper section of this tutorial.
LED Wavelength
The second row on this table tells us the wavelength of the light.
Wavelength is basically a very precise way of explaining what color the
light is. There may be some variation in this number so the table gives us a
minimum and a maximum. In this case its 620 to 625nm, which is just at the
lower red end of the spectrum (620 to 750nm). Again, well go over
wavelength in more detail in the delving deeper section.
LED Brightness
The last row (labeled Luminous Intensity) is a measure of how bright the
LED can get. The unit mcd, or millicandela, is a standard unit for
measuring the intensity of a light source. This LED has an maximum
intensity of 200 mcd, which means its just bright enough to get your
attention but not quite flashlight bright. At 200 mcd, this LED would make a
good indicator.
Viewing Angle
Next, weve got this fan-shaped graph that represents the viewing angle of
the LED. Different styles of LEDs will incorporate lenses and reflectors to
either concentrate most of the light in one place or spread it as widely as
possible. Some LEDs are like floodlights that pump out photons in every
direction; Others are so directional that you cant tell theyre on unless
youre looking straight at them. To read the graph, imagine the LED is
standing upright underneath it. The spokes on the graph represent the
viewing angle. The circular lines represent the intensity by percent of
maximum intensity. This LED has a pretty tight viewing angle. You can see
that looking straight down at the LED is when its at its brightest, because
at 0 degrees the blue lines intersect with the outermost circle. To get the
50% viewing angle, the angle at which the light is half as intense, follow the
50% circle around the graph until it intersects the blue line, then follow the
nearest spoke out to read the angle. For this LED, the 50% viewing angle is
about 20 degrees.
Dimensions
10/21/2014 12:12 AM
8 of 13
https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds
Types of LEDs
Congratulations, you know the basics! Maybe youve even gotten your
hands on a few LEDs and started lighting stuff up, thats awesome! How
would you like to step up your blinky game? Lets talk about makin' it fancy.
Heres the cast of characters:
RGB (Red-Green-Blue) LEDs are actually three LEDs in one! But that
doesnt mean it can only make three colors. Because red, green, and blue
are the additive primary colors, you can control the intensity of each to
create every color of the rainbow. Most RGB LEDs have four pins: one for
each color and a common pin. On some, the common pin is the anode, and
on others, its the cathode.
10/21/2014 12:12 AM
9 of 13
https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds
Some LEDs are smarter than others. Take the flashing LED, for example.
Inside these LEDs, theres actually an integrated circuit that allows the LED
to blink without any outside controller. Simply power it up and watch it go!
These are great for projects where you want a little bit more action but dont
have room for control circuitry. There are even RGB flashing LEDs that
cycle through thousands of colors!
SMD LEDs arent so much a specific kind of LED but a package type. As
electronics get smaller and smaller, manufacturers have figured out how to
cram more components in a smaller space. SMD (Surface Mount Device)
parts are tiny versions of their standard counterparts. SMD LEDs come in
several sizes, from fairly large to smaller than a grain of rice! Because
theyre so small, and have pads instead of legs, theyre not as easy to work
with, but if youre tight on space they might be just what the doctor ordered.
High-Power LEDs, from manufacturers like Luxeon and CREE, are crazy
bright. Generally, an LED is considered High-Power if it can dissipate 1
Watt or more of power. These are the fancy LEDs that you find in really
nice flashlights. Arrays of them can even be built for spotlights and
automobile headlights. Because theres so much power being pumped
through the LED, these often require heatsinks. A heatsink is basically a
chunk of heat conducting metal with lots of surface area whose job is to
transfer as much waste heat into the surrounding air as possible.
High-Power LEDs can generate so much waste heat that theyll damage
themselves without proper cooling. Dont let the term waste heat fool you,
though, these devices are still incredibly efficient compared to conventional
bulbs.
10/21/2014 12:12 AM
10 of 13
https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds
There are even LEDs that emit light outside of the normal visible spectrum.
You probably use Infrared LEDs every day, for instance. Theyre used in
things like TV remotes to send small pieces of information in the form of
invisible light! On the opposite end of the spectrum you can also get
Ultraviolet LEDs. Ultraviolet LEDs will make certain materials fluoresce, just
like a blacklight! Theyre also used for disinfecting surfaces, because many
bacteria are sensitive to UV radiation.
With fancy LEDs like these at your disposal, theres no excuse for leaving
anything un-illuminated. However, if your thirst for LED knowledge hasnt
been slaked, then read on, and well get into the nitty-gritty on LEDs, color,
and luminous intensity!
Delving Deeper
So youve graduated from LEDs 101 and you want more? Oh, dont worry,
weve got more. Lets start with the science behind what makes LEDs
tick err blink. Weve already mentioned that LEDs are a special kind of
diode, but lets delve a little deeper into exactly what that means:
What we call an LED is really the LED and the packaging together, but the
LED itself is actually tiny! Its a chip of semiconductor material thats doped
with impurities which creates a boundary for charge carriers. When current
flows into the semi-conductor, it jumps from one side of this boundary to the
other, releasing energy in the process. In most diodes that energy leaves
as heat, but in LEDs that energy is dissipated as light!
The wavelength of light, and therefore the color, depends on the type of
semiconductor material used to make the diode. Thats because the energy
band structure of semiconductors differs between materials, so photons are
emitted with differing frequencies. Heres a table of common LED
semiconductors by frequency:
10/21/2014 12:12 AM
11 of 13
https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds
10/21/2014 12:12 AM
12 of 13
https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds
Oh, I also promised that wed talk about the concept of Forward Voltage
Drop. Remember when we were looking at the datasheet and I mentioned
that the Forward Voltage of all of your LEDs added together cant exceed
your system voltage? This is because every component in your circuit has
to share the voltage, and the amount of voltage that every part uses
together will always equal the amount thats available. This is called
Kirchhoffs Voltage Law. So if you have a 5V power supply and each of your
LEDs have a forward voltage drop of 2.4V then you cant power more than
two at a time.
Kirchhoffs Laws also come in handy when you want to approximate the
voltage across a given part based on the Forward Voltage of other parts.
For instance, in the example I just gave theres a 5V supply and 2 LEDs
with a 2.4V Forward Voltage Drop each. Of course we would want to
include a current limiting resistor, right? How would you find out the voltage
across that resistor? Its easy:
10/21/2014 12:12 AM
13 of 13
https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds
S H A RE
SparkFun is an online retail store that sells the bits and pieces to make your electronics projects possible. Whether
it's a robot that can cook your breakfast or a GPS cat tracking device, our products and resources are designed to
make the world of electronics more accessible.
In addition to products, SparkFun also offers classes and online tutorials to help educate individuals in the wonderful
world of embedded electronics.
About Us
About SparkFun
SparkFun Education
Feeds
Jobs
Contact
Help
Customer Service
Shipping
Return Policy
FAQ
Programs
Educator Discount
Hacker-in-Residence Program
Request SparkFun Sponsorship
Tell Us About Your Project
Sell Your Widget on SparkFun
Become a SparkFun Distributor
Community
Forum
SparkFun IRC Channel
Take the SparkFun Quiz
SparkFun Kickstarter Projects
Distributors
SparkFun Electronics / Niwot, Colorado / Customer Service / Site Map / Terms of Service / Privacy Policy
/ Desktop Site
10/21/2014 12:12 AM
1 of 6
STA RT A PROJ E CT
WORK SHOPS
S H OP
E D U BL OG
https://learn.sparkfun.com/tutorials/metric-prefixes-and-si-units
LEARN
FORUM
RE SOURCE S
DAT A
TU TORI A L S
CL A SSE S
HE L L O, SE L V A N
YOU R A CCOU NT
CA L E ND A R
search...
CON TA CT
JO R D A ND E E
Sections
S H A RE
Overview
Overview
Metric Prefixes are incredibly useful for describing quantities of the
International System of Units (SI) in a more succinct manner.
When exploring the world of electronics, these units of measurement are
very important and allow people from all over the world to communicate and
share their work and discoveries. Some common units used in electronics
include voltage for electrical potential difference, ampere for electrical
current, watts for power, farad for capacitance, henrys for inductance, and
ohms for resistance.
SI Units
The Prefixes
Conversion
Bits and Bytes
Practice
This tutorial will not only go over some of the most commonly used units in
electronics but will also teach you the metric prefixes that help describe all
of these base units in quantities ranging from the insanely large to the
incredibly small.
Practice Answers
Suggested Reading
Comments
If you would like to know more about the components that use the units and
prefixes described in this tutorial, check out some of these related tutorials.
View Paginated
Going Further
Tags
CON C E PTS
Binary
SI Units
Weve been measuring stuff for millennia, and our units used for those
measures have been evolving since then. There are now dozens of units to
describe physical quantities. For example, length can be measured by the
foot, meter, fathom, chain, parsec, league, and so on. In order to better
communicate measurements, we needed a standardized system of units,
which every scientist and measurer could use to share their findings. This
standardized system has come to be called the <epic voice> International
System of Units </epic voice>, abbreviated SI.
E L E CTRI C A L E N GI N E E RI N G
PH Y SI CS
License
tutorials are CC BY-NC-SA 3.0
Physical SI Units
10/21/2014 12:15 AM
2 of 6
Quantity
Time
Length
https://learn.sparkfun.com/tutorials/metric-prefixes-and-si-units
Mass
gram
Temperature kelvin
Force
newton
g
K
N
While we can still use units like feet or miles for distance (instead of
meters), liters to describe volume (instead of m3), and Fahrenheit or Celsius
to describe temperature (instead of K), the units above are a
standardized way for every scientist to share their measurements. Using
the units above means everyone is speaking the same language.
watt
joule
coulomb
W
J
C
Resistance
Capacitance
ohm
farad
Inductance
Frequency
henry
hertz
H
Hz
Now that we know the units, lets look at how they can be augmented with
prefixes to make them even more usable!
The Prefixes
When first learning about metric prefixes, chances are you were taught
these six prefixes first:
Prefix (Symbol)
Power
Numeric Representation
kilo (k)
hecto (h)
deka (da)
103
102
101
1,000
100
10
no prefix
deci (d)
centi (c)
100
10-1
10-2
1 unit
0.1
0.01
milli (m)
10-3
0.001
These are what well consider the standard six prefixes taught in most High
School science courses. You may have even learned a fun mnemonic to go
along with these such as Kangaroos Have Dirty Underwear During Cold
Months. However, as youll soon see, when learning about electronics and
computer science, the range of prefixes well exceeds the standard six.
While these prefixes cover a rang of 10-3 to 103, many electronic values
can have a much larger range.
10/21/2014 12:15 AM
3 of 6
https://learn.sparkfun.com/tutorials/metric-prefixes-and-si-units
Power
Numeric Representation
yotta (Y)
zetta (Z)
1024
1021
1 septillion
1 sextillion
exa (E)
peta (P)
tera (T)
1018
1015
1012
1 quintillion
1 quadrillion
1 trillion
giga (G)
mega (M)
kilo (k)
109
106
103
1 billion
1 million
1 thousand
no prefix
100
1 unit
Power
100
Numeric Representation
1 unit
milli (m)
micro ()
nano (n)
10-3
10-6
10-9
1 thousandth
1 millionth
1 billionth
pico (p)
femto (f)
10-12
10-15
1 trillionth
1 quadrillionth
atto (a)
zepto (z)
yocto (y)
10-18
10-21
10-24
1 quintillionth
1 sextillionth
1 septillionth
Conversion
The beautiful thing about these metric prefixes is that, once you get the
hang of conversion between a few of them, translating that ability to all the
other prefixes is easy.
As a first simple example, lets translate 1 Ampere (A) into smaller values. A
milliampere is 1 thousandth of the unit Ampere hence 1 Ampere is equal to
1000 milliamperes. Going further, 1 milliampere is equivalent to 1000
microamperes and so on. Going in the opposite direction, 1 Ampere is .001
Kiloampere, or 1000 Amperes is 1 Kiloampere. Now thats a lot of current!
10/21/2014 12:15 AM
4 of 6
https://learn.sparkfun.com/tutorials/metric-prefixes-and-si-units
See the trend? Each prefix is a thousand times larger than the previous.
While a little overwhelming at first, translation from one prefix to another
eventually becomes second nature.
Power
260
250
Numeric Representation
1,152,921,504,606,846,976
1,125,899,906,842,624
tebi- (Ti-)
gibi (Gi-)
mebi- (Mi-)
240
230
220
1,099,511,627,776
1,073,741,824
1,048,576
kibi- (Ki-)
no prefix
210
20
1,024
1 bit or byte
10/21/2014 12:15 AM
5 of 6
https://learn.sparkfun.com/tutorials/metric-prefixes-and-si-units
proper prefix for kibi if Ki. However, it will sometimes appear as just and
upper case K, which, again, represents temperature in Kelvins. So, any
time you hear the word Kilobyte, you still have to wonder if it signifies 1000
bytes (base 10) or 1024 bytes (base 2). On the other hand, if you see the
term kibibyte, you know for sure its talking about the base 2 version
interpretation of digital storage (1024 bytes).
Practice
Now for some practice exercises. Well use standard abreviations for each
unit type well convert:
A for Amperes
V for Volts
W for Watts
Hz for Hertz
F for Farads
H for Henrys
for Ohms
s for Seconds
B for Bytes
b for bits
Conversion Example:
Convert: 400 mA to A
Answer: 400 mA = .4 A
Convert:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
50 mA to A
10 nF to pF
500 kW to W
.01 mV to V
20,000 k to M
4680 MHz to GHz
4 TiB to GiB
200 Mb to kb
.00007 s to s
1450 nH to H
Practice Answers
1. .05 A
2. 10,000 pF
10/21/2014 12:15 AM
6 of 6
3.
4.
5.
6.
7.
8.
9.
10.
https://learn.sparkfun.com/tutorials/metric-prefixes-and-si-units
500,000 W
10 V
20 M
4.68 GHz
4096 GiB
200,000 kb
70 s
1.45 H
Going Further
Being able to convert numbers to the best prefix depending on the size of
the number is an important skill to have. It allows you to avoid really long
and messy numbers like 5,600,000 or .000000002. Using 5.6M or 2n allows
you to convey the information faster and in a much tidier and easier to read
format.
Now that you are familiar with the metric prefixes, consider taking a look at
our How to Use a Multimeter tutorial. Using a multimeter requires a good
understanding of all the prefixes since your measurements will often show
up as such.
S H A RE
SparkFun is an online retail store that sells the bits and pieces to make your electronics projects possible. Whether
it's a robot that can cook your breakfast or a GPS cat tracking device, our products and resources are designed to
make the world of electronics more accessible.
In addition to products, SparkFun also offers classes and online tutorials to help educate individuals in the wonderful
world of embedded electronics.
About Us
About SparkFun
SparkFun Education
Feeds
Jobs
Contact
Help
Customer Service
Shipping
Return Policy
FAQ
Programs
Educator Discount
Hacker-in-Residence Program
Request SparkFun Sponsorship
Tell Us About Your Project
Sell Your Widget on SparkFun
Become a SparkFun Distributor
Community
Forum
SparkFun IRC Channel
Take the SparkFun Quiz
SparkFun Kickstarter Projects
Distributors
SparkFun Electronics / Niwot, Colorado / Customer Service / Site Map / Terms of Service / Privacy Policy
/ Desktop Site
10/21/2014 12:15 AM
Diodes - learn.sparkfun.com
1 of 14
https://learn.sparkfun.com/tutorials/diodes
STA RT A PROJ E CT
WORK SHOPS
S H OP
E D U BL OG
LEARN
FORUM
RE SOURCE S
DAT A
TU TORI A L S
CL A SSE S
HE L L O, SE L V A N
YOU R A CCOU NT
CA L E ND A R
search...
CON TA CT
Diodes
C ON TR IBU TO R S:
JI MB0
Sections
S H A RE
Introduction
Introduction
Once you graduate from the simple, passive components that are resistors,
capacitors, and inductors, its time to step on up to the wonderful world of
semiconductors. One of the most widely used semiconductor components
is the diode.
Ideal Diodes
Real Diode Characteristics
Types of Diodes
Diode Applications
Resources and Going Further
Suggested Reading
Some of the concepts in this tutorial build on previous electronics
knowledge. Before jumping into this tutorial consider reading (at least
skimming) these first:
What is Electricity
Voltage, Current, Resistance, and Ohms Law
What is a Circuit
Series vs. Parallel
How to Use A Multimeter
Comments
View Paginated
Print
Tags
COMPON E N TS
E L E CTRI C A L E N GI N E E RI N G
TE CH N OL OGY
License
tutorials are CC BY-NC-SA 3.0
Ideal Diodes
The key function of an ideal diode is to control the direction of current-flow.
Current passing through a diode can only go in one direction, called the
forward direction. Current trying to flow the reverse direction is blocked.
Theyre like the one-way valve of electronics.
If the voltage across a diode is negative, no current can flow*, and the ideal
diode looks like an open circuit. In such a situation, the diode is said to be
10/21/2014 12:16 AM
Diodes - learn.sparkfun.com
2 of 14
https://learn.sparkfun.com/tutorials/diodes
I>0
V=0
Short circuit
I=0
V<0
Open circuit
Circuit Symbol
Every diode has two terminals connections on each end of the
component and those terminals are polarized, meaning the two terminals
are distinctly different. Its important not to mix the connections on a diode
up. The positive end of a diode is called the anode, and the negative end is
called the cathode. Current can flow from the anode end to the cathode,
but not the other direction. If you forget which way current flows through a
diode, try to remember the mnemonic ACID: anode current in diode (also
anode cathode is diode).
The circuit symbol of a standard diode is a triangle butting up against a
line. As well cover in the later in this tutorial, there are a variety of diode
types, but usually their circuit symbol will look something like this:
The terminal entering the flat edge of the triangle represents the anode.
Current flows in the direction that the triangle/arrow is pointing, but it cant
go the other way.
10/21/2014 12:16 AM
Diodes - learn.sparkfun.com
3 of 14
https://learn.sparkfun.com/tutorials/diodes
Above are a couple simple diode circuit examples. On the left, diode D1 is
forward biased and allowing current to flow through the circuit. In essence it
looks like a short circuit. On the right, diode D2 is reverse biased. Current
cannot flow through the circuit, and it essentially looks like an open circuit.
Current-Voltage Relationship
The most important diode characteristic is its current-voltage (i-v)
relationship. This defines what the current running through a component is,
given what voltage is measured across it. Resistors, for example, have a
simple, linear i-v relationshipOhms Law. The i-v curve of a diode, though,
is entirely non-linear. It looks something like this:
10/21/2014 12:16 AM
Diodes - learn.sparkfun.com
4 of 14
https://learn.sparkfun.com/tutorials/diodes
Forward Voltage
In order to turn on and conduct current in the forward direction, a diode
requires a certain amount of positive voltage to be applied across it. The
typical voltage required to turn the diode on is called the forward voltage
(VF). It might also be called either the cut-in voltage or on-voltage.
As we know from the i-v curve, the current through and voltage across a
diode are interdependent. More current means more voltage, less voltage
means less current. Once the voltage gets to about the forward voltage
rating, though, large increases in current should still only mean a very small
increase in voltage. If a diode is fully conducting, it can usually be assumed
that the voltage across it is the forward voltage rating.
10/21/2014 12:16 AM
Diodes - learn.sparkfun.com
5 of 14
https://learn.sparkfun.com/tutorials/diodes
A multimeter with a diode setting can be used to measure (the minimum of)
a diodes forward voltage drop.
A specific diodes VF depends on what semiconductor material its made out
of. Typically, a silicon diode will have a VF around 0.6-1V. A
germanium-based diode might be lower, around 0.3V. The type of diode also
has some importance in defining the forward voltage drop; light-emitting
diodes can have a much larger VF, while Schottky diodes are designed
specifically to have a much lower-than-usual forward voltage.
Breakdown Voltage
If a large enough negative voltage is applied to the diode, it will give in and
allow current to flow in the reverse direction. This large negative voltage is
called the breakdown voltage. Some diodes are actually designed to
operate in the breakdown region, but for most normal diodes its not very
healthy for them to be subjected to large negative voltages.
For normal diodes this breakdown voltage is around -50V to -100V, or even
more negative.
Diode Datasheets
All of the above characteristics should be detailed in the datasheet for
every diode. For example, this datasheet for a 1N4148 diode lists the
maximum forward voltage (1V) and the breakdown voltage (100V) (among a
lot of other information):
10/21/2014 12:16 AM
Diodes - learn.sparkfun.com
6 of 14
https://learn.sparkfun.com/tutorials/diodes
A datasheet might even present you with a very familiar looking currentvoltage graph, to further detail how the diode behaves. This graph from the
diodes datasheet enlarges the curvy, forward-region part of the i-v curve.
Notice how more current requires more voltage:
That chart points out another important diode characteristic the maximum
forward current. Just like any component, diodes can only dissipate so
much power before they blow. All diodes should list maximum current,
reverse voltage, and power dissipation. If a diode is subject to more voltage
or current than it can handle, expect it to heat up (or worse; melt,
smoke,).
Some diodes are well-suited to high currents 1A or more others like the
1N4148 small-signal diode shown above may only be suited for around
200mA.
That 1N4148 is just a tiny sampling of all the different kinds of diodes there
are out there. Next well explore what an amazing variety of diodes there
are and what purpose each type serves.
Types of Diodes
10/21/2014 12:16 AM
Diodes - learn.sparkfun.com
7 of 14
https://learn.sparkfun.com/tutorials/diodes
Normal Diodes
Standard signal diodes are among the most basic, average, no-frills
members of the diode family. They usually have a medium-high forward
voltage drop and a low maximum current rating. A common example of a
signal diode is the 1N4148. Very general purpose, its got a typical forward
voltage drop of 0.72V and a 300mA maximum forward current rating.
A small-signal diode, the 1N4148. Notice the black circle around the
diode, that marks which of the terminals is the cathode.
A rectifier or power diode is a standard diode with a much higher
maximum current rating. This higher current rating usually comes at the cost
of a larger forward voltage. The 1N4001, for example, has a current rating
of 1A and a forward voltage of 1.1V.
A 1N4001 PTH diode. This time a gray band indicates which pin is the
cathode.
And, of course, most diode types come in surface-mount varieties as well.
Youll notice that every diode has some way (no matter how tiny or hard to
see) to indicate which of the two pins is the cathode.
10/21/2014 12:16 AM
Diodes - learn.sparkfun.com
8 of 14
https://learn.sparkfun.com/tutorials/diodes
10/21/2014 12:16 AM
Diodes - learn.sparkfun.com
9 of 14
https://learn.sparkfun.com/tutorials/diodes
Schottky Diodes
Another very common diode is the Schottky diode. The semiconductor
composition of a Schottky diode is slightly different from a normal diode,
and this results in a much smaller forward voltage drop, which is usually
between 0.15V and 0.45V. Theyll still have a very large breakdown voltage
though.
Schottky diodes are especially useful in limiting losses, when every last bit
of voltage must be spared. Theyre unique enough to get a circuit symbol of
their own, with a couple bends on the end of the cathode-line.
Zener Diodes
Zener diodes are the weird outcast of the diode family. Theyre usually used
to intentionally conduct reverse current. Zeners are designed to have a
very precise breakdown voltage, called the zener breakdown or zener
voltage. When enough current runs in reverse through the zener, the
voltage drop across it will hold steady at the breakdown voltage.
Taking advantage of their breakdown property, Zener diodes are often used
to create a known reference voltage at exactly their Zener voltage. They
can be used as a voltage regulator for small loads, but theyre not really
made to regulate voltage to circuits that will pull significant amounts of
10/21/2014 12:16 AM
Diodes - learn.sparkfun.com
10 of 14
https://learn.sparkfun.com/tutorials/diodes
current.
Zeners are special enough to get their own circuit symbol, with wavy ends
on the cathode-line. The symbol might even define what, exactly, the
diodes zener voltage is. Heres a 3.3V zener diode acting to create a solid
3.3V voltage reference:
Photodiodes
Photodiodes are specially constructed diodes, which capture energy from
photons of light (see Physics, quantum) to generate electrical current. Kind
of operating as an anti-LED.
A BPW34 photodiode (not the quarter, the little thing on top of that). Get it
under the sun and it can generate about few Ws of power!.
Solar cells are the main benefactor of photodiode technology. But these
diodes can also be used to detect light, or even communicate optically.
Diode Applications
For such a simple component, diodes have a huge range of uses. Youll find
a diode of some type in just about every circuit. They could be featured in
anything from a small-signal digital logic to a high voltage power conversion
circuit. Lets explore some of these applications.
Rectifiers
A rectifier is a circuit that converts alternating current (AC) to direct current
(DC). This conversion is critical for all sorts of household electronics. AC
signals come out of your houses wall outlets, but DC is what powers most
10/21/2014 12:16 AM
Diodes - learn.sparkfun.com
11 of 14
https://learn.sparkfun.com/tutorials/diodes
The bridge rectifier circuit (middle), and the output wave form it creates
(blue/right).
These circuits are a critical component in AC-to-DC power supplies, which
turn the wall outlets 120/240VAC signal into 3.3V, 5V, 12V, etc. DC signals.
If you tore apart a wall-wart, youd most likely see a handful of diodes in
there, rectifying it up.
Can you spot the four diodes making a bridge rectifier in this wall-wart?
10/21/2014 12:16 AM
Diodes - learn.sparkfun.com
12 of 14
https://learn.sparkfun.com/tutorials/diodes
Logic Gates
Forget transistors! Simple digital logic gates, like the AND or the OR, can be
built out of diodes.
For example, a diode two-input OR gate can be constructed out of two
diodes with shared cathode nodes. The output of the logic circuit is also
located at that node. Whenever either input (or both) is a logic 1 (high/5V)
the output becomes a logic 1 as well. When both inputs are a logic 0
(low/0V), the output is pulled low through the resistor.
10/21/2014 12:16 AM
Diodes - learn.sparkfun.com
13 of 14
https://learn.sparkfun.com/tutorials/diodes
For both logic gates, more inputs can be added by adding just a single
diode.
10/21/2014 12:16 AM
Diodes - learn.sparkfun.com
14 of 14
https://learn.sparkfun.com/tutorials/diodes
S H A RE
SparkFun is an online retail store that sells the bits and pieces to make your electronics projects possible. Whether
it's a robot that can cook your breakfast or a GPS cat tracking device, our products and resources are designed to
make the world of electronics more accessible.
In addition to products, SparkFun also offers classes and online tutorials to help educate individuals in the wonderful
world of embedded electronics.
About Us
About SparkFun
SparkFun Education
Feeds
Jobs
Contact
Help
Customer Service
Shipping
Return Policy
FAQ
Programs
Educator Discount
Hacker-in-Residence Program
Request SparkFun Sponsorship
Tell Us About Your Project
Sell Your Widget on SparkFun
Become a SparkFun Distributor
Community
Forum
SparkFun IRC Channel
Take the SparkFun Quiz
SparkFun Kickstarter Projects
Distributors
SparkFun Electronics / Niwot, Colorado / Customer Service / Site Map / Terms of Service / Privacy Policy
/ Desktop Site
10/21/2014 12:16 AM