5mm Yellow LED – DIP Through-Hole (2 Pin)
1. What Is a 5mm Yellow LED?
The 5mm Yellow LED is a compact light-emitting diode designed to produce yellow light when electrical current flows through it in the correct direction.
It features a standard 5mm round lens and two metal terminals for connecting it to electronic circuits.
The LED can be installed directly on a compatible PCB or inserted into a breadboard for experimentation.
Its simple design makes it suitable for status indicators, warning lights, robotics, Arduino projects and educational electronics applications.
2. What Can You Build With a 5mm Yellow LED?
The 5mm Yellow LED is suitable for various electronics applications, including:
- Electronic status indicators
- Warning and notification lights
- Arduino LED blinking projects
- Traffic light demonstration models
- Battery status indicator circuits
- Robotics indicator lights
- Breadboard electronics experiments
- Digital output demonstrations
- Electronic control panels
- DIY decorative lighting
- STEM and engineering projects
3. Who Is It For?
The 5mm Yellow LED is suitable for:
- Beginners learning basic electronics
- School and college students
- Engineering students
- Arduino and ESP32 enthusiasts
- Robotics hobbyists
- PCB designers
- STEM educators and trainers
- DIY electronics makers
It is particularly useful for learning about electrical polarity, current limiting, digital outputs and basic electronic circuits.
4. How Does a 5mm Yellow LED Work?
An LED (Light Emitting Diode) is a semiconductor component that emits light when an appropriate forward current passes through it.
The LED has two terminals:
- Anode (+): Positive terminal
- Cathode (−): Negative terminal
When the anode is connected to a suitable positive supply through a current-limiting resistor, and the cathode is connected to the negative return, the LED emits yellow light.
Working principle:
Power Supply → Current-Limiting Resistor → LED → Yellow Light
Unlike an ordinary incandescent bulb, an LED requires correct polarity and appropriate current limiting.
5. Technical Specifications
| Specification | Details |
|---|---|
| Product Type | Light Emitting Diode |
| LED Diameter | 5mm |
| LED Colour | Yellow |
| Lens Appearance | Yellow-tinted transparent |
| Package Type | DIP / Through-Hole |
| Number of Pins | 2 |
| Polarity | Anode (+), Cathode (−) |
| Typical Forward Voltage | 2.0–2.2V |
| Typical Reference Current | 20mA |
| Typical Yellow Wavelength | Approximately 585–595nm |
| Control Method | DC current / switching |
| External Resistor | Required |
| Mounting | Breadboard or PCB |
| Application | Visual indicators and electronics projects |
Important: Forward voltage, current and wavelength values are typical reference specifications for comparable yellow LEDs, not batch-verified ratings for this particular component.
Use a suitable current-limiting resistor and avoid exceeding the manufacturer’s electrical limits.
6. 5mm Yellow LED Pinout
The 5mm Yellow LED has two terminals.
| Terminal | Function |
|---|---|
| Anode (+) | Positive connection |
| Cathode (−) | Negative connection |
How to identify the pins:
- The longer leg is normally the anode (+).
- The shorter leg is normally the cathode (−).
- The flat edge on the LED body generally indicates the cathode.
If the leads have been trimmed, check the flat edge or use a suitable current-limited test circuit to identify polarity.
7. How to Connect a 5mm Yellow LED to Arduino
The 5mm Yellow LED can be controlled using an Arduino Uno digital output pin.
Required components:
- 1 × 5mm Yellow LED
- 1 × Arduino Uno
- 1 × 330Ω resistor
- Breadboard
- Jumper wires
Wiring connections:
| LED / Component | Arduino Uno |
|---|---|
| Digital Pin D8 | 330Ω resistor |
| Other end of resistor | LED Anode (+) |
| LED Cathode (−) | GND |
The resistor limits the current flowing through the LED.
For a typical yellow LED with a 2.1V forward voltage, a 330Ω resistor on a 5V supply gives approximately 8.8mA of LED current.
Always use a suitable current-limiting resistor. Do not connect the LED directly across the Arduino’s 5V and GND pins.
8. Arduino Example Code
The following Arduino program makes the yellow LED blink continuously.
const int ledPin = 8;
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}
How the program works:
- Arduino configures digital pin D8 as an output.
- The output becomes HIGH, turning the LED on.
- The LED remains illuminated for one second.
- The output becomes LOW, turning the LED off.
- The program repeats continuously.
This is a beginner-friendly project for learning Arduino digital output control.
9. Beginner Project: Arduino Traffic Light System
Build a miniature traffic light using a 5mm Yellow LED, a red LED and a green LED.
Components required:
- 1 × 5mm Yellow LED
- 1 × 5mm Red LED
- 1 × 5mm Green LED
- 1 × Arduino Uno
- 3 × 330Ω resistors
- Breadboard
- Jumper wires
Wiring connections:
| Component | Arduino Uno |
|---|---|
| Red LED anode | D8 through a resistor |
| Yellow LED anode | D9 through a resistor |
| Green LED anode | D10 through a resistor |
| All LED cathodes | GND |
Example Arduino code:
const int redLED = 8;
const int yellowLED = 9;
const int greenLED = 10;
void setup() {
pinMode(redLED, OUTPUT);
pinMode(yellowLED, OUTPUT);
pinMode(greenLED, OUTPUT);
}
void loop() {
// Red light
digitalWrite(redLED, HIGH);
delay(3000);
digitalWrite(redLED, LOW);
// Green light
digitalWrite(greenLED, HIGH);
delay(3000);
digitalWrite(greenLED, LOW);
// Yellow light
digitalWrite(yellowLED, HIGH);
delay(1000);
digitalWrite(yellowLED, LOW);
}
The Arduino controls each LED in sequence to demonstrate a simplified traffic light system.
This project helps students understand digital output pins, timing functions, LED control and basic automation.
It is intended for educational demonstrations, not real traffic management.
10. Related Products
Complete your electronics project with:
- Arduino Uno R3 Compatible Programmable Board
- ESP32 Development Board
- 5mm RGB LED – Common Cathode
- 5mm RGB LED – Common Anode
- RGB LED Module
- 6x6x5mm Tactile Push Button Switch
- LDR Light Sensor Module
- 5V Passive Buzzer
- 330Ω Resistor
- Breadboard
- Jumper Wires
11. Related Tutorials
Explore these electronics learning topics:
- How to Connect a 5mm Yellow LED to Arduino
- How to Identify LED Anode and Cathode
- How to Calculate an LED Current-Limiting Resistor
- Arduino LED Blinking Project
- How to Build a Traffic Light Using Arduino
- How to Control an LED Using a Push Button
- How to Use LEDs with ESP32
- Understanding LED Forward Voltage
- Breadboard Basics for Beginners
12. Frequently Asked Questions
What is a 5mm Yellow LED?
A 5mm Yellow LED is a light-emitting diode that produces yellow light when supplied with an appropriate forward current.
What is the diameter of this LED?
The LED has a nominal body diameter of 5mm.
How many pins does a 5mm Yellow LED have?
It has two terminals: an anode (+) and a cathode (−).
What is the operating voltage of a 5mm Yellow LED?
Comparable standard yellow LEDs typically have a forward voltage of approximately 2.0–2.2V. This is not the same as a rated supply voltage.
Can I connect the LED directly to a 5V supply?
No. A standard LED requires suitable current limiting. Use a resistor or an appropriate LED driver.
Which resistor should I use with Arduino Uno?
A 330Ω resistor is a practical starting choice for a single typical yellow LED connected to a 5V Arduino output.
Can I use a 5mm Yellow LED with ESP32?
Yes. Use a suitable current-limiting resistor and keep the GPIO current within the ESP32’s electrical ratings.
Can I use the LED on a breadboard?
Yes. Its through-hole terminals are suitable for breadboard experiments.
What is the difference between a yellow LED and an RGB LED?
A yellow LED produces a single colour, while an RGB LED contains red, green and blue light-emitting elements for multicolour operation.
Does the LED have a positive and negative terminal?
Yes. The anode is positive and the cathode is negative.
Can I use this LED for a traffic light project?
Yes. It can be combined with red and green LEDs to build a traffic light demonstration model.
Can the LED blink automatically?
Not by itself. An external circuit, timer or microcontroller must control the LED to create a blinking effect.
What is included in the package?
One 5mm Yellow DIP LED is included unless a different quantity is selected or specified.
Where can I buy a 5mm Yellow LED in Surat?
You can order the 5mm Yellow LED online from Yagobotix with same-day delivery and pickup available in Surat.
13. What Is Included?
- 1 × 5mm Yellow LED – DIP Through-Hole
Resistors, microcontroller boards, breadboards, jumper wires and other electronic components are not included.
14. Compatibility
The 5mm Yellow LED can be used in suitable electronic circuits involving:
- Arduino Uno
- Arduino Nano
- Arduino Mega
- ESP32
- ESP8266
- Raspberry Pi GPIO
- STM32 development boards
- Breadboard circuits
- Custom PCB designs
- Battery-powered indicator circuits
Always use appropriate current-limiting components and ensure that the control circuit operates within its electrical limits.
15. Buy 5mm Yellow LED Online in India
Add a bright yellow visual indicator to your next electronics project with the 5mm Yellow LED from Yagobotix.
Its compact 5mm design, simple two-pin connection and through-hole mounting make it suitable for robotics, Arduino circuits, indicator lights, educational experiments and DIY electronics.
Whether you are building your first LED circuit or developing a custom PCB, this LED is a useful component for your electronics collection.
Why shop with Yagobotix?
- Electronic components for students, hobbyists and engineers
- Shipping across India
- Same-day delivery available in Surat
- Same-day pickup service available in Surat
Same-day services are subject to stock availability, delivery coverage and applicable order cut-off times.
Add the 5mm Yellow LED to your cart and start building your next electronics project with Yagobotix!





There are no reviews yet.