Getting started

Build Your First Arduino Circuit

A first circuit is mostly a habit: one board, one breadboard, one LED and one resistor. Here is how to put them together and why each connection matters.

22 November 20268 min read
A red LED and a resistor connected to a digital pin and ground on an Arduino breadboard circuit
A minimal first circuit: one LED, one series resistor and two connections to the board.

Bu projeyi gerçekten kurmak istersen parçaları hobidevre.com'dan temin edebilirsin →

Build it for real

To build this project for real, get the parts from hobidevre.com → hobidevre.com →

More build guides: hobidevre.com/blog

What you need

Start with the smallest set that can produce a visible result: an Arduino Uno or a compatible board, a solderless breadboard, a single 5 mm red LED, a 220 ohm resistor, two jumper wires and a USB cable. That is enough to build and observe a complete circuit without adding variables you do not yet understand.

A red LED is a good first choice because it is bright at modest current and its forward voltage is low enough for a 5 V board. The 220 ohm resistor limits the current to a safe value. You do not need a kit with dozens of parts; you need a few parts whose role you can explain.

  • A control board with a USB connection
  • A breadboard with at least one connected row of holes
  • One LED and one 220 ohm resistor
  • Two solid-core jumper wires

Know your board pins

Look at the board before wiring anything. Digital pins are the numbered headers used for reading and writing logic states. GND pins are the return path for current, and the board has several of them because different parts of a circuit all need a shared reference point. The 5V and 3.3V headers are regulated supplies, not general inputs.

Pin 13 is convenient for a first build because most Uno-style boards also have a small LED soldered to the board on that pin. When pin 13 goes high, that onboard LED lights as well as the one on your breadboard. This gives you a quick way to tell whether the code is running even if your external wiring is wrong.

Never connect 5V directly to GND, and never drive an LED without a series resistor. A short circuit or an unlimited LED current are the two easiest ways to damage a board at this stage.

Read the breadboard

The holes on a breadboard are not all connected. Along the main area, groups of five holes in a vertical column are joined by a metal strip, and a trench across the middle separates the two halves. Rows on the left and right of that trench are not connected to each other. This is what lets an integrated circuit sit across the gap without its pins being shorted together.

The long strips along the top and bottom are power rails. On many boards they run horizontally in one continuous line; on others they are split in the middle. If your board has a split rail, a jumper is needed to bridge the two halves. Getting this pattern right is more important than the order in which you plug things in.

Wire the LED

An LED has a polarity. The longer leg is the anode and the shorter leg is the cathode; there is also a flat edge on the plastic body marking the cathode. Current must enter the anode and leave the cathode. If the LED is reversed it simply will not light, which is harmless and easy to fix.

Place the LED so that its two legs land in different five-hole groups on the same half of the board. Connect the anode through the 220 ohm resistor to digital pin 13, and connect the cathode to a GND pin. The resistor may sit before or after the LED in the series path; the current is the same either way. What matters is that the loop from pin 13 back to GND contains both parts.

Upload the sketch

Open the editor and enter a small program that sets pin 13 as an output, then switches it on and off with a pause between the two states. The setup function runs once when the board starts; the loop function repeats forever. Choosing the correct board type and serial port before uploading is part of the task, not a detail to skip.

After uploading, the onboard LED should blink. If it does, your code and port are correct and any remaining problem is in the external wiring. If neither LED blinks, the problem is on the computer or board side rather than in the circuit.

const int ledPin = 13;

void setup() {
  pinMode(ledPin, OUTPUT);
}

void loop() {
  digitalWrite(ledPin, HIGH);
  delay(500);
  digitalWrite(ledPin, LOW);
  delay(500);
}

Test and troubleshoot

Work from the outside in. If the onboard LED blinks but the breadboard LED stays dark, check the LED legs, confirm the resistor is actually in the loop and verify that both jumper wires are seated in connected rows. A wire placed one hole away from the LED leg is a common cause of a silent circuit.

If the LED is constantly on, check whether the two legs are touching or sitting in the same five-hole group. If it is very dim, confirm the resistor value and that you are using a 5 V-tolerant LED. Once the blink is reliable, you have a working platform for every other circuit in this series.

Get the parts

If you want to keep this build, the individual parts are available from hobidevre.com. The same LED and resistor appear in most of the later projects.

Frequently asked questions

Do I really need a resistor for one LED?

Yes. A resistor limits current. Without it the LED draws as much as the pin and supply can deliver, which can damage the LED or the pin.

Can I use the onboard LED instead of wiring one?

Yes. Pin 13 lights the onboard LED on most Uno-style boards, which is useful for testing code before you trust the external circuit.

Why is nothing happening after I upload?

Check the selected board and port first. If the onboard LED blinks, the code is fine and the fault is in the breadboard wiring.

Related reading

Practise in the browser

Open the same layout in the simulator and follow the steps. Sign in to save your work.