Electronics & Arduino Calculators
Calculators and references for designing, building, and debugging small electronics and Arduino projects.
These are the calculators that come up while designing, building, and debugging small electronics: picking a resistor for an LED, reading the code printed on a capacitor, checking whether a UART baud rate will work at your clock speed, or working out what map() actually returns. Each one solves a single problem from the values you type in, and its page explains the formula behind the answer, so you can check the working instead of trusting a bare number.
They are written for hobbyists, students, and firmware engineers working with Arduino, ESP32, STM32, and similar boards, but most of the component and circuit tools apply to any electronics project. They follow the usual conventions — E12 and E24 standard resistor values, three-digit EIA capacitor codes, 8N1 serial framing — and each tool notes where the simple model stops matching real parts.
Results are for prototyping and reference. For anything safety- or design-critical, check the component datasheet or a second method before relying on a value.
Arduino
Answers to the questions that come up while writing a sketch: what map() returns, what an analogRead() value means in volts, when millis() rolls over, and how much SRAM is left.
Compute map(value, fromLow, fromHigh, toLow, toHigh), truncation included.
Arduino Analog Read Voltage CalculatorConvert analogRead() raw values to voltage, or the reverse, for 10/12-bit ADCs.
Arduino Servo Pulse Width CalculatorConvert servo angle (0-180°) to pulse width in microseconds, and back.
Arduino millis()/micros() Rollover CalculatorSee exactly when millis() or micros() overflow, and check interval math.
Arduino Serial Baud/Timing CalculatorEstimate Serial transfer time and effective throughput at a given baud rate.
Arduino SRAM Usage EstimatorEstimate global-variable SRAM usage against your board's memory budget.
Arduino Board Pinout Reference (Extended)Pinouts for Leonardo/Micro, Due, Pro Mini, ATtiny85, ESP32-C3/S3.
Arduino Board Manager URL / arduino-cli GeneratorGenerate Boards Manager URLs or arduino-cli commands for ESP32, RP2040, Teensy, and more.
Arduino Sketch FormatterReformat a .ino sketch with clean, brace-based indentation.
Arduino Syntax HighlighterHighlight Arduino/C++ code and copy it as colored HTML or plain text.
Resistors, capacitors & inductors
Read the markings on passive components, combine them in series or parallel, and pick a value and wattage that will survive the circuit.
Decode 4, 5, and 6-band resistor color codes into resistance, tolerance, and temperature coefficient.
Resistor Power (Wattage) CalculatorCalculate resistor power dissipation and get a suggested safe wattage rating.
Series/Parallel Resistor CalculatorCombine any number of resistor values in series or parallel.
LED Series Resistor CalculatorFind the current-limiting resistor needed to safely drive one or more LEDs.
Capacitor Code DecoderDecode 3-digit/letter capacitor markings like "104" or "4n7" into standard capacitance values.
Series/Parallel Capacitor CalculatorCombine any number of capacitor values in series or parallel.
Inductor Color Code CalculatorDecode the 4-band color code on an axial inductor into its inductance value.
Crystal Oscillator Load Capacitance CalculatorFind crystal load capacitance from C1/C2, or matched C1/C2 from a target CL.
Circuits & power
The standard circuit formulas: Ohm's law, dividers, op-amp gain, regulators, timers, and how long a battery will last.
Solve for voltage, current, or resistance — plus power — from any two known values.
Voltage Divider CalculatorCalculate output voltage from two resistors, or the R2 needed to hit a target voltage.
Op-Amp Gain CalculatorCalculate inverting or non-inverting op-amp gain from feedback and input resistors.
Zener Diode Regulator CalculatorSize the series resistor for a zener shunt voltage regulator.
555 Timer Frequency CalculatorCalculate astable frequency/duty cycle or monostable pulse width for a 555 timer.
RC Time Constant CalculatorCalculate resistor-capacitor time constant, cutoff frequency, and charge-time milestones.
Battery Life EstimatorEstimate runtime for a battery-powered project from capacity and average current draw.
Wire Gauge (AWG) Current Capacity CalculatorPick a safe wire gauge for a given current draw, run length, and acceptable voltage drop.
Decibel (dB) CalculatorConvert between power/voltage ratios and decibels.
Firmware, timing & protocols
Bit-level and timing work for microcontroller firmware: baud rate error, PWM, checksums, register masks, pinouts, and control loops.
Compute UART bit time, frame time, throughput, and baud rate divisor error.
PWM Duty Cycle CalculatorConvert between PWM frequency/duty cycle and raw on-time/off-time pulse widths.
CRC Checksum CalculatorCompute CRC-8 to CRC-64 checksums (11 named variants) over text or hex bytes.
Bit/Register CalculatorSet, clear, and toggle individual bits in an 8/16/32-bit register with live hex/binary output.
Microcontroller Pinout ReferenceSearchable pin reference for Arduino Uno/Nano/Mega, ESP32, ESP8266, and STM32 Blue Pill.
PID Controller SimulatorTune Kp, Ki, and Kd and watch the closed-loop step response redraw live on an animated chart.
Guides
Ohm's Law and the Power Triangle
V = I x R and P = V x I, the six formulas they produce, and how to use them to size a resistor, check a wire, or work out what a component dissipates.
How to Size a Resistor's Wattage
Work out how much heat a resistor dissipates with P = I squared R or V squared over R, why the I squared term matters, and how much headroom to leave.
The Arduino map() Function, Explained
What map() actually does (integer linear scaling), the truncation and overflow traps, when to use floating point instead, and how to reverse or constrain it.
Reading Capacitor Codes: 104, 4n7, 473K and More
The three-digit EIA code, letter-as-decimal shorthand, plain pF values, and the tolerance letter — how to turn a tiny printed marking into a real capacitance.
UART Framing and Baud Rate Error
What a UART frame looks like on the wire, why 8N1 gives only 80% throughput, and how an integer clock divisor creates baud rate error that corrupts data.
Capacitors in Series and Parallel, Explained
Parallel capacitors add, series capacitors combine like parallel resistors. Why that is, worked examples, and what happens to voltage ratings and tolerance.
How to Choose an LED Resistor (Series LEDs Too)
The LED resistor formula with worked examples, typical forward voltages, why to round up and leave headroom, and how to handle LEDs in series and in parallel.