LEARN · FIRST PRINCIPLES
How a simple LED circuit works
- Uno D8current
- 330 Ω resistorcurrent
- LED anode → cathodereturn
- GND
330 Ω means 330 ohms; ordinary LED; unplug before changing wiring
D8 joins a 330-ohm resistor, then the LED anode; the LED cathode joins GND. Board internals connect this path to USB-supplied energy and return. HIGH lights this circuit, LOW turns it off. The program carries information; current supplies energy.
Connections and limits
When configured output HIGH, D8 drives the series resistor and forward-oriented LED to GND. Ground connects the return through board/USB wiring; the source and output driver complete the path. LOW removes forward drive in this arrangement.
Ground is a reference and return, not a charge sink. Current is the same along this unbranched external series path. The resistor limits current; LED direction matters. Do not draw source power shorted to GND.
Start with what must be physically connected. The Uno's D8 output joins a resistor. The resistor's other end joins the LED's anode. The LED's cathode joins board GND. An electrical connection is actual conductive contact, not the appearance of a line in a drawing. Conductive metal allows electric charge to move. The USB supply and the board's internal connections complete the energy and return path.
Before power: use the lab's Uno R3, an ordinary LED and a suitable series resistor, such as 330 Ω. Series means these parts lie along the same unbranched path. Ω means ohms, the unit describing resistance. Unplug USB to assemble or change uncertain wiring. Never connect power straight to ground, and never bypass the resistor to make the LED brighter.
What voltage contributes. The board's powered output can establish an electrical energy difference per unit of charge between D8 and GND. That difference is voltage, measured in volts (V). GND, or ground, is our chosen zero-volt comparison point and a return connection. It is not an Earth connection swallowing electricity. The complete return path reaches the source through the board and USB connections.
What current does. When the intended path is complete, correctly oriented and sufficiently driven, charge can pass through it. Current is the rate of that passage, measured in amps (A). A milliamp (mA) is one thousandth of an amp; 10 mA is 0.010 A. In this one unbranched path, the same current goes through the resistor and LED. The LED transfers energy into light and heat; charge is not used up inside it.
Why the resistor is there. Resistance describes opposition to current for a given voltage difference. The resistor helps keep current appropriate for the LED and board pin. An ordinary LED alone does not reliably limit itself to a safe current when connected across a supply. The resistor can be on either side of the LED in this series path; we keep D8 → resistor → LED → GND to match the reviewed lab.
Why LED direction matters. An LED is a light-emitting diode, a component that conducts much more easily in one direction and emits light with suitable current. Its anode faces the higher-driving side; its cathode faces ground in this example. Many new ordinary LEDs mark the anode with a longer leg and the cathode with a flat rim. Check the actual part's markings when legs have been trimmed or its package differs. Reversing it is a wiring fault, not a reason to raise the voltage.
What the breadboard changes. Hidden metal contacts join selected holes. Put the D8 wire and resistor first leg in contact group A; resistor second leg and LED anode in separate group B; LED cathode and GND wire in separate group C. A, B and C label three groups you choose. On common boards a five-hole group does not cross the center gap, and long side strips may be divided. Both legs of the resistor in the same connected group bypass its resistance; both LED legs in one group bypass the LED. Inspect the real contact layout.
What HIGH and LOW change. Configure D8 as an output in the program. For an Uno R3, output HIGH is approximately 5 V above ground under suitable conditions. It can drive the resistor/LED path so the LED lights. Output LOW is near ground, leaving too little forward-driving voltage for this LED, so it goes dark. These are digital states, represented by voltage ranges. HIGH does not always mean light: an LED wired to a positive supply with the output as its return could behave differently. Other boards use other signal voltages; 5 V is not universally safe.
Only now, a useful equation. For a resistor, voltage difference equals current times resistance: V = I × R. In this equation, V names the voltage quantity in volts, I names current in amps, and R names resistance in ohms. The symbol V is also used for the unit volts; context tells you which use applies. If about 3 V is across a 330 Ω resistor, current is about 3 divided by 330 amps, or 0.0091 A—about 9.1 mA. This is an approximate example for the resistor's voltage difference, not a claim that every LED drops the same voltage. Power, energy transferred each second, is measured in watts (W). “Milli” means one thousandth and “kilo” means one thousand, so 1 kΩ means 1,000 Ω. You do not need to rearrange equations to follow the first lab.
Try External LED: Build the Circuit. Read the Electronics guide for the rigorous treatment of quantities and limits. Add a button later using the pushbutton lab: pressing a button changes contacts, the board reads a resulting voltage state, and the program decides what output to produce.