Our webstore uses cookies to offer a better user experience and we recommend you to accept their use to fully enjoy your navigation.
0104110000006523
New product
WS2812 LED bar contains eight controllable RGB LEDs. They can be independently controlled using only two digital pins.
See description for more details about the product.
Add to cart now!
0 Item Items
This product is no longer in stock
Warning: Last items in stock!
Availability date:
WS2812 LED bar contains eight controllable RGB LEDs. They can be independently controlled using only two digital pins.
Note: The picture above shows LEDs 4 to 7VDC feed on pins and GND, and communication via DIN and DOUT follows: the rectangular pin DIN receives a signal from the Arduino. You can insert multiple LED modules by connecting DOUT to DIN terminal of the next module.
The LED bar contains RBG LEDs inside: red, blue, green. The first 8-bit green LEDs will command the 8 LED RBG, next 8 bits will command the red LEDs, and the last 8 bytes sent before the reset signal will control the blue LEDs. The easiest way to use LED strip is to use a library that already has implemented the functions for generating the necessary signals.
To understand how to interpret the data, track image: a signal logical one for us and logical value 0 0.35 for a period of 0.8 us will be interpreted as a bit with value 0. A signal with a logical one for us 0.7 and 0.6 logical 0 for us will be considered a bit of value 1. To control all the LEDs send 24-bit and a reset signal - a signal LOW for a period.
You can find more libraries of this type here:
http://cartearduino.ro/v1/link37.0
Zip archive download and install Arduino library. Blinky and fade_rgb run examples. Here's how to write a program using this library:
// announce that we use Arduino library:
#include <WS2812.h>
/ * Cream an object of type WS2812 - in brackets specified number of LEDs that we use (can be as usually a multiple of 8) * /
WS2812 LED (8);
// We select pin that will connect the LED pin DIN
LED.setOutput (outputPin); // Can be any digital pin
/ * CRGB is a structure containing 3 values between 0 and 255 to control the intensity of the 3 LED * /
cRGB wave; // I instantiated a variable of type cRGB and LEDs, giving a
val.b = 255; val.g = 0; val.r = 0; // Maximum intensity blue light
/ * Earlier WS2812 instantiated object type that contains 8 LEDs - use the method .set_crgb (i, val) to assign LED RGB value specified number of wave i * /
LED.set_crgb_at (i, wave );
// Changes are seen only after running .sync function ();
LED.sync ();
You can link multiple strips of LEDs in series and can build a matrix that can display messages, you can create games of lights to give a pleasing aspect to your projects or to illuminate different corps furniture in your room. You can make a game of lights that respond to input data such as data read from a distance sensor.
An interesting project is the construction of a display device type POV (Persistence Of Vision) using a motor to rotate multiple LEDs arranged in the line. We can turn on or off the LEDs in motion, and if they give the impression of a circular display, resulting in spectacular images. We can use LEDs to display different images in space or time to display text. Application project involves the control of several LED moving. Using LED strip WS2812 eases many of the problems that may arise in this project, providing the ability to control multiple LED digital pins few.
This 3 mm infrared receiver is a high speed and...
3,44 lei
These 5 mm red LEDs are great for new projects...
0,39 lei
Raspberry Pi Zero 2 W LIMITED TO ONE PER...
87,31 lei
This sensor is for line tracking purpose. It...
4,99 lei
25-in-1 Screwdriver Set
28,11 lei
5 V, 2.5 A Power Adapter for Raspberry Pi 3 and...
29,99 lei
White 8060 Propeller with 6 mm Hole See...
6,99 lei
This is a 2.4 inch touch screen LCD shield...
39,99 lei
2p Female XH2.54 Connector
0,99 lei
2 mm Fixing Limiter - Orange
0,49 lei