Resistors

Resistors are fundamental passive electrical components that introduce a specified electrical resistance into a circuit.

Resistor

At a glance

Pins and properties exactly as the circuit editor and simulator define this part. The text below explains how to use them.

Pinout

Pinout of the Resistor, drawn as in the circuit editor. Select a label to see that pin in the table below.

Pins

Pins of this part
PinLabelType
AABidirectional
BBBidirectional

Properties

What you can change in the Property Inspector.

Properties of this part
PropertyRange or choicesDefault
Resistance0.1 to 10000000 Ω1000 Ω
Power Rating1/8 W, 1/4 W, 1/2 W, 1 W, 2 W1/4 W
MaterialIdeal (no drift), Metal Film (~+100ppm/°C), Carbon Film (~-350ppm/°C)Ideal (no drift)

Resistors are fundamental passive electrical components that introduce a specified electrical resistance into a circuit. In Open Maker Studio, they are used to limit current, divide voltages, establish stable logic levels (pull-up/pull-down), and protect sensitive components such as LEDs and microcontrollers.


1. Schematic Symbol & Pin Layout

Standard IEC / US style schematic symbol for a fixed resistor, matching the component's real two-pin layout (A / B in the Property Inspector and SPICE netlist):

A B
PinIdentifierDescriptionSPICE Node
Pin 1ATerminal contact A (non-polarized)Node 1
Pin 2BTerminal contact B (non-polarized)Node 2

2. Hardware Specifications & Power Dissipation

ParameterValue / Description
Resistance UnitsOhms (Ω\Omega), Kilohms (kΩ=1,000 Ω\text{k}\Omega = 1,000\,\Omega), Megohms (MΩ=1,000,000 Ω\text{M}\Omega = 1,000,000\,\Omega)
Standard Tolerances±5%\pm 5\% (Carbon Film, Gold band) · ±1%\pm 1\% (Metal Film, Brown band)
Default Power Rating¼ W (0.25 W0.25\,\text{W})

Power Ratings in OMS

RatingTypical Application
⅛ W (0.125 W0.125\,\text{W})Low-power signal conditioning, pull-up/pull-down lines
¼ W (0.25 W0.25\,\text{W})Standard default for logic circuits, status indicators, and current limiting
½ W (0.5 W0.5\,\text{W})Higher-current signal paths, small transistor bias networks
1 W / 2 WPower supply rails, driver stages, and high-load bleeder circuits

[!CAUTION] Over-Wattage Burnout Warning: If calculated power dissipation (P=I2×RP = I^2 \times R) exceeds the component's configured power rating in the simulation, a burnout visual effect triggers on the circuit canvas, accompanied by a diagnostic warning in the console.


3. Resistor Color Code Guide

Resistor values are marked using international standard color bands. Read bands starting from the edge with the tightest band spacing (furthest away from the tolerance band).

ColorValue (Digit)MultiplierTolerance
Black0×100=1\times 10^0 = 1—
Brown1×101=10\times 10^1 = 10±1%\pm 1\% (F)
Red2×102=100\times 10^2 = 100±2%\pm 2\% (G)
Orange3×103=1,000\times 10^3 = 1,000—
Yellow4×104=10,000\times 10^4 = 10,000—
Green5×105=100,000\times 10^5 = 100,000±0.5%\pm 0.5\% (D)
Blue6×106=1,000,000\times 10^6 = 1,000,000±0.25%\pm 0.25\% (C)
Violet7×107=10,000,000\times 10^7 = 10,000,000±0.1%\pm 0.1\% (B)
Grey8—±0.05%\pm 0.05\%
White9——
Gold—×10−1=0.1\times 10^{-1} = 0.1±5%\pm 5\% (J)
Silver—×10−2=0.01\times 10^{-2} = 0.01±10%\pm 10\% (K)

Decoding 4-Band vs. 5-Band Resistors

4-Band Resistors (Standard ±5%\pm 5\%)

  • Band 1: First significant digit
  • Band 2: Second significant digit
  • Band 3: Multiplier (10n10^n)
  • Band 4: Tolerance (typically Gold = ±5%\pm 5\%)

Example: Yellow (4) · Violet (7) · Red (×100\times 100) · Gold (±5%\pm 5\%) 47×100=4,700 Ω=4.7 kΩ(±5%)47 \times 100 = 4,700\,\Omega = 4.7\,\text{k}\Omega \quad (\pm 5\%)

