Introduction
Imagine you want to light up a small bulb called an LED using a battery. If you connect it directly, the LED might burn out quickly. To keep it safe and working well, you need a way to control the electric flow.
Think of water flowing through a garden hose to a small sprinkler. If the water pressure is too high, the sprinkler might break. Adding a valve to reduce water flow protects the sprinkler and keeps it working well.
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ Power Source │──────│ Resistor (R) │──────│ LED (Light) │
└───────────────┘ └───────────────┘ └───────────────┘
│
↓
Current flows through resistor
to limit current to LED