Capacitors (Electrolytic)

An electrolytic capacitor is a polarized passive component that stores electrical energy in an electrostatic field, using an oxide layer between the anode foil and a conductive electrolyte…

Capacitor

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 Capacitor, drawn as in the circuit editor. Select a label to see that pin in the table below.

Pins

Pins of this part
PinLabelType
A+Power in
B−Bidirectional

Properties

What you can change in the Property Inspector.

Properties of this part
PropertyRange or choicesDefault
Capacitance0.001 to 100000 µF10 µF
Voltage Rating6.3V, 10V, 16V, 25V, 50V, 100V16V

An electrolytic capacitor is a polarized passive component that stores electrical energy in an electrostatic field, using an oxide layer between the anode foil and a conductive electrolyte to reach much higher capacitance-per-volume than non-polarized types. In Open Maker Studio, it does not have Blockly code blocks — it interacts directly with the real-time SPICE analog simulator to filter power supplies and set RC timing.


1. Schematic Symbol

Polarized capacitor symbol — one straight plate (anode), one curved plate (cathode):

+ A B

2. Polarity & Real-World Characteristics

  • Polarity: Polarized. The positive lead (Anode, longer leg) must be connected to a higher potential than the negative lead (Cathode, shorter leg).
  • Characteristics: High capacitance value (1µF to 10mF). Used as power supply filter reservoirs.
  • Real leakage modeled: not an ideal open circuit — OMS models a real ~10MΩ DC leakage resistance in parallel (about 500nA of leakage current at 5V), matching a real electrolytic's non-ideal behavior.

[!WARNING] Reverse Polarity / Overvoltage: Wiring an electrolytic backwards, or exceeding its Voltage Rating, recolors the capacitor body reddish and shows a "⚠ POLARITY" or "⚠ OVERVOLTAGE" label directly on the canvas. This is a purely visual, component-local check — it doesn't register in the Circuit Inspector's Faults tab (this component has an empty faults: [] array; the warning is computed inline in its own state(), not the shared fault-reporting system other components use).


3. Core Calculations & Math

  • Time Constant (τ\tau) of an RC Circuit: the time required to charge a capacitor to approximately 63.2% of its maximum voltage through a series resistor (RR):
    τ=R×C\tau = R \times C
    Where RR is in ohms and CC is in Farads. A capacitor is considered fully charged after 5τ5\tau (99.3%).
  • RC Charging Curve Formula:
    V(t)=Vmax×(1−e−tRC)V(t) = V_{max} \times \left(1 - e^{-\frac{t}{RC}}\right)
  • Capacitor Impedance (AC Reactance):
    Xc=12πfCX_c = \frac{1}{2\pi f C}
    As frequency (ff) increases, the capacitor's resistance to AC current decreases, enabling noise signals to bypass straight to GND.

4. Decoupling & Filtering Applications

  • Decoupling (Bypass) Capacitors: Placed between VCC and GND close to microcontrollers to filter high-frequency voltage fluctuations from power lines, ensuring the chip does not reset. Electrolytics are typically used for the larger, bulk reservoir capacitor on a board (often paired with a smaller ceramic/film capacitor for high-frequency bypass — see [[4.10 Film Capacitors]]).
  • DC Blocking (AC Coupling): Placed in series with signal wires (like audio outputs) to allow changing signals (AC) to pass while blocking static DC bias voltages — a non-polarized part is normally preferred here unless the DC bias guarantees correct electrolytic polarity at all times.

5. Component Properties (Property Inspector)

When you select an Electrolytic Capacitor on the canvas, you can modify the following parameters in the Property Inspector panel:

  • Capacitance (capacitance): Sets the stored charge capacity of the capacitor in microfarads (µF).
    • Default: 10 µF
    • Range: 0.001 µF to 100,000 µF
  • Max Voltage Rating (maxVoltage): Sets the maximum safe working voltage. Exceeding this triggers a polarity or overvoltage warning in the simulator.
    • Default: 16 V
    • Options: 6.3 V, 10 V, 16 V, 25 V, 50 V, 100 V

6. Programming Notes

Capacitors are purely passive analog components and have no associated Blockly blocks. You cannot control a capacitor directly through code. Instead, capacitors influence the electrical behavior of connected components — for example, an RC timing circuit with a capacitor will affect the voltage read by a board_analog_read block on an adjacent pin.


7. Simulator Behavior

  • Real-time Voltage Readout: While a simulation is running, OMS renders a live text overlay directly on the capacitor body — not a hover-only tooltip — showing the voltage across it (VcV_c) whenever it exceeds ~0.01V. Only voltage is shown; there's no current readout on this component (its state() never computes one).
  • No Oscilloscope Tool: OMS doesn't have a dedicated oscilloscope/scope feature for plotting a component's charge/discharge curve over time. The closest real tool is the Plotter (blockly/extensions/advanced/plotter.ts), which graphs values your own code sends over serial — it has no direct connection to a capacitor's real SPICE voltage, so it can't be used to visualize an RC charging curve unless your code explicitly reads and sends that value itself (e.g. via board_analog_read on an adjacent pin).
Capacitors (Electrolytic) — OMS Parts