The FadeCandy USB NeoPixel Driver is a specialized controller designed to drive NeoPixel LED strips, providing a simple interface for creating smooth and sophisticated lighting effects. It is particularly well-suited for artists, hobbyists, and professionals looking to add a dynamic visual element to their projects. The FadeCandy is recognized for its ability to handle color blending and dithering, which results in exceptionally smooth color transitions and animations.
Pin Number | Description |
---|---|
1 | GND (Ground) |
2 | DIN (Data Input for LED Strip 1) |
3 | DIN (Data Input for LED Strip 2) |
... | ... |
8 | DIN (Data Input for LED Strip 8) |
9 | +5V (Power Supply for LED Strips) |
// This example assumes the use of the FadeCandy server and the OPC library for Arduino.
#include <SPI.h>
#include <Ethernet.h>
#include <OPC.h>
OPC Client client;
void setup() {
// Initialize Ethernet and OPC.
Ethernet.begin(mac, ip, gateway, subnet);
client.begin("fadecandy_server_ip");
// Set the number of LEDs.
OPC::LEDs leds(64);
}
void loop() {
// Write colors to the LEDs.
for (int i = 0; i < leds.count(); i++) {
leds[i] = OPC::RGB(255, 0, 0); // Set all LEDs to red.
}
// Send the data to the FadeCandy server.
client.putPixels(0, leds);
}
Note: The above code is a basic example to illustrate how you might control NeoPixel LEDs using an Arduino UNO as an intermediary between the FadeCandy and the LEDs. The actual implementation will require the FadeCandy server to be running on a computer, and the OPC library to be installed on the Arduino.
Remember to replace "fadecandy_server_ip"
with the actual IP address of the computer running the FadeCandy server. The mac
, ip
, gateway
, and subnet
variables should also be set according to your network configuration.
For more detailed information and advanced usage, please refer to the FadeCandy server documentation and the OPC library documentation.