Skip to content

FAQ hub / Arduino

Arduino frequently asked questions

Arduino boards, sketches, pins and serial output — answers taken from the Arduino guides on this site.

Frequently asked questions

9 answers, each linked to the guide it comes from.

What is this circuit for?

A digital output pin drives a red LED through a 220 ohm series resistor, while a push button connects a digital input pin to the 5 volt rail. A 10 kiloohm pull-down resistor holds the input at LOW while the button is open. The sketch reads the input continuously: when the button is pressed the output goes HIGH and the LED lights; when it is released the output goes LOW and the LED goes off. It is the smallest example that combines digital reading with digital driving.

Source: Arduino circuits: a first hands-on project

How does it work?

The board reads the voltage level at the digital input pin to decide the button state. Pressing the button connects the pin to 5 V, so a HIGH level (logic 1) is read. Releasing it leaves the input floating, but the 10 kiloohm pull-down resistor pulls the voltage down to 0 V and a LOW level (logic 0) is read. These two stable states let the board tell whether the button is really pressed. The sketch then sets the output pin HIGH or LOW accordingly, and the 220 ohm resistor limits the current through the LED so the component is protected. Without the pull-down resistor the input would float and random values would be read.

Source: Arduino circuits: a first hands-on project

What should I see at the end?

The red LED lights while the button is held down and goes off when the button is released.

Source: Arduino circuits: a first hands-on project

Do I need to solder anything?

No. A solderless breadboard holds component legs with spring clips, so you can reuse every part.

Source: Arduino breadboard wiring for beginners

Are the two power rails joined?

Often they are split in the middle. Test with a continuity setting before relying on the whole rail.

Source: Arduino breadboard wiring for beginners

Why does my LED stay dark?

Check LED polarity, confirm the resistor shares a row with the LED leg, and verify the digital pin is set as an output.

Source: Arduino breadboard wiring for beginners

What does this circuit do?

A basic input-output circuit that uses a button and a pull-down resistor to turn an Arduino output LED on and off.

Source: Button-Controlled LED

How does the circuit work?

The control board determines the button state by reading the voltage level at the digital input pin. When the button is pressed, the pin is connected to 5 volts and HIGH (logic 1) is read. When the button is released, the input end is left floating; thanks to the 10-kilohm pull-down resistor the voltage is pulled to 0 volts and LOW (logic 0) is read. These two stable states let the board clearly understand whether the button is actually pressed. The software sets the output pin HIGH or LOW according to the state it reads; the 220-ohm resistor limits the current through the LED to protect the component. Without the pull-down resistor, the input would float and random values would be read.

Source: Button-Controlled LED

What is the expected result?

The red LED lights up while the button is pressed and goes out when the button is released.

Source: Button-Controlled LED

How to use these answers

Three short steps.

  1. Find your symptom
    Open the question that matches what you see on your board or in your sketch.
  2. Read the short answer
    Each answer gives the most likely cause first, then the check that confirms it.
  3. Open the full guide
    Follow the source link under the answer for the complete circuit and code.

Related guides

Five real pages to continue from here.

Keep your progress in one place

Create a free account to save what you are working on and see your results.