Mini breadboard: an LED and its resistor
Build the smallest useful circuit on a mini breadboard: a resistor and an LED in a row of strips, driven from a pin.
Basic · Beginner
In a real product: Status indicator (Consumer electronics): The power or status LED on almost every device is this circuit: a pin, a resistor and an LED.
A mini breadboard has just 17 columns and no power rails: enough for one small circuit. It follows the same rule as every breadboard, which is the only thing you must know to use one: the five holes of a column half are one wire.
What you'll learn
- Each column has two halves, rows a-e on top and f-j below the channel; five holes, one connection
- Why a resistor is placed in series with an LED (the LED has no limit of its own)
- Counting columns: a part joins the circuit through the column its leg is in
- Blinking an LED with
digitalWrite()anddelay()
How it works
Pin 9 goes by a jumper to column 3. The resistor goes from column 3 to column 8, so column 8 carries the signal after the resistor. The LED's anode (the long leg) is in column 8 and its cathode in column 9, and a jumper takes column 9 to GND. Current flows from the pin, through the resistor and the LED, to ground.
Nothing connects columns 3, 8 and 9 to each other except the parts themselves: remove the resistor and the LED goes dark.
Try this
- Move the LED's cathode to column 10 without moving the GND jumper and see why it goes out.
- Put a second LED in the same columns, facing the same way, and notice both light from one resistor.
- Blink faster and slower; at 50 Hz the eye sees it steady.
sketch.ino
// An LED on pin 9 through a resistor on a mini breadboard: blinks once a second.
const int LED = 9;
void setup() {
pinMode(LED, OUTPUT);
}
void loop() {
digitalWrite(LED, HIGH);
delay(500);
digitalWrite(LED, LOW);
delay(500);
}