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):
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 ownstate(), not the shared fault-reporting system other components use).
3. Core Calculations & Math
- Time Constant () of an RC Circuit: the time required to charge a capacitor to
approximately 63.2% of its maximum voltage through a series resistor ():
Where is in ohms and is in Farads. A capacitor is considered fully charged after (99.3%). - RC Charging Curve Formula:
- Capacitor Impedance (AC Reactance):
As frequency () 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 to100,000µF
- Default:
- Max Voltage Rating (
maxVoltage): Sets the maximum safe working voltage. Exceeding this triggers a polarity or overvoltage warning in the simulator.- Default:
16V - Options:
6.3V,10V,16V,25V,50V,100V
- Default:
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
() 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. viaboard_analog_readon an adjacent pin).