5-Band Resistors (Precision ±1%\pm 1\%)

  • Band 1: First significant digit
  • Band 2: Second significant digit
  • Band 3: Third significant digit
  • Band 4: Multiplier (10n10^n)
  • Band 5: Tolerance (typically Brown = ±1%\pm 1\%)

Example: Yellow (4) · Violet (7) · Black (0) · Orange (×1,000\times 1,000) · Brown (±1%\pm 1\%) 470×1,000=470,000 Ω=470 kΩ(±1%)470 \times 1,000 = 470,000\,\Omega = 470\,\text{k}\Omega \quad (\pm 1\%)


4. Core Calculations & Math

  • Ohm's Law:
    V=I×RV = I \times R (where VV is voltage drop in volts, II is current in amperes, and RR is resistance in ohms).
  • Power Dissipated:
    P=V×I=I2×R=V2RP = V \times I = I^2 \times R = \frac{V^2}{R} (measured in Watts).
  • Series Resistance:
    Rtotal=R1+R2+R3+...+RnR_{total} = R_1 + R_2 + R_3 + ... + R_n
  • Parallel Resistance:
    1Rtotal=1R1+1R2+1R3+...+1Rn\frac{1}{R_{total}} = \frac{1}{R_1} + \frac{1}{R_2} + \frac{1}{R_3} + ... + \frac{1}{R_n}
    (For exactly two parallel resistors: Rtotal=R1×R2R1+R2R_{total} = \frac{R_1 \times R_2}{R_1 + R_2})
  • LED Current-Limiting Calculation:
    To protect an LED from burning out, a series resistor must limit the forward current (IfI_f). The formula is:
    Rlimit=Vcc−VfIfR_{limit} = \frac{V_{cc} - V_f}{I_f}
    Where:
    • VccV_{cc} is the microcontroller's logic voltage (e.g. 5V for Uno, 3.3V for ESP32/Pico).
    • VfV_f is the LED's forward voltage drop (e.g. 2V for a red LED).
    • IfI_f is the target forward current (e.g. 20mA = 0.02A).
    • Calculation: R=5.0−2.00.02=3.00.02=150R = \frac{5.0 - 2.0}{0.02} = \frac{3.0}{0.02} = 150 Ω.

5. Property Inspector (In-App Parameters)

Selecting a resistor on the OMS canvas allows configuring parameters directly in the Property Inspector panel:

PropertyKeyDefaultOptions / Range
Resistanceresistance1000 Ω\Omega0.1 Ω0.1\,\Omega to 10,000,000 Ω10,000,000\,\Omega (10 MΩ10\,\text{M}\Omega)
Power RatingpowerRating0.25 W0.125 W (⅛W), 0.25 W (¼W), 0.5 W (½W), 1 W, 2 W
Temperature DrifttempcoIdeal (no drift)Ideal, Metal Film (+100 ppm/∘C+100\,\text{ppm}/^\circ\text{C}), Carbon Film (−350 ppm/∘C-350\,\text{ppm}/^\circ\text{C})

6. Programming & Microcontroller Integration

[!NOTE] Resistors are passive analog components and do not have standalone Blockly code blocks. They interact with code indirectly through microcontroller pins:

  1. Voltage Dividers: Used with sensors (e.g., LDRs, thermistors) to scale analog signals into acceptable ADC voltage ranges (0−5V0-5\text{V} or 0−3.3V0-3.3\text{V}), read via board_analog_read.
  2. Pull-Up & Pull-Down Networks: Connected to buttons or digital sensors to prevent floating logic states, sampled using board_digital_read.

7. Simulator Behavior & Diagnostics

During real-time simulation on the canvas:

  • Interactive Probing: Hovering your cursor over the resistor body or terminal connections displays real-time live telemetry:
    • VdropV_{\text{drop}}: Instantaneous potential difference across terminals AA and BB.
    • II: Current passing through the component (in mA\text{mA} or μA\mu\text{A}).
    • PP: Real-time wattage dissipation (I×VdropI \times V_{\text{drop}}).
  • Fault Detection: If dissipated wattage exceeds the configured powerRating, a visual burn-out effect appears on the canvas and an over-wattage warning is logged in the debug console.
Resistors — OMS Parts