FPGA DEVICES · ENGINEERING · SOURCING Source-linked information. Clear project requirements.

Tutorials

What Does a Resistor Do? Follow One LED Circuit

Published · Updated

A resistor looks uneventful beside a processor or a glowing LED, yet it often determines whether the surrounding circuit behaves sensibly. The useful starting point is a circuit question: what current should flow, where is the voltage difference, and which component must turn electrical energy into heat? Follow one deliberately simple LED example, then use it to read a schematic, estimate power, and recognize where a real component needs more evidence.

Start with the loop, not the color bands

Real resistors in several body sizes and constructions. Body size and color bands help identify a part, but the exact value, power rating and ordering code still require the component record.
Real resistors in several body sizes and constructions. Body size and color bands help identify a part, but the exact value, power rating and ordering code still require the component record. Photograph: FDominec / Wikimedia Commons, CC BY-SA 3.0, unmodified. The photographed parts are not selected components for the hypothetical examples.
One complete current pathTrace source → resistor → LED → return. The source is ideal in this illustration.One complete current path+−5 VR: current settingLEDReturn path is part of the circuitOriginal conceptual teaching figure · not a footprint / pinout / measurement
Trace source → resistor → LED → return. The source is ideal in this illustration. Original conceptual illustration; not a measured result or package drawing.

Imagine a low-voltage supply connected to a resistor and an LED in series, with a return connection to the supply. This is a teaching circuit, not a validated FPGA output circuit. The source provides a voltage difference. The LED produces light when operated in the appropriate direction and current range. The resistor helps establish the current. Removing the resistor changes the circuit model; it does not simply remove an unnecessary obstacle between the supply and the light.

Trace the complete loop before calculating anything. A broken return path stops the intended current even if a meter shows a voltage at one terminal. Two points drawn far apart may be the same electrical node when their net labels match. Conversely, two crossing lines may not be connected. The junction convention used by the schematic matters more than how close the symbols appear on the page. A photograph alone rarely establishes those relationships.

A resistor does not allocate a fixed amount of current independently of the rest of the circuit. Its current depends on the voltage across it and its resistance. Change the supply, the LED operating point, or another series element, and the current can change. This is why a description such as current-limiting resistor names a role in a circuit rather than a separate universal component category with a guaranteed current output.

Resistors also establish bias, pull a node toward a defined state, sense current, terminate an interface, and divide a voltage. Those jobs share a resistance relationship but do not share every selection rule. A resistor that is adequate for a slow indicator circuit may have unsuitable parasitics or tolerance for another task. First name the circuit role. Then decide which behavior must be controlled and what evidence would demonstrate that control.

Read the symbol, value and evidence as different things

Symbol, value, identityThe symbol is not the package or complete ordering code.Symbol, value, identityR121 kΩ = 1000 ΩBOM + exact MPNPackage / ratingsA drawing position, a value and a part identity are separate.Original conceptual teaching figure · not a footprint / pinout / measurement
The symbol is not the package or complete ordering code. Original conceptual illustration; not a measured result or package drawing.

The zigzag and rectangular schematic symbols are both commonly used for a resistor. Neither symbol tells you its wattage, construction, tolerance or package dimensions. A reference such as R12 identifies a component position in one design. The nearby value identifies the intended resistance. The BOM and exact manufacturer part number connect that position to a purchasable specification. Mixing these three identifiers can cause a correct calculation to be assembled with the wrong part.

Resistance is measured in ohms. A value of 1 kilohm equals 1000 ohms, while 1 megohm equals one million ohms. Decimal substitution such as 4K7 is used in some drawing conventions for 4.7 kilohms. Do not silently apply a notation convention to a document that uses another one. Preserve the unit when moving a value into a calculator, purchasing spreadsheet or message to an assembler.

Body colors and printed codes can help identify certain resistor types, but they are not a universal database. Small parts may have no readable marking. A printed code may not establish tolerance or technology. A meter reading can also be affected by parallel paths when the part remains in a board. A defensible identification therefore combines the design record, the exact series documentation and an appropriate measurement rather than relying on appearance alone.

For an existing board, begin with the reference designator and revision. Locate its BOM line, then compare the specified package and value with the assembly drawing. If the record is missing, mark the identity unresolved. Do not convert a plausible reading into an exact ordering code. The same habit is useful when reading the FPGA PCB bring-up checklist: record what an observation proves before deciding what to do next.

Calculate the current with the voltage the resistor actually sees

