Skip to content

FAQ hub / Wiring

Wiring frequently asked questions

Breadboard layout, jumpers and pull-up or pull-down buttons — building a clean circuit.

Frequently asked questions

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

What is this circuit for?

Three LEDs - red, green and yellow - are connected to three separate digital output pins. Each LED has its own 220 ohm series resistor between the output pin and the anode, and all cathodes share a common ground rail. The sketch sets the pins HIGH one after another with a short delay in between, so the LEDs light and go off in sequence. The shared ground gives every branch the same reference point, and a separate resistor per branch keeps the current of one LED from affecting the others.

Source: Breadboard wiring: build a three-LED sequence

How does it work?

Every output pin can be set HIGH or LOW independently. When a pin is set HIGH, about 5 V reaches the LED anode; because the cathode is tied to ground, the LED conducts in the forward direction and the 220 ohm resistor limits the current. When the pin is set LOW, both ends of the LED sit at the same potential and current stops. The sketch sets the three pins HIGH in turn with short delays to create a timed sequence. The shared ground ties all three branches to the same 0 V reference, and the per-branch resistor means one LED cannot change the current of another.

Source: Breadboard wiring: build a three-LED sequence

What should I see at the end?

The red, green and yellow LEDs light and go off one after another.

Source: Breadboard wiring: build a three-LED sequence

What does this circuit do?

Control a green LED using a pull-up button input built with an external pull-up resistor.

Source: LED Control with a Pull-up Button

How does the circuit work?

In a pull-up arrangement, the input pin is held connected to the supply voltage through a 10-kilohm resistor. When the button is open, about 5 volts is present and the board reads HIGH (logic 1). When the button is pressed, the pin is connected directly to ground; this low-resistance path overrides the 10-kilohm resistor and the pin drops to LOW (logic 0). The software interprets this LOW value as the button being pressed and lights the LED. The resistor's job is to prevent the pin from floating when the button is open and to create two stable states. The same method is used in many switch and sensor circuits that require an external pull-up.

Source: LED Control with a Pull-up Button

What is the expected result?

The green LED lights up when the button is pressed and goes out when it is released.

Source: LED Control with a Pull-up Button

What does this circuit do?

A simple AND-gate application that lights an LED only when two buttons are pressed at the same time.

Source: Two-Button AND Logic

How does the circuit work?

Thanks to its own 10-kilohm pull-up resistor, each button keeps the input pin at HIGH (logic 1) when not pressed. When a button is pressed, the pin is connected to ground and LOW (logic 0) is read. The software reads both inputs and applies a logical AND operation: the output pin is set HIGH and the LED lights only when both inputs are LOW at the same time. If either input is floating, the output stays LOW. This behaviour is the software equivalent of a hardware AND gate. Separate pull-up resistors prevent the two inputs from affecting each other, while the common ground keeps the buttons and the LED at the same reference level.

Source: Two-Button AND Logic

What is the expected result?

The red LED lights up only when both buttons are pressed at the same time.

Source: Two-Button AND Logic

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.