Small non-polarized through-hole ceramic disc capacitor. Common values: 10pF, 22pF, 100pF, 1nF, 10nF, 100nF (0.1µF), 1µF. Used for decoupling/bypass on power supplies (typically 100nF close to each IC's Vcc pin), oscillator load (22pF on crystal pins), and high-frequency filtering. Not suitable for bulk energy storage.
| Pin | Signal | Description |
|---|---|---|
1 |
Lead 1 | |
2 |
Lead 2 |
2-pin non-polarized component. Use componentId capacitor-ceramic and put the value in the label, e.g. '100nF', '22pF', '1µF', '10nF'. Pins: 1 (left lead), 2 (right lead). Direction-independent — flip freely. Typical use: decoupling capacitor between Vcc and GND right next to a sensor/IC (100nF), crystal oscillator load capacitors (22pF from each crystal pin to GND).
| From | To | Wire |
|---|---|---|
board:5V |
x1:1 |
red |
board:GND |
x1:2 |
black |
This example was written and compile-checked for the arduino-uno. Codey Online adapts it to any other supported board for you.
// Canonical beginner example for a ceramic capacitor on Arduino Uno
// This demonstrates a simple decoupling connection across 5V and GND.
// Ceramic capacitors are non-polarized, so either lead can go to either side.
void setup() {
// No code is needed for a passive capacitor example.
}
void loop() {
// The capacitor works continuously as a power-supply decoupling component.
}
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