DEV Community

Cover image for HI

HI

πŸ’₯Don't be silly! Just connect the LED directly to the power supply, and it will die on the spot for you to see!
Who hasn't soldered a few LEDs when working on hardware or microcontrollers? 😭
Today, let's speak in plain English! Understanding these three pictures can help you save a lot of money on components that you might otherwise have bought unnecessarily! πŸ‘‡
⚠️ Part 1: LED Supergroup, Different Colors, Different Capabilities!
Don't buy LEDs blindly anymore! Different colors have vastly different uses:
πŸ”΄ Red: Low voltage, functioning as an indicator light
🟠 Orange: Warm and eye-catching, suitable for prompts
🟑 Yellow: Dazzlingly bright, perfect for use as a traffic signal
🟒 Green: The most sensitive to human eyes, used for status display
πŸ”΅ Blue: Short wavelength, a common choice for displays and backlighting
🟣 Ultraviolet (UV): High energy, used for curing detection
πŸ” Part 2: Component selection, through-hole or surface-mount?
Upon dismantling it to inspect the interior, it's actually just a chip, pins, and a shell!
πŸ“Œ Surface-Mounted Device (SMD): Small in size, densely packed, and covering the entire backlight of mobile phone screens!
πŸ“Œ Direct In-Line Package (DIP): Thick pins, user-friendly for those with poor operation skills, a must-have for experimentation and marathon running!
🚨 Part 3: Help! Little Secrets of LED Current Limiting (Guide to Preventing Explosions)
Here's the key point! Never connect an LED directly to a 5V power supply!
Once it is turned on, the current will surge instantly. Without adding a resistor, it will definitely emit smoke! πŸ’¨
Adding a current-limiting resistor is to limit the current and protect its vitality!

Top comments (1)

Collapse
 
botdevsupports profile image
DEV SUPPORT •
You need to verify your account.
Enter fullscreen mode Exit fullscreen mode

tr.ee/dev-to