A very simple, but very attractive DIY test tube light that can use a standard rubber or cork bung with a hole drilled in it for the cable, or a custom sized 3D printed insert created from the customisable scripts below in this description.
The current this light draws is just 100mA (not 500mA as I said at one point in the video) which equates to about half a watt, so it will run for a long time from a USB power bank and will be a very light load for a plug-in USB power supply.
The materials are:-
A pack of test tubes from eBay typically about 18mm (about 3/4") by 200mm (8").
A string of copper wire LEDs with battery pack.
A 22 ohm quarter watt resistor
A cheap USB charging lead in a colour and style of your choice.
Some heatshrink sleeve (optional)
A small cable tie (optional)
A 3D printed end, a cork or rubber bung for the test tube.
If you use a cork or rubber bung you may need to drill a hole in it for the cable. Do so carefully as they are both very "snatchy" materials when drilling.
If using the 3D printed end cap you can copy the scripts below into openscad to create one in a custom size and colour. There are two scripts, one for a simple size checker and one for the full thing. Both have a single adjustable variable called diameter, which is the inside diameter of your tube or bottle neck in millimetres.
When adjusting the variable to something like 19, make sure that you leave the = and ; intact as they form part of the script. So you would change diameter=16; to diameter=19;
It's a great project. The end result is visually appealing and fully serviceable if you don't glue the end on too permanently.
This video is unexpectedly in just 720P due to a finger fumble while using the timelapse feature for the first time during the 3D printing. The video size options are directly above the timelapse speed settings.
If you enjoy these videos you can help support the channel with a dollar for coffee, cookies and random gadgets for disassembly at:-
http://www.bigclive.com/coffee.htm
This also keeps the channel independent of YouTube's advertising algorithms allowing it to be a bit more dangerous and naughty.
Here are the openscad scripts. There are two of them.
//Test tube lamp size tester
//Change this diameter variable to suit the
//inside diameter of your test tube
diameter=16;
//The printed test tube insert will have
//end section 0.5mm thinner
//midsection size as entered diameter
//base section 0.5mm bigger
difference(){
union(){
translate([0,0,0])
cylinder(h=2,d1=diameter+2,d2=diameter+2,$fn=40);
translate([0,0,2])
cylinder(h=6,d1=diameter+0.5,d2=diameter+0.5,$fn=40);
translate([0,0,8])
cylinder(h=6,d1=diameter,d2=diameter,$fn=40);
translate([0,0,14])
cylinder(h=6,d1=diameter-0.5,d2=diameter-0.5,$fn=40);
}
translate([0,0,-1])
cylinder(h=25,d1=diameter-2.5,d2=diameter-2.5,$fn=40);
}
MAIN END ADAPTOR SCRIPT BELOW.
//Test tube lamp adaptor
//Change this diameter variable to suit the
//inside diameter of your test tube
diameter=16;
difference(){
union(){
//cable entry chamfer
translate([0,0,0])
cylinder(h=1,d1=8,d2=10,$fn=40);
//cable entry
translate([0,0,1])
cylinder(h=4,d1=10,d2=10,$fn=40);
//taper section
translate([0,0,5])
cylinder(h=15,d1=10,d2=diameter+2,$fn=40);
//tube insert
translate([0,0,20])
cylinder(h=14,d1=diameter,d2=diameter,$fn=40);
//tube insert chamfer
translate([0,0,34])
cylinder(h=1,d1=diameter,d2=diameter-2,$fn=40);
}
//main inner cylindrical hole
translate([0,0,20])
cylinder(h=20,d1=diameter-4,d2=diameter-4,$fn=40);
//inner taper section
translate([0,0,5])
cylinder(h=15,d1=6,d2=diameter-4,$fn=40);
//cable hole
translate([0,0,-1])
cylinder(h=15,d1=4,d2=4,$fn=40);
}

18 thoughts on “Make a safe usb powered test tube light. optional 3d printed end”
  1. Avataaar/Circle Created with python_avatars George Zent says:

    Does the diameter have to be a whole number? If i get a tube with 12.5 for example would it work?

  2. Avataaar/Circle Created with python_avatars Mizai says:

    tie a knot in the cable

  3. Avataaar/Circle Created with python_avatars FCWW says:

    What I took from this lesson was how important order of operations is! Once again, Clive, a master class! I love your videos as I work my way to being more competent with electronics.

  4. Avataaar/Circle Created with python_avatars Aw Ja says:

    You're the BEST, man! <3 Most entertaining, practical, down-to-earth electronics dude on YT.

  5. Avataaar/Circle Created with python_avatars Matthew says:

    Just watched this old video and the visual of a grown scotsman tuber saying in frustration “just shove it in there”while modding a cheap Chinese led string into a glowing dildo of beauty is worth a million smug twenty something San Franciscan makers smoothly producing a ‘simple’ radio controlled satellite any day.

  6. Avataaar/Circle Created with python_avatars G M says:

    Tapping the test tube on the bench caused me to have a real laugh out loud moment.
    I’m pretty sure that I heard some sniggering going off too.
    Great idea for a project though 👍

  7. Avataaar/Circle Created with python_avatars U+014B says:

    I was thinking you would've folded the lights into relatively test-tube-length sections and stuffed them in that way.

  8. Avataaar/Circle Created with python_avatars Paul Allen says:

    Lol, AMPly bright… 😂🤣

  9. Avataaar/Circle Created with python_avatars Orn FreeTaa says:

    Love the project Clive. Made a single one to practice and am currently working on doing a string of them with pink leds!

  10. Avataaar/Circle Created with python_avatars Lady Lexy Starwatcher says:

    I actually made a USB powered lamp jar using this sort of set up. Inspired by this video.

  11. Avataaar/Circle Created with python_avatars CS_FL says:

    small dowel rod — wrap around — stick dowel AND wrapped lights down inside — remove dowel.

  12. Avataaar/Circle Created with python_avatars BobMuir100 says:

    Top Banana Clive Top Banana!!

  13. Avataaar/Circle Created with python_avatars BobMuir100 says:

    Clive, why no heat shrink on the other connection?

  14. Avataaar/Circle Created with python_avatars BobMuir100 says:

    Your dexterity when soldering is so very good Clive , to me at least as a ‘newbie’ as our overseas cousins say!

  15. Avataaar/Circle Created with python_avatars ficklampa says:

    ooh, you could use those cheap PET "test tubes" (basically what the soda pop bottles look like before they get vacuuformed) instead. Will be durable and has a screw on tail cap!

  16. Avataaar/Circle Created with python_avatars Find & Create says:

    Hi Clive. I commented on your most recent video earlier as I wanted to ask a question about this kind of light/project.
    I’ve got a project with 10 bottles, each with 15 of these lights so 150 LED’s. Each bottle is daisy chained to a 5v power supply coming from an adaptor. I assume I need to put a resistor to each bottle but I’m not clever enough to work out what value resistors to use. Can you help?
    Many thanks again – James

  17. Avataaar/Circle Created with python_avatars Steve Tobias says:

    G'day Clive, I recently purchased a few thin rope LED's from eBay with a battery pack that houses 2x AA batteries. Trouble is that they make this annoying humming / buzzing noise when they run. For some reason they won't run directly from a 3-5 volt DC power supply and only work from the battery pack. Any ideas how I can suppress the annoying sound so I can make a sign to use as a nightlight for my son's bedroom.

  18. Avataaar/Circle Created with python_avatars Klarah Fenderson says:

    Think I'll try this with plastic test tubes. Me trying to work with breakables (dubious Chinese glass especially) doesn't end well.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.