Introduction: DIY RGB Tube Lights
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.
Step 1: Supplies:
- (1) Arduino Nano : https://amzn.to/3r2x4sY
- (2mt) WS2812B LED Strip: https://amzn.to/2Kwe70O
- (2) White Tube Lights Or Aluminum Light Fittings with Diffuser : https://amzn.to/38fF6Gu Or https://amzn.to/38fF6Gu
- (1) 5V 5A Power Supply : https://amzn.to/3nqCvQi
- (1) Push Button : https://amzn.to/3mpNEPK
- (1) Wires : https://amzn.to/3npgYrh
- (1) DC Connector : https://amzn.to/3nocDV2
Step 2: Tube Lights Disassembling:
- Disassemble the tube light by removing end caps, separating diffuser and removing whites LED strip from the tube.
Step 3: Circuit Connection:
- Make all the connections as shown in circuit diagram.
Step 4: Assembling:
- Put all the electronics in the tube, put back the end caps and seal the diffuser using clear tape.
Step 5: Tube Light 2:
- Similarly make the second tube but this time use only WS2812b LED strip, connector, wires and connect the tube lights.
Step 6: Code for Software:
- Download the given zip files and extract them.
- RGB_Tube_code & software zip
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.
Step 7: Software Setup:
- Install the prismatik software in your PC.
- Open the software and click on device.
- Click on Run configuration wizard and simply click on Next -> Next.
- Enter the Serial Port number and click Next -> Next
- Enter the number of LEDs at sides (i.e. in my case top=0, side=65, bottom=0) and click on custom -> Next.
- Adjust the sliders to get white color on the tube lights and click on finish.
- Now you can choose different mode in the software and display on tube lights.
NOTE: The Arduino should be connected to the PC.
Step 8: Button Code:
- Button_Tube.zip
- 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.
- 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++){ <br> leds[i] = CRGB(0, 100,255); FastLED.show();
You can copy paste the color values from color picker.
Connect the Arduino to your PC, select the board type, select the port and upload the code.
Step 9: NOTE:
- 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.
Attachments

Participated in the
Anything Goes Contest
17 Comments
Question 2 years ago on Step 9
I just don't understand what is the point in making anything on here if u don't get a reply back when u need help?......... U can go out or on eBay too buy the item u need too make something like this than u release they don't reply 😂 back it's a waste off money 💲 it's like u brought the item for nothing?...
Answer 2 years ago
Sorry for that, I didn't get any notification on my mail about your comments and I was having my semester exams. May I know what problem you are facing?
Reply 2 years ago
Hi there l just l following your instructions and l still can't fine the website that you use on here. I download the given zip files and extract them but nothing happens it won't let me open the file
RGB Tube Code & Software Zip
I don't know what I'm doing wrong?.......
Reply 2 years ago
https://drive.google.com/drive/u/1/folders/1tFuwoUG8fVwv4P9Wsks9VsFKK-XBxaKF Try and download from here
2 years ago
Hello my friend, I really liked a very good project and I did it to leave it as an option for sound lights, but I have problems with the prismatik software that I downloaded from the official website and the sound visualization options do not appear, only that of screen grabbing and mood lamp. If it is possible and you still have that version of the software that you show in the tutorial, please could you send it to me at aldemar_bb@hotmail.com.
I also want to know where I can download code to add to the button_tube.ino
Reply 2 years ago
Hi there can u please tell me how u download it because l have try too many time when l think l got it right. And open it up and look in where's the ports is my is not showing up without it l can't connect?..... Any ideas mate
Reply 2 years ago
Lo descargue directamente de la pagina oficial, baje dos versiones y ambas no me aparece.
puedes subir el software que tu tienes a google drive, para yo poderlo descargar?
Reply 2 years ago
I'm sorry 😞 but l don't understand what you're saying in your mailbox too me because I'm from England and l only understand English?...... Please can u apply your message in English so I can read it?....Thank You for your time can u please send me a message?.....
Reply 2 years ago
Can you upload the software that you have to google drive, so that I can download it?
Reply 2 years ago
Hi there sorry for this but can u please send me the link so l can download the file please
Reply 2 years ago
U just need to go on Google type in prismatik it's the first 1 u see say
Prismatik 5.11.3 for Windows
this is the right 1 for u?....
right at the top u will see this
Thanks to peculiarities of its firmware and cross-platform software, lightpack
is complete with all popular operating systems so here is complete download list:
than u know your on the right page 😛😂
Reply 2 years ago
I have downloaded it but l can't open up the port without it won't let be connecte l need too fine away
Reply 2 years ago
Sorry for the late reply, I have put the option above for all the necessary files in the form of .zip
2 years ago on Step 5
https://drive.google.com/file/d/1JCXIuUQfBE625fzK-8LJ6ZdD0oaUNtpx/view?usp=drivesdk
Question 2 years ago on Step 5
I have made it but on my new laptop it won't connect to my ppor?..... Is there something I'm doing wrong need help thank u
2 years ago
So cool! Pretty impressive results considering It looks like it's not too complicated. although I have extremely limited experience with audrino programming. I'm definitely going to add this on my list of projects to make! Thank you for posting!
Reply 2 years ago
Welcome 😊