Resistor
Any value you like, with the color bands drawn to match.
- 2 pins
- 2 settings
- In 223 projects
- In 230 lessons
The Resistor in brief
What it is, and every setting the properties panel gives it.
A resistor has no idea which way around it is wired. Each of its two pins is driven from whatever the other pin sees plus the drop its own current sets, which is Ohm’s law applied with no special cases: the same part is a pull-up to the supply, a pull-down to ground, the top half of a voltage divider, and the series limiter in front of an LED. It does not need a shared solve to behave, so on its own it never forces anything else on its net into one; wired next to a capacitor or into a 555’s timing network it joins that solve properly, as a plain conductance. There is no destructive limit modeled: pick a value far too small and the part reports a current a real resistor could not survive, rather than failing, which is a safe way to see the mistake on the probe without losing a part.
- Family
- Basics
- Pins
- 2
- value
- 1000
- the resistance in ohms. 220 for an LED, 10 000 for a pull-up, whatever a divider or a timing network calls for.
- power
- 1/4 W (or 1/8 W, 1/2 W, 1 W, 2 W, 5 W, 10 W)
- the power rating, from 1/8 W to 10 W. The common through-hole resistor, and the default, is 1/4 W.
2 pins
Named as the editor names them, so a wire lands where you expect it.
How to pick and wire a resistor
A resistor sets how much current flows for a given voltage: current = voltage / resistance, Ohm’s law. Its most common job next to an Arduino is limiting an LED’s current. With 5 V on the pin, about 2 V across a red LED and 220 ohms in series, (5 - 2) / 220 is about 14 milliamps, bright and safe for both the LED and the pin.
A resistor has no polarity, so either way around is fine. Its value is in the color bands, or in the properties panel in the editor. The other two jobs you will meet early are pull-ups and pull-downs, which hold an input at a known level, and voltage dividers, which scale a voltage down for an analog pin.
The resistor goes in series with the LED on any board. For 3.3 V logic the same arithmetic, (3.3 - 2) / 100, gives 13 milliamps from a 100 ohm resistor.
What is true about the Resistor, here
In its help article’s own words: what the simulation gets right, and where it stops.
Modeled
A resistor does not need a matrix to behave, so on its own it never creates an analog island. But when one reaches it (the series resistor of an RC network, the two timing resistors of a 555), it joins the island and is stamped as a conductance instead of passing a Thevenin equivalent along, and its current probe still reads the same current either way.
Not modeled
No tolerance and no temperature coefficient: its value does not drift as it warms. No Johnson noise, no parasitic inductance or capacitance, and no preferred-value grid: any positive number is a resistor, where a real bin holds E12 or E24 values only.
From Resistor, in full.
See the Resistor in a project
223 built-in projects use it. Each opens in the editor, already wired.
Where it turns up in a lesson
230 lessons place it in their own circuits.
The twelve week course
11 lessons
- Week 1: Current, voltage and the breadboard
- Week 2: Blink: the first program
- Week 3: Buttons, pull-ups and contact bounce
- Week 4: Timing without a processor: the 555
- Week 5: Logic gates, as real chips
- Week 6: Arithmetic from gates: the full adder
- Week 7: Memory: flip-flops and counters
- Week 8: More outputs than pins: the shift register
- Week 9: Pulse width modulation and the eye
- Week 11: Interrupts: events instead of polling
- Week 12: Project week: two boards, one wire
Learn articles
219 lessons
- Connect a Board to WiFi and Serve a Page
- How to Use a Breadboard: Your First Circuit
- Ohm's Law, in a Circuit You Can Run
- Picking a Resistor for an LED
- Pull-Up Resistors and the Floating Input They Fix
- Debouncing a Button: Why It Fires More Than Once
- PWM: Faking an Analog Voltage on a Digital Pin
- The 555 Astable: Timed by a Capacitor, Not a Crystal
- Logic Gates, and the Truth Table You Can Press
- Shifting a Byte In, One Edge at a Time
- Blink an LED with Arduino: Wiring and the Resistor
- Arduino Blink Without Delay: Two LEDs, Two Rates
- Arduino PWM Fade: analogWrite, Pins and the Curve
- Blink an LED on the ESP32-C3, Step by Step
- Blink an LED with a 555 Timer, No Microcontroller
- Arduino Simulators Compared: An Honest Roundup
- How to Simulate an Arduino Project Without Hardware
- Measure It: Read a Circuit With a Scope and Plotter
- Arduino Traffic Light Code with a Pedestrian Button
- Arduino Ultrasonic Sensor (HC-SR04) Tutorial
- Arduino LCD I2C 16x2: Wiring, Code, Scrolling Text
- Arduino 4x4 Keypad Code Lock with a Relay
- Arduino 7 Segment Display: an Electronic Die
- Arduino MPU6050: Accelerometer and Tilt
- Arduino Potentiometer Wiring and Code: Dim an LED
- Arduino LDR Night Light (Photoresistor)
- Arduino IR Remote: Decode NEC, Switch Lamps
- Arduino Joystick Module: Wiring, Code, Live Demo
- Arduino Buzzer and Piezo: Beeps, Notes, Metronome
- PIR Motion Sensor: How It Works, With an Arduino
- Voltage Dividers and Why They Are Bad Power Supplies
- Series vs Parallel Circuits, Seen With LEDs
- The RC Time Constant, on an Oscilloscope
- PWM to an Analog Voltage With an RC Filter
- Diodes for Reverse Polarity Protection
- NPN Transistor as a Switch: a 2N2222 and an Arduino
- The Flyback Diode, and the Spike It Stops
- MOSFET vs BJT: Which Transistor to Switch With
- The 555 Monostable: One Press, One Timed Pulse
- An Op-Amp as a Comparator, With Hysteresis
- The Non-Inverting Op-Amp Amplifier, on a Scope
- Arduino State Machine: A Four-State Reaction Game
- ESP32 analogRead: 12 Bits, Attenuation and ADC2
- Raspberry Pi Pico PWM: Slices, Channels and 1 kHz
- STM32 Blue Pill Blink with Registers, Not pinMode
- Arduino Uno vs ESP32 vs Pico: Which to Learn First?
- Multisim Live Is Gone: A Chromebook Alternative
- Digital Electronics on Chromebooks: Labs by Unit
- Half Adder and Full Adder: Truth Table to Breadboard
- Flip-Flops Explained: SR Latch, D and JK Flip-Flops
- Science Olympiad Circuit Lab: Free Study Guide, B/C
- Circuit Lab Practice Test: 30 Questions and Answers
- How to Use a Multimeter: Practice on a Virtual One
- Arduino Science Fair Projects With a Real Hypothesis
- Reaction Time Science Fair Project With an Arduino
- Engineering Science Fair Project: How to Write It Up
- 555 Timer Projects for a Science Fair (No Coding)
- Circuit Lab Division B: Middle School Starter Guide
- Circuit Lab Division C: High School Study Guide
- Circuit Lab Cheat Sheet: Every Formula, Worked Out
- SkillsUSA Electronics Technology Practice Circuits
- TSA Electrical Applications: Practice Circuits
- Arduino Simulator for Chromebook, Free in Chrome
- Arduino Simulator for Mac, Free in Safari or Chrome
- Free Circuit Simulator for High School Classes
- Arduino Projects for Beginners, Each One Running
- Online SPICE Simulator: Run and Export Netlists
- Arduino LED Not Lighting Up or Dim: What to Check
- Arduino Compile Errors Explained, With the Fixes
- How to Debug Arduino Code: Prints to Breakpoints
- Resistor Color Code Calculator and Chart
- "Was Not Declared in This Scope" in Arduino: 6 Fixes
- Arduino "expected ';' before" and Similar Errors
- Arduino stk500_getsync() Not in Sync: Upload Fixes
- ESP32 DevKit V1 Pinout: Every Pin and Which to Avoid
- ESP32-C3 SuperMini Pinout: LED, ADC, I2C, Boot Pins
- Wemos D1 Mini Pinout: D0-D8 to GPIO, I2C and SPI
- NodeMCU Pinout: ESP8266 D0-D8 to GPIO, Pins to Avoid
- Arduino Nano Pinout: PWM, I2C, SPI, A6 and A7
- Raspberry Pi Pico Pinout: GPIO, PWM, ADC and Power
- Arduino Uno Pinout: ATmega328P Pins, PWM, I2C, SPI
- Raspberry Pi Pico W Pinout: GPIO, LED and WiFi Pins
- XIAO ESP32-C3 Pinout: D Pins to GPIO, ADC, Boot Pins
- Pro Micro Pinout: 32U4 Pins for Arduino and QMK
- ESP-01 Pinout: GPIO0, GPIO2, Boot Modes and I2C
- STM32 Blue Pill Pinout: 5 V Tolerant Pins and BOOT
- ATmega328P Pinout: 28-Pin DIP to Arduino Pins
- Wemos D1 R32 Pinout: Uno Names to ESP32 GPIOs
- Arduino millis() Overflow: Why Subtraction Works
- Arduino map() Function: Scale Any Reading
- Arduino for Loop: Count, Repeat, Chase LEDs
- Arduino Array: Lists of Pins, Patterns and Notes
- Arduino Functions: Write It Once, Call It Anywhere
- Arduino Serial Read: Input from the Serial Monitor
- Arduino Random Numbers: random() and randomSeed()
- Arduino switch case: Modes, Menus and break
- Arduino if else: One Branch Runs, and Why
- Arduino while Loop: Wait, Repeat, Break Out
- Arduino digitalRead(): Buttons, HIGH and LOW
- Arduino Data Types: int, long, float and byte
- Arduino Serial.print vs println, and Decimals
- Arduino const vs #define: Which One to Use
- Arduino Struct: Group Values, With Examples
- Arduino Pointers Explained: & and * on an Uno
- Arduino enum: Named States, enum class and Switch
- Arduino Bitwise Operators and bitRead, Explained
- Arduino 2D Array: Rows, Columns and Strings
- Arduino Timer Interrupt: Timer1 Every Second
- Arduino Watchdog Timer: Reset a Stuck Sketch
- Arduino AI Assistant in Your Browser: Meet Mokxi AI
- Fix Arduino Code With AI, and Know It Compiles
- ChatGPT for Arduino Code, and an AI That Compiles
- ESP32 PWM: ledcAttach, ledcWrite and Frequency
- Arduino Multitasking With millis(), Step by Step
- Arduino Static Variable vs Global, With Examples
- Arduino strtok: Parse Serial Commands and CSV
- Arduino "expected unqualified-id": Causes and Fixes
- Fix "lvalue required as left operand of assignment"
- Arduino MOSFET Module: Why the IRF520 Is Half On
- Arduino Relay Module: Active LOW and Startup Clicks
- How Many LEDs Can One Arduino Pin Drive?
- Arduino I2C LCD Not Working: Blank, Blocks, No Text
- LM2596 Buck Converter: Power an Arduino From 12 V
- Arduino DC Motor: Transistor Wiring and PWM Speed
- Leverless Controller Build: Buttons, Pins and Code
- SOCD Cleaning Explained, With Code
- Arcade Button Wiring for a Pro Micro or Pico
- Design Your Sim Racing Button Box in the Browser
- Home Assistant and ESPHome Devices on an ESP32
- Arduino Model Railroad: Turnouts, Crossings, Signals
- 3D Printer Firmware: Homing, PID, G-code, Runout
- DIY Stream Deck and Camera Slider With Arduino
- Arduino Eurorack CV Quantizer With a PWM DAC
- Arduino RC522 RFID Reader: Wiring and Code
- Arduino Soil Moisture Sensor: Code and Wiring
- Arduino DS18B20 Temperature Sensor: Wiring and Code
- Arduino Sound Sensor (KY-038): Clap Switch
- Arduino 4 Digit 7 Segment Display: Wiring and Code
- Ohm's Law Calculator: Volts, Amps, Ohms and Watts
- Arduino nRF24L01: Wiring, Code and a Radio Doorbell
- Arduino IR Transmitter: Laser Tag With Two Nanos
- Arduino RGB LED: Wiring and Color Mixing Code
- Arduino Rotary Encoder (KY-040): Wiring and Code
- Arduino NeoPixel (WS2812B): Wiring and Code
- Arduino 10k Thermistor: Wiring and Code
- Arduino Tilt Sensor (SW-520D): Wiring and Code
- Arduino Tone Melody: Play a Song on a Piezo
- Arduino TM1637 Display: Library and Countdown
- Arduino BH1750 Light Sensor: Lux, Wiring, Code
- Arduino IR Obstacle Sensor (FC-51): Wiring, Code
- Arduino DFPlayer Mini MP3 Player: Wiring and Code
- Arduino Flame Sensor: Wiring, Code and Range
- Arduino Vibration Sensor (SW-420): Wiring, Code
- Arduino Reed Switch: Wiring, Code and a Door Alarm
- LM358 Op-Amp Simulator: Pinout, Gain and Comparator
- Arduino FSR: Force Sensor Wiring, Code, Readings
- Arduino Flex Sensor: Wiring, Code and Angles
- Arduino pinMode(): OUTPUT, INPUT and INPUT_PULLUP
- Arduino Interrupts: attachInterrupt on Pin 2 and 3
- Arduino millis(): Timers and Multiple Tasks
- Arduino PWM Frequency: 490 Hz, 980 Hz, How to Change
- Raspberry Pi Pico MicroPython in Your Browser
- ESP32 MicroPython Simulator, Free in Your Browser
- CircuitPython Simulator for the Raspberry Pi Pico
- Raspberry Pi GPIO with Python, in Your Browser
- Arduino "Redefinition of void setup()": Fixes
- Arduino "Undefined Reference To": Every Cause
- Arduino "expected '}' at end of input": How to Fix
- Arduino "control reaches end of non-void function"
- Arduino "variable or field declared void": Fixes
- Arduino "call of overloaded is ambiguous": Fixes
- Arduino INA219: Current Sensor Library and Code
- Arduino SHT31: Library, Example and Wiring
- ATtiny85 Pinout: PB0 to PB5, ADC, PWM, I2C and ISP
- Arduino Leonardo Pinout: I2C, SPI on ICSP, A6-A11
- STM32F411 Black Pill Pinout: PC13, KEY and BOOT0
- Arduino Pro Mini Pinout: A4 to A7, FTDI, RAW, VCC
- ESP32 DevKitC Pinout: All 38 Pins and the Flash Six
- Arduino Assembly Language: AVR Assembly Online
- STM32 HAL and Register Code in the Browser
- Export a Circuit to a KiCad Schematic
- Arduino Build Guide and Parts Shopping List
- Follow Your Arduino Starter Kit in the Browser
- Digital Logic Lab Experiments, Graded in the Browser
- Microcontroller Lab Experiments With No Kits
- Electrical Circuits Lab Online, With Graded Checks
- Virtual Electronics Lab for College Classes
- Free Arduino Simulator for Students, in the Browser
- Microcontroller Lab Viva Questions, With Answers
- Electronics Lab Report Template, With an Example
- Arduino Practical Exam Practice: Ten Timed Tasks
- ESP32 IoT Projects for Final Year Students
- Run an Electronics Lab for Online Classes
- Raspberry Pi Pico Button: Wiring and Code
- Arduino Halloween Props to Build in Your Browser
- Arduino Christmas Lights to Build in Your Browser
- Arduino Holiday Projects for Every Celebration
- Simulate an ESP32 and an Arduino Uno Together
- Voltage Divider Simulator With a Real Meter
- RC Filter Simulator With a Bode Plot
- NPN Transistor Switch Simulator
- Op-Amp Amplifier Simulator, Gain of 10
- LED I-V Curve, Simulated and Swept
- 555 Timer Simulator: an LED Blinker
- Arduino Simon Says Game: Four LEDs, Four Buttons
- Arduino Whack-a-Mole Game: LEDs, Buttons, Score
- Arduino Game Projects You Can Play in Your Browser
- Zener Diode Voltage Regulator Circuit, Simulated
- RLC Circuit Simulator: Series Resonance and Q, Live
- Active Low Pass Filter With an Op-Amp, Simulated
- BCD to 7 Segment Decoder: CD4511 Truth Table, Live
- Tinkercad ESP32 Simulator: A Free Alternative
- ESP32 Projects for Beginners You Can Run Right Now
- STEM Club Ideas: Electronics and Coding Sessions
- Best ESP32 Simulator? The Free Options, Compared
- Tinkercad Alternatives: 6 Simulators, Compared
- Wokwi Alternatives for Arduino and ESP32, Compared
- Best Logic Gate Simulator: Free Tools Compared
- Best Free Circuit Simulator: 7 Options Compared
The boards it is shown on
Each of these 29 boards has a built-in project with the Resistor in it.
- Arduino Uno R3
- ESP32-C3-DevKitM-1
- Raspberry Pi Pico
- STM32F411 Black Pill
- ATtiny85
- Arduino Nano
- Arduino Leonardo
- ESP32 DevKit V1
- ESP8266 NodeMCU V1.0
- Raspberry Pi Pico W
- SparkFun Pro Micro
- STM32 Blue Pill (F103)
- Arduino Uno R4 Minima
- BBC micro:bit V2
- Arduino Pro Mini
- Arduino Micro
- Wemos D1 mini
- ESP-01S
- Seeed XIAO ESP32-C3
- Seeed XIAO ESP32-C6
- ESP32-DevKitC V4
- ATmega328P on a breadboard
- Wemos D1 R32
- Waveshare RP2040-Zero
- WCH CH32V003
- STM32 Nucleo-F411RE
- Seeed XIAO ESP32-S3
- Raspberry Pi 4 Model B
- ESP32-C3 SuperMini
Arduino libraries for the Resistor
Built in, so the sketch compiles with nothing to install. Each page has the calls, the wiring and an example to run.
The rest of the bench
Every one of these is drawn and simulated the same way.
Wire up the Resistor
Open the editor and push it into the breadboard. It is free, and it runs on your own machine.