The Adafruit DotStar Strip 60M_B is a high-density, digitally-addressable LED strip that provides advanced control of color and brightness, enabling the creation of intricate lighting effects. This strip is ideal for a wide range of applications, from DIY projects and art installations to commercial lighting and interactive displays.
Pin Number | Name | Description |
---|---|---|
1 | 5V | Power supply voltage (5V DC) |
2 | GND | Ground connection |
3 | CI | Clock Input for LED data signal |
4 | DI | Data Input for LED data signal |
#include <Adafruit_DotStar.h>
#include <SPI.h> // Use SPI library
#define NUMPIXELS 60 // Number of LEDs in strip
#define DATAPIN 4
#define CLOCKPIN 5
// Create DotStar object:
Adafruit_DotStar strip = Adafruit_DotStar(
NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BRG);
void setup() {
strip.begin(); // Initialize pins for output
strip.show(); // Turn all LEDs off ASAP
}
void loop() {
int i;
// Some example procedures showing how to display to the pixels:
for(i=0; i<strip.numPixels(); i++) { // For each pixel...
strip.setPixelColor(i, strip.Color(0, 255, 0)); // Set pixel's color (in this case: Green)
strip.show(); // Update strip to match
delay(50); // Pause for a moment
}
}
Q: Can I cut the strip to a shorter length? A: Yes, the strip can be cut at designated points, usually marked with a line and scissor icon.
Q: How do I attach multiple strips together? A: Strips can be soldered together at the designated solder pads for extending length.
Q: What is the maximum length I can use without experiencing voltage drop? A: This depends on the power supply and the gauge of the power wires, but typically, you should inject power every 1 to 2 meters to prevent voltage drop.
Q: Can I control the strip with a 3.3V microcontroller? A: While the strip is rated for 5V, many users have successfully driven DotStar strips with 3.3V logic. However, for reliable operation, level shifting to 5V may be necessary.