Use the resistor voltageIllustrative fixed-drop model: 5 − 2 = 3 V across 1000 Ω.Use the resistor voltage3 V across R2 V assumedI = 3 / 1000 = 3 mANo GPIO-drive or real LED curve is calculated.Original conceptual teaching figure · not a footprint / pinout / measurement
Illustrative fixed-drop model: 5 − 2 = 3 V across 1000 Ω. Original conceptual illustration; not a measured result or package drawing.

For a resistor in its intended approximately ohmic operating region, use I = V/R. Here V means the voltage across that resistor, not automatically the supply voltage. In the LED example, suppose the supply is 5 volts, the LED forward drop is assumed to be 2 volts at the operating point, and the series resistance is 1000 ohms. These are illustrative inputs, not specifications for a particular LED or logic pin.

The assumed resistor voltage is 5 minus 2, or 3 volts. Dividing 3 volts by 1000 ohms gives 0.003 amperes, which is 3 milliamperes. The arithmetic is simple; choosing the correct voltage is the important step. Applying the full supply voltage across the resistor in this series model would answer a different question. The result also depends on the assumed LED drop, which a real LED does not hold perfectly constant at every current and temperature.

Try changing only one input. Doubling the resistance while keeping the simplified voltage assumptions fixed halves the estimated current. Raising the assumed LED drop leaves less voltage across the resistor and reduces current. If the supply no longer exceeds the assumed LED drop, this simplified model cannot establish useful forward conduction. A calculator may show zero as its boundary result; that does not describe every real leakage or transition behavior.

Before using the example with a controller output, replace the ideal supply assumption with actual output-drive evidence. A GPIO has output-voltage and current conditions; its high-state voltage is not an ideal supply for every load. Bank supply, pin assignment and total current limits also need checking. The XC7A100T-1CSG324C evidence page is a project-context starting point for a board using that exact FPGA, not approval of this LED connection or a resistor recommendation.

Power explains why the correct resistance can still be the wrong part

Same resistor, different stressThe shorted-LED case changes the voltage across the resistor.Same resistor, different stressNormal model: 3 VP = 9 mWLED short: 5 VP = 25 mWPower is not a component-temperature prediction.Original conceptual teaching figure · not a footprint / pinout / measurement
The shorted-LED case changes the voltage across the resistor. Original conceptual illustration; not a measured result or package drawing.

Once the current estimate is available, calculate resistor dissipation using P = I squared times R. The same operating point can be checked with P = VI or V squared divided by R. In our assumed example, 0.003 amperes squared multiplied by 1000 ohms gives 0.009 watts, or 9 milliwatts. All three expressions should agree when they use the same resistor voltage, resistance and current.

This number is a circuit estimate, not a temperature prediction. Temperature depends on package, mounting, copper, airflow and surrounding components. A catalog power rating comes with conditions and may require derating at elevated temperature. The comparison is between the calculated stress and the exact component's applicable rating, not between two context-free numbers. A resistor can also have a maximum working voltage that matters independently of its nominal power capability.

Consider an accidental short across the LED. With the same ideal 5-volt supply and 1000-ohm resistor, the resistor now sees 5 volts rather than 3. The current becomes 5 milliamperes and the dissipation becomes 25 milliwatts. That hypothetical fault does not prove the design is safe, but it illustrates why the expected operating case alone may not define the stress requirement. Other faults may affect different components or supply limits.

Steady power also differs from a pulse rating. A short event can have substantial peak power and energy even when the average is modest. The relevant pulse curve and repetition conditions belong to the selected series. Vishay's Resistors 101 is a useful terminology reference; it is not a substitute for the current exact-part datasheet. Keep the calculation, component identity and rating conditions together.

Use the worksheet, then challenge its assumptions

Predict before calculatingKeeping the assumed 3 V across R changes the current with resistance.Predict before calculatingR (ohms)I (mA)61000 Ω → 3 mACalculated fixed-drop exampleOriginal conceptual teaching figure · not a footprint / pinout / measurement
Keeping the assumed 3 V across R changes the current with resistance. Original conceptual illustration; not a measured result or package drawing.

The interactive worksheet below uses a fixed assumed LED forward voltage and an ideal supply. Enter volts and ohms directly; the result reports milliamperes and milliwatts. It runs in your browser and sends no inquiry. The copyable result keeps the assumptions beside the answer so that a later design discussion does not accidentally turn an illustrative number into a measured one.

Static reference: 5 V supply,2 V assumed LED drop,1000 Ω →3 mA and 9 mW. Interactive fields appear when JavaScript is available. The explanation and example remain readable without it.

Start with the displayed example and confirm 3 milliamperes and 9 milliwatts. Next set the LED voltage to zero to model only a resistor across the supply; the output should become 5 milliamperes and 25 milliwatts. Then restore the example and increase resistance to 2000 ohms. Predict the result first. Comparing a prediction with the calculation helps reveal whether you are following the circuit relationship or only reading a changing number.

