1. Introduction
The DIYmalls WS2812B 5050 RGB LED Rings and Sticks are versatile lighting components featuring integrated WS2812 drivers. These modules are designed for use with various microcontrollers such as AVR, Arduino, Raspberry Pi, and mbed, allowing for individual control of each LED's color and brightness through a single-wire communication interface.
2. Safety Guidelines
- Ensure proper voltage (DC 4-7V) is supplied to prevent damage to the LEDs or connected microcontroller.
- When soldering, use appropriate safety equipment and ensure good ventilation.
- Avoid direct eye exposure to the bright LEDs.
- Keep components away from moisture and extreme temperatures.
3. Package Contents
The package contains the WS2812B RGB LED rings or sticks based on your selection. Please note that for the 60-bit ring option, it consists of 4 separate 1/4 ring pieces that require soldering for assembly. Cables are not included.
4. Specifications
| Feature | Detail |
|---|---|
| Brand Name | DIYmalls |
| Model Number | FZ1556+FZ1557+FZ1558+FZ1559+DIY0120 |
| LED Chip | WS2812B |
| Communication Interface | Single-wire communication |
| Operating Voltage | DC 4-7V (typically 5V) |
| 7-Bit Ring Diameter | 23 mm / 0.9" |
| 8-Bit Stick Dimensions | Length: 54 mm / 2.1", Width: 10 mm / 0.4" |
| 12-Bit Ring Dimensions | Outside Diameter: 37 mm / 1.46", Inside Diameter: 23 mm / 0.91" |
| 16-Bit Ring Dimensions | Outside Diameter: 45mm / 1.77", Inside Diameter: 32mm / 1.25" |
| 24-Bit Ring Dimensions | Outer diameter: 65.6mm / 2.6", Inner diameter: 52.3mm / 2.1" |
| 60-Bit Ring Dimensions | Outer diameter: 16cm / 6.3", Inner diameter: 14.6cm / 5.75" |
| 61-Bit Ring Outer Diameter | 8.5cm / 3.35" |
5. Setup and Connection
5.1. 60-Bit Ring Assembly (if applicable)
If you have purchased the 60-bit ring, it comes as four separate 1/4 ring pieces. You will need to solder these pieces together to form a complete ring. Use a small piece of stripped wire or a DIP resistor leg as a 'bridge' to provide mechanical support and electrical connection between the segments.
Connect the segments by soldering GND to GND, 5V to 5V, and DIN (Data Input) of one segment to DOUT (Data Output) of the previous segment, forming a continuous data chain.
5.2. General Wiring for LED Rings (e.g., 7, 12, 16, 24, 61 Bits)
For single LED rings, connect them to your microcontroller (e.g., Arduino) as follows:
- 5V (Power): Connect to the 5V pin on your microcontroller.
- GND (Ground): Connect to the GND pin on your microcontroller.
- DI (Data Input): Connect to a digital output pin on your microcontroller (e.g., pin 6).
5.3. General Wiring for LED Sticks (e.g., 8 Bits)
For LED sticks, connect them to your microcontroller (e.g., Arduino) as follows:
- 4-7VDC (Power): Connect to the 5V pin on your microcontroller.
- GND (Ground): Connect to the GND pin on your microcontroller.
- DIN (Data Input): Connect to a digital output pin on your microcontroller (e.g., pin D6).
6. Operation and Programming
These WS2812B LED modules are individually addressable, meaning each LED can be controlled independently. This is achieved through a single-wire communication protocol.
6.1. Software Libraries
To program these LEDs with Arduino or Raspberry Pi, it is highly recommended to use a dedicated library. For Arduino, the Adafruit NeoPixel library is a popular and well-supported choice.
You can find the code link and library resources at: https://github.com/adafruit/Adafruit_NeoPixel
6.2. Basic Programming Steps (Arduino Example)
- Install Library: In the Arduino IDE, go to Sketch > Include Library > Manage Libraries... Search for "Adafruit NeoPixel" and install it.
- Include Header: At the beginning of your sketch, include the library:
#include <Adafruit_NeoPixel.h> - Define Pin and LED Count: Define the data pin you connected the LED strip to and the total number of LEDs. For example:
#define LED_PIN 6and#define LED_COUNT 7(adjust LED_COUNT based on your ring/stick). - Initialize NeoPixel Object: Create an Adafruit_NeoPixel object:
Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800); - Begin Strip: In your
setup()function, callstrip.begin();andstrip.show(); - Control LEDs: In your
loop()function, you can set individual LED colors usingstrip.setPixelColor(pixelIndex, red, green, blue);and then update the strip withstrip.show();. You can also set the overall brightness usingstrip.setBrightness(brightnessValue);(0-255).
7. Maintenance
- Keep the LED modules clean and free from dust. Use a soft, dry cloth for cleaning.
- Avoid bending or stressing the PCB excessively, especially for the ring segments that require soldering.
- Regularly check connections for any loose wires or corrosion.
- Store in a dry, cool environment when not in use.
8. Troubleshooting
8.1. LEDs Not Lighting Up
- Check Power: Ensure the power supply (DC 4-7V, typically 5V) is correctly connected and providing sufficient current.
- Check Ground: Verify that the GND connection is secure.
- Check Data Line: Confirm the data line (DI/DIN) is connected to the correct digital pin on your microcontroller and that the connection is solid.
- Review Code: Double-check your programming code for any errors, especially the LED count and pin definitions. Ensure the NeoPixel library is correctly initialized and
strip.show()is called after setting colors. - Soldering Issues (for 60-bit ring): If using the 60-bit ring, inspect all solder joints between segments for continuity and cold joints.
8.2. Incorrect Colors or Flickering
- Data Pin: Ensure the data pin is correctly defined in your code and matches the physical connection.
- LED Count: Verify that the
LED_COUNTin your code accurately reflects the number of LEDs in your ring/stick. - Power Fluctuations: Insufficient or unstable power can cause flickering. Ensure your power supply can handle the current draw of all LEDs at full brightness.
- Data Rate: The WS2812B LEDs operate at 800kHz. Ensure your library settings match this (
NEO_KHZ800in Adafruit NeoPixel).
9. User Tips
- Users report the LEDs are very bright and work well, so consider adjusting brightness in your code if needed for your application.
- For complex projects, consider using a dedicated power supply for the LEDs separate from your microcontroller to avoid power issues.
10. Frequently Asked Questions (FAQ)
Q: What controller is needed for these LED rings/sticks?
A: These RGB LED rings/sticks are compatible with various microcontrollers such as AVR, Arduino, Raspberry Pi, and mbed. You will need a microcontroller that can implement the single-wire communication protocol, typically with the help of a suitable library like Adafruit NeoPixel.
11. Warranty and Support
For technical support, customization inquiries, or large-scale procurement, please contact DIYmalls using the following information:
- WhatsApp/WeChat: +86 15079814066
- Email/Skype: sales02@flyfuntech.com
Please refer to the official AliExpress platform for specific warranty details and return policies.