DIY RGB Tube light is a multi functional tube light which can be used in photography, light painting photography, film making, gaming, as a VU meter and more. The tube light can be controlled by Prismatik software or by a push button. These tub lights are made using a Arduino Nano and WS2812B LED strip.
*Disassemble the tube light by removing end caps, separating diffuser and removing whites LED strip from the tube.
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/b6264a0b6694aff10019ad0cde34f340.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/606950f1d80aea8aefa6bf674f28fafd.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/ceae069136e937589fbba1105564a144.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/603b5d3982b850ed64cd2c6bc407f301.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/461d9b44b6482c8b6873ff327af200f7.png)
*Make all the connections as shown in circuit diagram.
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/b3c2529b44c17dd90abddaca7d6ff759.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/8c5d84f1055e22265c5c2637d12da54d.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/e36f33d1f384a9576523d05a48f944ba.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/3d7d72b5ff269591a511d8f70a7a857d.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/13db3f2aae63f37efc7ff81fe6e517fd.png)
*Put all the electronics in the tube, put back the end caps and seal the diffuser using clear tape.
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/09c17e03573622c7536eba656ee4642c.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/f87772569ccec443c41bdf0c9c91f59f.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/b98718491e23baa79aded20ed3124e7a.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/e618dd5a6b5e00df2bd94a018053e9c5.png)
*Similarly make the second tube but this time use only WS2812b LED strip, connector, wires and connect the tube lights.
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/6c273407d1a87e7a31d3be176df95d46.png)
*Download the given zip files and extract them.
*Open the RGB Tube code & software file, open the code given in Arduino IDE.
*Install the FastLED library in Arduino IDE.
*You can enter the number of LEDs you used in your tube lights, I used 65 LEDs in each tube lights, i.e. 130 LEDs in both tube lights.
#define NUM_LEDS 130
*Remember the port number. (for example: com8)*Connect the Arduino to your PC, select the board type, select the port and upload the code.
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/43dbeb0628afb0c8c3222512f75f56ac.png)
*Install the prismatik software in your PC.
*Open the software and click on device.
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/b17082cb9fe0bfa3079f7b571a9cd57e.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/0a5b139f491500f3a933db00fbd0446c.png)
*Click on Run configuration wizard and simply click on Next -> Next.
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/dc7ac8ae844d67f935550834522b08c5.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/0e198c10e2b0104446f56bf01df9626b.png)
*Enter the Serial Port number and click Next -> Next
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/9ef1a06e430677728c36e8a1ad89c064.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/0009897bb577acb392b6b9e0cda28d0d.png)
*Enter the number of LEDs at sides (i.e. in my case top=0, side=65, bottom=0) and click on custom -> Next.
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/d3b7bc8481ac4e4b486d4950a9166676.png)
*Adjust the sliders to get white color on the tube lights and click on finish.
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/6d6567fa90d7b274938c8d810005fad6.png)
*Now you can choose different mode in the software and display on tube lights.
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/01b202424c8e1aed6acbfb10b59d5561.png)
NOTE: The Arduino should be connected to the PC.
*Open the Button_Tube code in Arduino IDE.
*With this code you can change the color of the Tube Lights with the push of button.
*Install the Pushbutton library by clicking on sketch ->Include library -> Add zip library and select the Pushbutton-2.0 zip file in Button_Tube file.
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/76bce9515fab2c0a646339c2f91fabc9.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/2e004512a7ade8b6d4ac3917a9fb527b.png)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/250921319e9c66d64d1f6bf19a80f106.png)
*Enter the number of LEDs.
#define NUM_LEDS 130
*In this code you can enter the values of the colors at CRGB(----, -----, -----);
for(int i = 0; i < NUM_LEDS; i++){
leds[i] = CRGB(0, 100,255);
FastLED.show();
*You can copy paste the color values from color picker.
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/d81dcbc4ebbe2e51b9fe17436f60c52d.png)
*Connect the Arduino to your PC, select the board type, select the port and upload the code.
*You can make this lights portable by using a power bank or some batteries.
*By using any Wi-Fi board like ESP8266 or ESP32 you can change the colors of the tube lights with a mobile app.
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/80e22f0f58beb9fb1c8a89a7cdcb4254.jpg)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/72ec7b44e1ec60dbd862e1ce821c5ed6.jpg)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/54a9aa2a702fe45fec0d0d5f92725e36.jpg)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/22b527051305ff527df4382058e02a25.jpg)
![projectImage](https://dfimg.dfrobot.com/nobody/makelog/53e7e88294618ac8e0cacaf2d66efcc3.jpg)
![licensBg](/images/license_bg.png)