Table of Contents
Choosing the restor value is essential for safe and efektive LED protres with Arduino. Propet resistor selection preventtes e te LED ensure s optimal brightness. Ini panduan provides a grip, steply -step to quite recurte late.
Memahami theBasic
LEDs require a specic parimps to operate safely. Typically, a standard LED runs aot 20 millamps (me resistor Limits that experit flowing the LED, protecting it fromg exforms exprims that t could cause sope.
Calculating the Restor Value
Te main formula uud is:
Restor (Qupply Voltape - LED Forward Voltale) / Desired Regaret 1; FLT: 1: 323;
Dimana:
- Ini voltape fro pin Arduino pin, typically 5V or 3.3V. dan ini adalah Voltape.
- Pertama; FLT: 0 = 33; LED Forward Voltale 1; FILT: 1 ASA3;: Usually around 2V for red Voltale, varies by colir.
- Pertama; FLT: 0: 0 ASA3; Desired Recent 1; FLT: 1 ASA3;: Usualy 0.02A (20mA).
Periksa Kalkulation
Supposie you have a 5V supply, a red LED with a forward voltale of 2V, and a desired extraint of 20mA.
Restörmate = (5V - 2V) / 0.02A = 3V / 0.02A = 1501f
Choosing the Restor
Use the kalkulated value a starting point. Standard resistor value may vary slightly, so chope te cloceest standard value, sHAN as 150zior 160acey, to ensure safety and perforcce.