Component Documentation: 24V Warm White 5050 SMD LED Strip Flexible 5M/Roll NO Waterproof
The 24V Warm White 5050 SMD LED Strip is a flexible, 5-meter LED strip that can be cut to desired lengths and is perfect for various indoor applications. This strip features 5050 SMD LEDs, providing a warm white color temperature and high brightness. It operates at 24V and is suitable for use in ambient lighting, decorative lighting, and other applications where a warm, cozy atmosphere is desired.
Voltage: 24V
Color Temperature: Warm White (2800K-3000K)
LED Type: 5050 SMD
Length: 5 meters
Cuttable: Yes, every 3 LEDs (50mm)
Waterproof: No
Brightness: 240-280 lumens per meter
Viewing Angle: 120
The LED strip has a standard 2-pin connection, with one pin for the positive (+) connection and one pin for the negative (-) connection.
Example 1: Basic Connection and Powering
In this example, we'll connect the LED strip to a 24V power supply and demonstrate how to power it.
24V Warm White 5050 SMD LED Strip Flexible 5M/Roll NO Waterproof
24V power supply
Jumper wires
1. Connect the positive (+) pin of the LED strip to the positive (+) terminal of the 24V power supply using a jumper wire.
2. Connect the negative (-) pin of the LED strip to the negative (-) terminal of the 24V power supply using a jumper wire.
Code Example: N/A (No code required for basic connection and powering)
Example 2: Dimming the LED Strip using an Arduino
In this example, we'll use an Arduino board to dim the LED strip using a potentiometer.
24V Warm White 5050 SMD LED Strip Flexible 5M/Roll NO Waterproof
Arduino Board (e.g., Arduino Uno)
Potentiometer (10k)
Breadboard
Jumper wires
1. Connect the positive (+) pin of the LED strip to the positive (+) terminal of the power supply using a jumper wire.
2. Connect the negative (-) pin of the LED strip to a digital pin (e.g., pin 9) on the Arduino board using a jumper wire.
3. Connect the potentiometer to an analog input pin (e.g., pin A0) on the Arduino board.
4. Connect the breadboard power rails to the power supply.
Code Example:
```c++
const int ledPin = 9; // Digital pin for LED strip
const int potPin = A0; // Analog pin for potentiometer
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
int potValue = analogRead(potPin);
int brightness = map(potValue, 0, 1023, 0, 255);
analogWrite(ledPin, brightness);
delay(10);
}
```
Example 3: Using the LED Strip with a Raspberry Pi
In this example, we'll connect the LED strip to a Raspberry Pi and control it using Python.
24V Warm White 5050 SMD LED Strip Flexible 5M/Roll NO Waterproof
Raspberry Pi (e.g., Raspberry Pi 4)
Power supply
Jumper wires
1. Connect the positive (+) pin of the LED strip to the positive (+) terminal of the power supply using a jumper wire.
2. Connect the negative (-) pin of the LED strip to a GPIO pin (e.g., pin 17) on the Raspberry Pi using a jumper wire.
Code Example:
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.OUT)
try:
while True:
# Fade in
for i in range(0, 101):
GPIO.output(17, GPIO.HIGH)
time.sleep(0.01)
GPIO.output(17, GPIO.LOW)
time.sleep(0.01)
# Fade out
for i in range(0, 101):
GPIO.output(17, GPIO.LOW)
time.sleep(0.01)
GPIO.output(17, GPIO.HIGH)
time.sleep(0.01)
except KeyboardInterrupt:
GPIO.cleanup()
```
Note: These examples are for illustrative purposes only and may require additional components, such as resistors or capacitors, to ensure safe and proper operation. Be sure to follow proper safety precautions and consult the datasheets for each component before building your project.