You are on page 1of 29

Sign In (https://www.hackster.io/users/auth/arduino?

current_site=arduino&setup=true)

DIY RGB Tube Lights © CC BY-NC-SA


(http://creativecommons.org/licenses/by-nc-sa/4.0)

RGB Tube Lights made using Arduino Nano and WS2812B LEDs.

games (/projecthub/projects/tags/games)

home automation (/projecthub/projects/tags/home+automation)


led (/projecthub/projects/tags/led)

physical computing (/projecthub/projects/tags/physical+computing)


We use cookies Ė
rgb (/projecthub/projects/tags/rgb)
Our websites use cookies (also from third parties) for functional and analytical purposes, and to show you personalised
advertisement.
2,362 VIEWS You can adjust this in Cookie
0 COMMENTS Settings or learn more by reading our cookie policy
7 RESPECTS
(https://www.arduino.cc/en/cookie-policy).

ONLY REQUIRED ACCEPT ALL

COMPONENTS AND SUPPLIES 

Arduino Nano
(/projecthub/products/buy/81
× 1 
200?
( (/proj (/projecthub/products
s=BAhJIhMzNzQ3MzUsUHJva
/ ecthu /buy/81200?
mVjdAY6BkVG%0A)
p b/pro s=BAhJIhMzNzQ3MzUs
r ducts UHJvamVjdAY6BkVG%
o /buy/ 0A)
j 81200
e ?
c s=BA
t hJIhM
h zNzQ
u 3MzU
b sUHJv
/ amVjd
p AY6B
r kVG%
o 0A)
d
u
c
t
s
/
b
u
u
y
/
8
1
2
0
0
?
s
=
B
A
h
JI
h
M
z
N
z
Q
3
M
z
U
s
U
H
J
v
a
m
V
j
d
A
Y
6
B
k
k
V
G
%
0
A
)

SparkFun WS2812B LED Strip


(/projecthub/products/buy/81
× 2 
201?
( (/proj (/projecthub/products
s=BAhJIhMzNzQ3MzUsUHJva
/ ecthu /buy/81201?
mVjdAY6BkVG%0A)
p b/pro s=BAhJIhMzNzQ3MzUs
r ducts UHJvamVjdAY6BkVG%
o /buy/ 0A)
j 81201
e ?
c s=BA
t hJIhM
h zNzQ
u 3MzU
b sUHJv
/ amVjd
p AY6B
r kVG%
o 0A)
d
u
c
t
s
/
b
u
y
/
8
1
2
0
0
1
?
s
=
B
A
h
JI
h
M
z
N
z
Q
3
M
z
U
s
U
H
J
v
a
m
V
j
d
A
Y
6
B
k
V
G
%
0
A
)
)

White Tube Lights Or Aluminum


Light Fittings with Diffuser × 2
Or https://amzn.to/3ra3d1Z

5V 5A Power Supply
(/projecthub/products/buy/81
× 1 
202?
( (/proj (/projecthub/products
s=BAhJIhMzNzQ3MzUsUHJva
/ ecthu /buy/81202?
mVjdAY6BkVG%0A)
p b/pro s=BAhJIhMzNzQ3MzUs
r ducts UHJvamVjdAY6BkVG%
o /buy/ 0A)
j 81202
e ?
c s=BA
t hJIhM
h zNzQ
u 3MzU
b sUHJv
/ amVjd
p AY6B
r kVG%
o 0A)
d
u
c
t
s
/
b
u
y
/
8
1
2
0
2
?
?
s
=
B
A
h
JI
h
M
z
N
z
Q
3
M
z
U
s
U
H
J
v
a
m
V
j
d
A
Y
6
B
k
V
G
%
0
A
)
Push Button ×
(/projecthub/products/buy/81 ( 1 
205? / (/proj (/projecthub/products
s=BAhJIhMzNzQ3MzUsUHJva p ecthu /buy/81205?
mVjdAY6BkVG%0A) r b/pro s=BAhJIhMzNzQ3MzUs
o ducts UHJvamVjdAY6BkVG%
j /buy/ 0A)
e 81205
c ?
t s=BA
h hJIhM
u zNzQ
b 3MzU
/ sUHJv
p amVjd
r AY6B
o kVG%
d 0A)
u
c
t
s
/
b
u
y
/
8
1
2
0
5
?
s
=
B
A
h
JI
JI
h
M
z
N
z
Q
3
M
z
U
s
U
H
J
v
a
m
V
j
d
A
Y
6
B
k
V
G
%
0
A
)

Wires
(/projecthub/products/buy/81
×
204?
(
s=BAhJIhMzNzQ3MzUsUHJva
/
mVjdAY6BkVG%0A)
p
r
o
j
e 1 
c (/proj (/projecthub/products
t ecthu /buy/81204?
h b/pro s=BAhJIhMzNzQ3MzUs
u ducts UHJvamVjdAY6BkVG%
b /buy/ 0A)
/ 81204
p ?
r s=BA
o hJIhM
d zNzQ
u 3MzU
c sUHJv
t amVjd
s AY6B
/ kVG%
b 0A)
u
y
/
8
1
2
0
4
?
s
=
B
A
h
JI
h
M
z
N
z
Q
Q
3
M
z
U
s
U
H
J
v
a
m
V
j
d
A
Y
6
B
k
V
G
%
0
A
)

DC Connector
(/projecthub/products/buy/81
× 
203?
( (/projecthub/products
s=BAhJIhMzNzQ3MzUsUHJva
/ /buy/81203?
mVjdAY6BkVG%0A)
p s=BAhJIhMzNzQ3MzUs
r UHJvamVjdAY6BkVG%
o 0A)
j
e
c
t
h
u
b
/ 1
p (/proj
r ecthu
o b/pro
d ducts
u /buy/
c 81203
t ?
s s=BA
/ hJIhM
b zNzQ
u 3MzU
y sUHJv
/ amVjd
8 AY6B
1 kVG%
2 0A)
0
3
?
s
=
B
A
h
JI
h
M
z
N
z
Q
3
M
z
U
s
U
H
J
v
a
m
V
j
d
A
Y
6
B
k
V
G
%
0
A
)

NECESSARY TOOLS AND MACHINES 


Soldering Station, 110 V
(/projecthub/pro (/projecthub/products/buy/56100? (/projecthub/products/buy/5
ducts/buy/56100 s=BAhJIhMzNzQ3MzUsUHJvamVjdAY 6100?
? s=BAhJIhMzNzQ3MzUsUHJva
6BkVG%0A)
s=BAhJIhMzNzQ3 mVjdAY6BkVG%0A)
MzUsUHJvamVjd
AY6BkVG%0A)

Solder Wire, Lead Free
(/projecthub/pro (/projecthub/products/buy/55952? (/projecthub/products/buy/5
ducts/buy/55952 s=BAhJIhMzNzQ3MzUsUHJvamVjdAY 5952?
? s=BAhJIhMzNzQ3MzUsUHJva
6BkVG%0A)
s=BAhJIhMzNzQ3 mVjdAY6BkVG%0A)
MzUsUHJvamVjd
AY6BkVG%0A)


Solder Flux, Soldering
(/projecthub/pro (/projecthub/products/buy/55907? (/projecthub/products/buy/5
ducts/buy/55907 s=BAhJIhMzNzQ3MzUsUHJvamVjdAY 5907?
? s=BAhJIhMzNzQ3MzUsUHJva
6BkVG%0A)
s=BAhJIhMzNzQ3 mVjdAY6BkVG%0A)
MzUsUHJvamVjd
AY6BkVG%0A)

APPS AND ONLINE SERVICES 

Arduino IDE 
(https://www.arduino.cc/en/main/ (https://www.arduino.cc/en/
(https://www.ar software) main/software)
duino.cc/en/mai
n/software)
ABOUT THIS PROJECT 

 PREVIOUS • • • • • •
NEXT 

Details

DIY RGB Tube Light


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.

Build instructions
Step 1:
Disassemble the tube light by removing end caps, separating diffuser and removing
whites LED strip from the tube.

 PREVIOUS • • • • •
NEXT 

Step 2:
Make all the connections as shown in circuit diagram.
 PREVIOUS • • • • •
NEXT 

Step 3:
Put all the electronics in the tube, put back the end caps and seal the diffuser using
clear tape.

 PREVIOUS • • • •
NEXT 

Step 4:
Similarly make the second tube but this time use only WS2812b LED strip,
connector, wires and connect the tube lights.
Step 5:
Download the given zip files and extract them.

Files:
RGB Tube Code&Software.zip
(https://cdn.hackaday.io/files/1763657545600160/RGB%20Tube%20Code&Software.zip
)

 RGB_TUBE_CODE_SOFTWARE.ZIP
(HTTPS://HACKSTERIO.S3.AMAZONAWS.COM/UPLOADS/ATTACHMENTS/12
32788/RGB_TUBE_CODE_SOFTWARE.ZIP)

Button_Tube.zip (https://cdn.hackaday.io/files/1763657545600160/Button_Tube.zip)


BUTTON_TUBE.ZIP
(HTTPS://HACKSTERIO.S3.AMAZONAWS.COM/UPLOADS/ATTACHMENTS/12
32789/BUTTON_TUBE.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 6:
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.
 PREVIOUS • •
NEXT 

 PREVIOUS • •
NEXT 

Enter the Serial Port number and click Next -> Next

 PREVIOUS • •
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 7:
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.
 PREVIOUS • •
NEXT 

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

Connect the Arduino to your PC, select the board type, select the port and upload
the code.
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.
COMMENTS 

Please log in (/projecthub/users/sign_in?


id=374735&m=project&reason=comment&redirect_to=%2Fprojecthub%2FMukesh_San
khla%2Fdiy-rgb-tube-lights-bc26cf%23comments) or sign up
(/projecthub/users/sign_up?
id=374735&m=project&reason=comment&redirect_to=%2Fprojecthub%2FMukesh_San
khla%2Fdiy-rgb-tube-lights-bc26cf%23comments&source=popup) to comment.

eaksoy52 (/projecthub/eaksoy52)
6 days ago
(/pr
Helal
oject olsun reis
hub/
eaks
oy52
)AUTHOR

(/projecthub/Mukesh_Sankhla)
Mukesh Sankhla (/projecthub/Mukesh_Sankhla)
6 PROJECTS 10 FOLLOWERS

FOLLOW (/PROJECTHUB/USERS/SIGN_UP?ID=1311650&M=USER&REASON=FOLLOW&REDIRECT

PUBLISHED ON

December 16, 2020

 RESPECT PROJECT (/PROJECTHUB/USERS/SIGN_UP?ID=374735&M=ARTICLE&REASON=RESPECT&R...

 WRITE A COMMENT

 Share

MEMBERS WHO RESPECT THIS PROJECT


(/projecthub/emelin2) (/projecthub/harimukulsagar)
(/projecthub/Arnov_Sharma_makes)
and 4 others

SEE SIMILAR PROJECTS


YOU MIGHT LIKE

SIMILAR PROJECTS YOU MIGHT LIKE

(/projecthub/evive/diy-magnetic-table-hockey-with-rgb-lights-and-sensors-c940f1?
ref=similar&ref_id=374735&offset=0)
DIY Magnetic Table Hockey With RGB Lights and Sensors
(/projecthub/evive/diy-magnetic-table-hockey-with-rgb-lights-
and-sensors-c940f1?ref=similar&ref_id=374735&offset=0)
Project tutorial by evive (/projecthub/teams/evive)
5,313 VIEWS 0 COMMENTS 20 RESPECTS

(/projecthub/Mukesh_Sankhla/diy-arduino-tic-toc-toe-game-00c670?
ref=similar&ref_id=374735&offset=1)

DIY Arduino Tic Toc Toe Game (/projecthub/Mukesh_Sankhla/diy-


arduino-tic-toc-toe-game-00c670?
ref=similar&ref_id=374735&offset=1)
Project tutorial by Mukesh Sankhla (/projecthub/Mukesh_Sankhla)
2,274 VIEWS 0 COMMENTS 10 RESPECTS

(/projecthub/Mukesh_Sankhla/rgb-hexmatrix-iot-clock-54fc5d?
ref=similar&ref_id=374735&offset=2)
RGB HexMatrix | IoT Clock (/projecthub/Mukesh_Sankhla/rgb-
hexmatrix-iot-clock-54fc5d?ref=similar&ref_id=374735&offset=2)
Project tutorial by Mukesh Sankhla (/projecthub/Mukesh_Sankhla)
5,813 VIEWS 14 COMMENTS 28 RESPECTS

(/projecthub/kutluhan-aktar/rfid-desk-lamp-with-rgb-color-scheme-lock-ee8843?
ref=similar&ref_id=374735&offset=3)
RFID Desk Lamp with RGB Color Scheme Lock
(/projecthub/kutluhan-aktar/rfid-desk-lamp-with-rgb-color-
scheme-lock-ee8843?ref=similar&ref_id=374735&offset=3)
Project tutorial by Kutluhan Aktar (/projecthub/kutluhan-aktar) and JLCPCB (/project...
1,414 VIEWS 1 COMMENT 2 RESPECTS

(/projecthub/BnBe_Club/decorative-rgb-lights-using-an-arduino-59782c?
ref=similar&ref_id=374735&offset=4)

Decorative RGB Lights Using an Arduino


(/projecthub/BnBe_Club/decorative-rgb-lights-using-an-arduino-
59782c?ref=similar&ref_id=374735&offset=4)
Project tutorial by BnBe Club (/projecthub/BnBe_Club)
4,737 VIEWS 0 COMMENTS 6 RESPECTS
4,737 VIEWS 0 COMMENTS 6 RESPECTS

(/projecthub/gatoninja236/tinyml-keyword-detection-for-controlling-rgb-lights-
9f51e9?ref=similar&ref_id=374735&offset=5)

TinyML Keyword Detection for Controlling RGB Lights


(/projecthub/gatoninja236/tinyml-keyword-detection-for-
controlling-rgb-lights-9f51e9?ref=similar&ref_id=374735&offset=5)
Project tutorial by Arduino “having11” Guy (/projecthub/gatoninja236)
3,150 VIEWS 7 COMMENTS 16 RESPECTS

(https://www.arduino.cc)
Powered by
(https://www.hackster.io)

You might also like