Codey OnlineArduino & ESP32 component library › Electrolytic Capacitor
Electrolytic Capacitor
Passive parts

Electrolytic Capacitor

Polarized aluminium-electrolytic through-hole capacitor in a cylindrical can. Common values: 1µF, 10µF, 47µF, 100µF, 220µF, 470µF, 1000µF, 2200µF, with voltage ratings of 6.3V, 10V, 16V, 25V, 35V, 50V, 63V. Used for bulk energy storage, smoothing power-supply ripple, slow timing, and audio coupling. ALWAYS rated for at least 1.5× the maximum applied voltage; reverse-biasing destroys (and can rupture) the capacitor.

Pinout — Electrolytic Capacitor

Pin Signal Description
ANODE Positive lead (+, long leg) — must connect to the more-positive side
CATHODE Negative lead (−, white stripe side) — must connect to the more-negative side

Wiring notes

2-pin POLARIZED component. Use componentId capacitor-electrolytic and put the value + voltage rating in the label, e.g. '10µF 16V', '470µF 25V', '1000µF 35V'. Pins: ANODE (+, long leg), CATHODE (-, marked with a white stripe on the can). ANODE always to the more-positive node, CATHODE to the more-negative node. NEVER reverse-bias. Pick a voltage rating ≥1.5× the maximum voltage in your circuit. Typical use: bulk capacitor across power rails (e.g. 220µF across 5V→GND on a motor driver), audio coupling, or as RC timing element.

Example wiring diagram — Electrolytic Capacitor

From To Wire
board:5V x1:ANODE red
board:GND x1:CATHODE black

Example Arduino code — Electrolytic Capacitor

This example was written and compile-checked for the arduino-uno. Codey Online adapts it to any other supported board for you.

// Electrolytic capacitor example: power supply smoothing / bulk decoupling
// 
// This simple beginner example shows how to connect a polarized electrolytic
// capacitor across the Arduino Uno's 5V and GND rails.
//
// IMPORTANT:
// - ANODE (+, long leg) goes to 5V
// - CATHODE (-, white stripe side) goes to GND
// - Never reverse-bias an electrolytic capacitor

void setup() {
  // No active code needed for a passive capacitor demo.
  // Keeping setup() empty is normal for this kind of wiring example.
}

void loop() {
  // Nothing to do here.
}

Related components

⚙️

Ceramic Capacitor

⚙️

Diode

Linear Potentiometer (3-pin)

Linear Potentiometer (3-pin)

⚙️

Resistor

Build your Arduino or ESP32 project with AI

Describe what you want to build. Codey Online writes the code, draws the wiring diagram, compiles it and flashes your board straight from the browser.

Start for free