与LED串联的电阻被用于控制该LED导通时的电流量.为了计算电阻值,你需要知道输入电源电压(Vs,一般为5V),LED的正向电压(Vf)和你需要流过LED的电源(/)的数值. 其电阻欧姆值的计算公式(称为欧姆定律)为: R = (Vs - Vf) / I 例如,用5V的输入电源电压和15mA电流来驱动正向电压为1.8V的LED会使用以下值: Vs = 5V(5V Arduino板), Vf = 1.8V(LED的正向电压), I = 0.015A(1毫安[mA]是千分之一安培[A],所以15mA
The LED Magic Light states that the color-changing LED is not an LED in the package, but three LEDs and a small computer to drive them. The LEDs consist of red, green and blue LEDs, each of which can be controlled by a microcontroller. Since th