The LED Filament 3V is a Light Emitting Diode that mimics the look of traditional incandescent filament bulbs while offering the energy efficiency and longevity of modern LED technology. This component is designed to operate at a voltage of 3 volts and is commonly used in decorative lighting, accent lighting, and in applications where a vintage aesthetic is desired with the benefits of LED.
Pin Number | Description |
---|---|
1 | Anode (+) |
2 | Cathode (-) |
// Define the LED filament pin
const int ledPin = 9; // PWM pin for dimming capability
void setup() {
pinMode(ledPin, OUTPUT); // Set the LED pin as an output
}
void loop() {
// Fade the LED filament in and out
for (int brightness = 0; brightness < 255; brightness++) {
analogWrite(ledPin, brightness); // Set the brightness
delay(10); // Wait for 10 milliseconds
}
for (int brightness = 254; brightness >= 0; brightness--) {
analogWrite(ledPin, brightness); // Set the brightness
delay(10); // Wait for 10 milliseconds
}
}
Note: When connecting the LED filament to an Arduino UNO, ensure to use a current-limiting resistor and do not exceed the 3V rating of the LED filament.
FAQs:
Q: Can I power the LED filament directly from a 3V battery? A: Yes, but it is still recommended to use a current-limiting resistor to protect the LED.
Q: How do I calculate the value of the current-limiting resistor? A: Use the formula R = (V_supply - V_led) / I_led, where V_supply is the supply voltage, V_led is the LED voltage (3V), and I_led is the desired current in amperes.
Q: Is it possible to connect multiple LED filaments in series? A: Yes, as long as the total voltage drop does not exceed the power supply voltage and each LED filament has its own current-limiting resistor.