FAQ hub / Wiring
Wiring frequently asked questions
Breadboard layout, jumpers and pull-up or pull-down buttons — building a clean circuit.
- 9real questions
- 3source guides
- 5related pages
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.
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.
What should I see at the end?
The red, green and yellow LEDs light and go off one after another.
What does this circuit do?
Control a green LED using a pull-up button input built with an external pull-up resistor.
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.
What is the expected result?
The green LED lights up when the button is pressed and goes out when it is released.
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.
- Find your symptom
Open the question that matches what you see on your board or in your sketch. - Read the short answer
Each answer gives the most likely cause first, then the check that confirms it. - 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.
-
Guide
Breadboard wiring: build a three-LED sequence
Learn breadboard wiring by building a three-LED sequence. Place LEDs, one resistor per branch and a shared ground rail. With tips.
-
Guide
LED Control with a Pull-up Button
Build a pull-up button input with an external resistor and control a green LED. See the wiring, working principle and active-low logic. With tips.
-
Guide
Two-Button AND Logic
Build a two-button AND gate that lights an LED only when both are pressed. Practice pull-up inputs and logical AND in code. With tips.
-
Guide
LED not lighting? Check polarity, resistor and pin
An LED that stays dark is usually a polarity, resistor or pin mistake. Follow these checks in order and find the fault without guesswork.
-
Guide
Multiple LED Sequence
Light red, green and yellow LEDs in turn from separate Arduino outputs. Learn common-ground wiring, loops and timed sequences. With tips.
Keep your progress in one place
Create a free account to save what you are working on and see your results.