SunFounder ESP32 Starter Kit
Now convert the above formula as shown below.
R = (Vp-Vl)/I
If Vp is 5V, Vl (Forward Voltage) is 2V, and I is 20mA, then R is 150.
So we can make the LED brighter by reducing the resistance of the resistor, but it is not recommended to go below 150
(this resistance may not be very accurate, because different suppliers provide LEDs have differences).
Below are the forward voltages and wavelengths of different color LEDs that you can use as reference.
LED Color Forward Voltage Wavelength
Red 1.8V ~ 2.1V 620 ~ 625
Yellow 1.9V ~ 2.2V 580 ~ 590
Green 1.9V ~ 2.2V 520 ~ 530
Blue 3.0V ~ 3.2V 460 ~ 465
White 3.0V ~ 3.2V 8000 ~ 9000
Example
• 2.1 Hello, LED! (Arduino Project)
• 2.2 Fading (Arduino Project)
• 2.1 Hello, LED! (MicroPython Project)
• 2.2 Fading LED (MicroPython Project)
• 2.2 Breathing LED (Scratch Project)
• 2.1 Table Lamp (Scratch Project)
712 Chapter 5. Learn about the Components in Your Kit