An LED (Light Emitting Diode) emits light when an electric current passes through it. ... The ballast resistor is used to limit the current through the LED and to prevent that it burns. If the voltage source is equal to the voltage drop of the LED, no resistor is required.