An empty resistance or zero resistance is rejected because this worksheet is not a short-circuit model. Negative values are outside its stated use. A non-positive voltage headroom produces an explicit boundary message. Those checks prevent meaningless arithmetic, but they do not validate input values taken from a datasheet. You still need the correct units, applicable operating conditions, tolerances and the actual source capability.

For a real selection, evaluate plausible combinations of supply and forward-voltage limits rather than applying an arbitrary safety factor to a single typical result. Check the LED current, resistor stress and output-driver limits for those combinations. Record any missing bounds as unresolved. A worksheet is useful when it makes assumptions visible and helps you choose the next check; it is misleading when its precision disguises missing evidence.

Turn the learning result into a board or purchasing decision

Unloaded divider versus loaded dividerAdding a load changes the lower branch; these are ideal network examples.Unloaded divider versus loaded dividerVsR1R2R1 = R2Rload = R20 VNo load: Vs / 2. Equal lower load added: Vs / 3.Original conceptual teaching figure · not a footprint / pinout / measurement
Adding a load changes the lower branch; these are ideal network examples. Original conceptual illustration; not a measured result or package drawing.

A second short exercise reveals why a resistor calculation must include its load. Put two equal ideal resistors between a supply and return. With no extra load, their midpoint is half the supply. Now connect another resistor, equal to the lower one, from the midpoint to return. The two lower resistors are in parallel, so their combined resistance is half one resistor. The midpoint becomes one third of the supply, even though the original divider pair has not changed.

For example, use a 6-volt ideal source and three 1000-ohm resistors. The unloaded pair gives 3 volts at its midpoint. Adding the third resistor produces a 500-ohm lower branch and a total series resistance of 1500 ohms. Source current is 4 milliamperes and the midpoint is 2 volts. The extra resistor changes the circuit, not just the measurement display. This is an independent ideal-network calculation, not a recommendation to make a power supply from a resistor divider.

The same reasoning helps explain an unexpected board measurement. A downstream input, a leakage path or the measurement instrument itself can load a divider. You need its effective loading before predicting the observed voltage. A divider intended to create a signal reference is not automatically able to power a device. As the load changes, the output can move. A regulator and a divider answer different circuit requirements even if their unloaded voltages happen to match.

In a review note, draw the unloaded and loaded networks side by side and write which current belongs to which branch. That record is more useful than correcting the component value by trial and error. Once the discrepancy is understood, choose the next action: obtain the actual input-impedance evidence, change the circuit architecture, or define a measurement that distinguishes a load problem from an incorrect resistor. A component value should follow the supported circuit model.

A useful design handoff contains more than a resistance value. Record the reference designator, resistance, tolerance, technology when relevant, package, power and voltage conditions, and the exact approved manufacturer code. Note which values are design requirements and which are merely an example. If substitutions are allowed, define the acceptance conditions rather than telling purchasing to select any component with the same printed number.

For an FPGA board, resistors appear around indicators, configuration signals, resets and interfaces, but each position has a different purpose. Follow the relevant device and interface documentation before copying a value from another board. Use the power-rail planning worksheet to organize supply requirements, and consult the tutorial library for the next engineering task. These supporting pages do not convert a beginner example into a tested reference design.

If you need parts, request a component quotation with the exact resistor MPN and quantity after selection. If the component is not yet identified, say so rather than submitting a guessed suffix. For a complete board, request a project quotation and provide board quantity, BOM revision, assembly side, sourcing responsibility and required testing. Pricing, stock and lead time need confirmation; none is established by this lesson.

Manufacturing questions can continue through the PCBA assembly preparation page. Keep confidential drawings out of query strings and ask for an appropriate transfer process when needed. The lesson's deliverable is a traceable current-and-power estimate plus a list of component checks. You should now be able to explain why the resistor is present, what the calculation assumes, and what still separates the example from an approved board.

Show the original resistor concept animationOriginal calculated resistor teaching sequence with declared simplified assumptions

Concept animation, not a hardware recording or a validated simulation. Close this disclosure to hide it. Static steps and numerical assumptions are explained in the article.

Back to Tutorials

Related evidence and next tasks

Continue the task with the relevant source scope. These reading paths do not establish interchangeability or current supply.

Source addresses and citation trail

Full source addresses are retained below. Read each citation with its document revision, page, table and applicability conditions above.

  1. https://commons.wikimedia.org/wiki/File:Electronic_component_resistors.jpg
  2. https://creativecommons.org/licenses/by-sa/3.0/
  3. https://www.vishay.com/docs/49873/49873_sg2113.pdf