Nano Pixels 26 Bit Using Arduino
by MrSottong in Circuits > Arduino
1708 Views, 1 Favorites, 0 Comments
Nano Pixels 26 Bit Using Arduino
In my previous article, I made a tutorial on how to use the WS2812 Nano Pixel LED. In that article, I used the 16 Bit Ring Nano Pixel WS2812.
And in this article, I will show you how to use the 26bit ring Nano Pixels WS2812.
In the hardware section, nothing is different between 16 bits and 26 bits.
Only in the software section that needs to be modified.
Features and Benefits:
- Control circuit and RGB chip are integrated in a package of 5050 components.
- Built-in signal reshaping circuit.
- Built-in electric reset circuit and power lost reset circuit.
- Cascading port transmission signal by single line.
- Send data at speeds of 800Kbps.
See the datasheet for more info WS2812.
Required Components
The components you need for this tutorial :
- 26 Bit WS2812 RGB LED.
- Arduino Nano V.3
- Jumper wire
- Mini USB
Required Library :
To add a library to Arduino, see this article "How to Add an External Library to Arduino"
Connect the RGB Led to Arduino Nano
Follow the instructions below to connect WS2812 to Arduino Nano :
WS2812 to Arduino
IN ==> D6
VCC ==> +5V
GND ==> GND
Programming
In this part of the software that needs a little adjustment. In the "Number of LEDs" section, adjust the number of LEDs used.
Follow the instructions below to program the Arduino board:
Open Arduino IDE
Click File > Examples > Adafruit NeoPixels > strandtest
You must change some values from this sketch,
What must be change is as follows:
- Pin used
#define LED_PIN 12
- Number of LEDs
#define LED_COUNT 26
- Set Brightness
strip.setBrightness(10);
Change the program as you need it.
After that, upload the program to the Arduino board
Result
When you have finished uploading the program to Arduino. The results can be seen in the video above.
Thank you for reading this article. see you in the next article.
If you have questions, just write in the comments column.