5mm Green LED – DIP Through-Hole (2 Pin)
1. What Is a 5mm Green LED?
The 5mm Green LED is a compact electronic light-emitting diode designed to produce green illumination when an appropriate electrical current flows through it.
It features a standard 5mm round body, a green-tinted transparent lens and two metal terminals for easy electrical connections.
Its through-hole design makes it suitable for breadboards, PCB assembly, indicator circuits and educational electronics projects.
The 5mm Green LED is commonly used in Arduino projects, robotics, electronic status indicators, traffic light models and DIY electronics systems.
2. What Can You Build With a 5mm Green LED?
The 5mm Green LED is suitable for projects such as:
- Arduino LED blinking circuits
- Electronic power and status indicators
- Traffic light demonstration models
- Battery charging status indicator prototypes
- Robotics indicator lights
- Sensor-based visual notifications
- Electronic control panels
- Breadboard electronics experiments
- Push-button-controlled lights
- Miniature decorative lighting
- Automatic streetlight demonstration models
- STEM and engineering projects
3. Who Is It For?
The 5mm Green LED is suitable for:
- Beginners learning 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 diode polarity, current limiting, digital outputs and basic electronic circuits.
4. How Does a 5mm Green LED Work?
An LED (Light Emitting Diode) is a semiconductor component that emits light when electrical current flows through it in the forward direction.
The LED contains two terminals:
- Anode (+): Positive terminal
- Cathode (−): Negative terminal
When the anode receives an appropriate positive voltage through a current-limiting resistor and the cathode is connected to the return path, the LED produces green light.
Working principle:
Power Supply → Current-Limiting Resistor → Green LED → Light Output
The LED can be switched using a push button, transistor or compatible microcontroller.
Unlike an automatic blinking LED, this standard green LED requires an external control circuit to create blinking effects.
5. Technical Specifications
| Specification | Details |
|---|---|
| Product Type | Green Light Emitting Diode |
| LED Diameter | 5mm |
| Illumination Colour | Green |
| Lens Appearance | Green-tinted transparent |
| Package Type | DIP / Through-Hole |
| Number of Pins | 2 |
| Polarity | Anode (+), Cathode (−) |
| Typical Forward Voltage | Approximately 2.0–3.4V, depending on LED technology |
| Common Reference Test Current | 20mA |
| Mounting Type | Through-hole |
| Current Limiting | External resistor required |
| Control Method | DC current / switching |
| Applications | Indicators, lighting and electronics projects |
Important: Green LEDs may have different forward-voltage characteristics depending on their semiconductor technology. Standard green indicator LEDs commonly operate around 2.1V, while some pure-green LEDs operate closer to 3.0–3.4V.
The values above are reference specifications, not verified electrical ratings for this specific LED.
Operating Precautions
- Always use a suitable current-limiting resistor.
- Observe the correct LED polarity.
- Do not connect the LED directly across a 5V power supply.
- Do not exceed its specified forward current.
- Use suitable driver circuitry when controlling multiple LEDs.
6. 5mm Green LED Pinout
The 5mm Green LED has two electrical terminals.
| Terminal | Function |
|---|---|
| Anode (+) | Positive connection |
| Cathode (−) | Negative connection |
How to identify the terminals:
- The longer lead is normally the anode (+).
- The shorter lead is normally the cathode (−).
- The flat edge on the LED body generally indicates the cathode.
If both leads have been trimmed to equal lengths, verify the polarity using a suitable multimeter or current-limited test circuit.
7. How to Connect a 5mm Green LED to Arduino
The 5mm Green LED can be controlled through an Arduino Uno digital output pin.
Required components:
- 1 × 5mm Green LED
- 1 × Arduino Uno
- 1 × 330Ω resistor
- Breadboard
- Jumper wires
Wiring connections:
| Component | Arduino Uno |
|---|---|
| Digital Pin D8 | 330Ω resistor |
| Other end of resistor | LED Anode (+) |
| LED Cathode (−) | GND |
The resistor limits the electrical current flowing through the LED.
For example, assuming a green LED forward voltage of 2.1V, a 330Ω resistor connected to a 5V output produces approximately 8.8mA of LED current.
This is a practical starting point for a basic Arduino LED demonstration.
8. Arduino Example Code
The following program makes the 5mm Green 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 HIGH signal turns the green LED ON.
- The LED remains illuminated for one second.
- The LOW signal turns the LED OFF.
- The program repeats continuously.
This beginner-friendly project helps students understand digital output control, LED polarity and basic Arduino programming.
9. Beginner Project: Push Button Controlled Green LED
Build a simple electronic status indicator using a 5mm Green LED and a tactile push button switch.
Components required:
- 1 × 5mm Green LED
- 1 × Arduino Uno
- 1 × 6x6x5mm Tactile Push Button Switch
- 1 × 330Ω resistor
- Breadboard
- Jumper wires
Wiring connections:
- LED anode → Arduino D8 through a 330Ω resistor
- LED cathode → Arduino GND
- Push button terminal → Arduino D2
- Opposite push button terminal → Arduino GND
Ensure the two button connections are on opposite switching contacts, not the same internally connected side.
Use Arduino’s internal pull-up resistor for the push button.
Example Arduino code:
const int buttonPin = 2;
const int ledPin = 8;
void setup() {
pinMode(buttonPin, INPUT_PULLUP);
pinMode(ledPin, OUTPUT);
}
void loop() {
int buttonState = digitalRead(buttonPin);
if (buttonState == LOW) {
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
}
}
Project operation:
- Press the push button to illuminate the green LED.
- Release the push button to turn the LED OFF.
This project teaches digital inputs, pull-up resistors, conditional programming and LED control.
10. Related Products
Complete your electronics project with:
- Arduino Uno R3 Compatible Programmable Board
- ESP32 Development Board
- 5mm Red LED
- 5mm Yellow LED
- 5mm White LED
- 5mm LED Assorted Pack of 5
- 5mm RGB LED – Common Cathode
- 5mm RGB LED – Common Anode
- RGB LED Module
- 6x6x5mm Tactile Push Button Switch
- LM393 LDR Light Sensor Module
- TTP223 Touch Sensor Module
- 330Ω Resistor
- Breadboard
- Jumper Wires
11. Related Tutorials
Explore these electronics learning topics:
- How to Connect a 5mm Green LED to Arduino
- Arduino LED Blinking Tutorial
- How to Identify LED Anode and Cathode
- How to Calculate LED Current-Limiting Resistors
- How to Build a Push Button LED Circuit
- How to Build a Traffic Light Using Arduino
- How to Connect a Green LED to ESP32
- Understanding Green LED Forward Voltage
- How to Control LED Brightness Using PWM
- Breadboard Basics for Beginners
12. Frequently Asked Questions
What is a 5mm Green LED?
A 5mm Green LED is a semiconductor light-emitting diode that produces green light when an appropriate forward current passes through it.
What is the diameter of this LED?
The LED has a nominal body diameter of 5mm.
How many pins does a 5mm Green LED have?
It has two terminals: an anode (+) and a cathode (−).
What is the typical forward voltage of a green LED?
The forward voltage depends on LED technology. Conventional green indicator LEDs may operate around 2.1V, while some pure-green LEDs require approximately 3.0–3.4V.
Can I connect a green LED directly to 5V?
No. Use a suitable current-limiting resistor or LED driver to prevent excessive current.
Which resistor should I use with Arduino Uno?
A 330Ω resistor is a practical starting choice for a typical green LED connected to a 5V Arduino digital output.
Can I use a 5mm Green LED with ESP32?
Yes. Use a suitable resistor and observe the ESP32 GPIO voltage and current limits. Some higher-forward-voltage green LEDs may illuminate weakly from a 3.3V output.
Can the green LED be connected to a breadboard?
Yes. Its through-hole terminals make it suitable for breadboard experiments and PCB assembly.
Can this LED be used as a status indicator?
Yes. Green LEDs are commonly used as visual indicators for power, readiness, activity and operating status in electronic circuits.
Can the green LED blink automatically?
No. This standard LED requires an external timing circuit or microcontroller to create blinking effects.
Can I adjust the brightness of the green LED?
Yes. A compatible microcontroller can use pulse-width modulation (PWM) to control its apparent brightness.
What is the difference between a green LED and an RGB LED?
A green LED produces green illumination, while an RGB LED combines red, green and blue channels for multicolour operation.
Is this LED included in the 5mm LED Assorted Pack?
Yes. Yagobotix also offers a five-colour assorted LED pack containing one red, green, blue, yellow and white LED.
Where can I buy a 5mm Green LED in Surat?
You can purchase the 5mm Green LED online from Yagobotix with same-day delivery and pickup available in Surat.
13. What Is Included?
- 1 × 5mm Green LED – DIP Through-Hole
Resistors, microcontroller boards, breadboards and jumper wires are not included.
14. Compatibility
The 5mm Green 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 suitable current-limiting resistors and observe the electrical limits of the connected controller.
The LED is an individual electronic component and does not contain an integrated resistor or programmable controller.
15. Buy 5mm Green LED Online in India
Add green visual indication to your next electronics project with the 5mm Green LED from Yagobotix.
Featuring a compact 5mm body, two-pin DIP design and green illumination, this LED is suitable for electronic indicators, Arduino projects, robotics, traffic light models and educational electronics experiments.
Whether you are building your first breadboard circuit, creating a status indicator or developing a custom PCB, the 5mm Green LED is a useful component for your electronics collection.
Why Choose Yagobotix?
- Individual LEDs and assorted LED colour packs available
- Electronic components for students, hobbyists and engineers
- Shipping across India
- Same-day delivery available in Surat
- Same-day pickup available in Surat
Same-day services are subject to stock availability, delivery coverage and applicable order cut-off times.
Add the 5mm Green LED to your cart and start building your next electronics project with Yagobotix!






There are no reviews yet.