Mad Science Test Tube Rack

Similar documents
Neon LED Signs. Created by John Park. Last updated on :11:09 PM UTC

Coffee Detonator: The TNT Plunger Grinder

Lady Ada's Bento Box. Created by lady ada. Last updated on :55:35 AM UTC

Feather Weather Lamp. Created by Ruiz Brothers. Last updated on :54:26 PM UTC

NeoPixel Ring Bangle Bracelet

LED Eyes. Created by Ruiz Brothers. Last updated on :50:55 AM UTC

Tent Lantern. Created by Timothy Reese. Last updated on :17:25 AM UTC

Toy Car Speed Timer. Created by Kirby Griese. Last updated on :13:49 PM UTC

Solar Boost Bag. Created by Becky Stern. Last updated on :44:55 PM UTC

Audio Prank Gift Box. Created by Becky Stern. Last updated on :46:15 PM UTC

Milk Jug Glow Skull. Created by John Park. Last updated on :28:36 PM UTC

NeoPixel Bike Light. Created by Ruiz Brothers. Last updated on :43:46 PM UTC

7" Portable HDMI Monitor

Trinket NeoPixel LED Longboard

Adafruit Capacitive Touch Sensor Breakouts

Portable Apple Watch Charger

Guardian Shield+ Zelda Breath of the Wild

Adabot Operation Game

FLORA TV-B-Gone. Created by Becky Stern. Last updated on :32:57 PM UTC

Crickit Powered Holiday Diorama

Hammer Time Mini Golf Hazard with Crickit

Simple LED Unicorn Horn

Pushrod Garage. Created by John Park. Last updated on :07:30 PM UTC

Clockwork Goggles. Created by John Park. Last updated on :03:10 PM UTC

NeoMatrix 8x8 Word Clock

7 Portable Multitouch Raspberry Pi Tablet

3D Printed 20w Amplifier Box

Trinket-Powered Conference Room Occupancy Display

LED Lightbox. Created by Sam Clippinger. Last updated on :50:00 AM UTC

Mystery Box: Haunted Radio

Magical Mistletoe. Created by Leslie Birch. Last updated on :45:29 PM UTC

FPV Mini Display. Created by Ruiz Brothers. Last updated on :00:18 PM UTC

3D Printed 20w Amplifier Box

FeatherWing Proto and Doubler

Interior Purse Light. Created by Becky Stern. Last updated on :41:08 PM UTC

3D Printed Camera LED Ring

Slider Crank Mechanism -- from Cardboard and Craft Sticks

Mystical LED Halloween Hood

Flora Brake Light Backpack

Overwatch Prop Gun: Lucio's Blaster Pt. 3

FLORA and GEMMA ICSP. Created by Becky Stern. Last updated on :42:16 PM UTC

Adafruit Prototyping Pi Plate. Created by Ladyada

DIY Circuit Playground Shields

Arduino Lesson 6. Digital Inputs

TRON Bag. Created by Becky Stern

3D Printed LED Knuckle Jewelry

Infinity Mirror Valentine's Candy Box

Fiddy - the FTDI Clip

NeoPixel Manicure. Created by Sophy Wong. Last updated on :50:38 PM UTC

Prophet 600 GliGli mod

3D Printed Google AIY Voice Kit

No-Sew LED Wristband. Created by Kathy Ceceri. Last updated on :23:40 PM UTC

Mystery Box: NeoMatrix Mk I

Trellis 3D Printed Enclosure

Glowing Smokey Skull. Created by Ruiz Brothers. Last updated on :03:40 PM UTC

Stumble-Bot. Created by Dano Wall. Last updated on :04:06 AM UTC

Crawling Animatronic Hand

GPS Logging Dog Harness

Circuit Playground Yoyo

Fiddy - the FTDI Clip

3D Printed LED Goggles

Celebration Spectacles

Chirping Plush Owl Toy

Cup o' Sound. Created by Becky Stern. Last updated on :30:06 PM EST

FeatherWing Proto, Doubler and Tripler

Modifying Servos for Continuous Rotation

i2c/spi LCD Backpack Created by lady ada Last updated on :11:04 PM UTC

Bike Wheel POV Display

Adafruit LED Sequins. Created by Becky Stern. Last updated on :02:00 AM UTC

Circuit Playground Express Head-Tilt Ears

Bluetooth Controlled NeoPixel Headphones

3D Printed Case for Adafruit Feather

Bunny Ears with MakeCode

Circuit Playground Digital Input

Con Badge with Circuit Playground Express

Adafruit 8x16 LED Matrix FeatherWing

Ping Pong Ball Launcher

Crickit Dancing Marionette Kit Created by Dano Wall. Last updated on :03:11 PM UTC

Adafruit LED Sequins. Created by Becky Stern. Last updated on :00:06 PM EST

Learning with LEDs. Created by Rick Winscot. Last updated on :39:11 PM UTC

Paper Airplane Launcher

Luminous LED Flowers. Created by Becky Stern. Last updated on :47:44 PM UTC

Data Logging with Feather and CircuitPython

FLORA and GEMMA ICSP. Created by Becky Stern. Last updated on :30:55 PM EST

Adafruit Mini TFT with Joystick Featherwing

MCP Bit DAC Tutorial

Interactive Gift Box. Created by codingpro. Last updated on :47:40 AM UTC

Mini Mac Pi. Created by Ruiz Brothers. Last updated on :43:27 PM UTC

'Sup Brows. Created by Kate Hartman. Last updated on :52:04 PM UTC

FLORA Pixel Brooch. Created by Becky Stern. Last updated on :19:07 PM EST

Crickit Carnival Bumper Bot

Light-Up Angler Fish Embroidery

Adafruit Color Sensors

NeoPixel Basketball Hoop

PyPortal View Master Created by Ruiz Brothers. Last updated on :51:28 AM UTC

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

BLE Light Switch with Feather nrf52840 and Crickit

LED Breath Stats Mask

Reindeer Mask with Animated Eyes

3D Printed Bone Conduction Transducer Box

Transcription:

Mad Science Test Tube Rack Created by John Park Last updated on 2016-10-17 09:21:01 PM UTC

Guide Contents Guide Contents Overview Lighted Test Tube Parts Materials and Tools Optional Test Tube Rack Parts Optional Tools Wire the Feather Assemble the Rack Mix the Potions Create the Mad Science 2 3 4 5 6 8 9 22 35 41 Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 2 of 50

Overview A proper mad science laboratory requires mysterious potion-filled test tubes lit with eerie colors to flicker in thier rack. Build this display for maximum creepy effect! Flourescent pigments mixed with water make for a creepy-cool luminescent potion when lit with ultraviolet light, especially as they flicker and blink based on a microcontroller pattern you design. You can use this technique to make test tubes glow in a standard test tube rack, or build your own from black iron pipe fittings and laser-cut acrylic for some next level spookiness! Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 3 of 50

Don't have any UV pigment? No problem -- get some tonic water instead! The quinine in tonic water fluoresces a cool blue color under UV light. Lighted Test Tube Parts Adafruit Feather 32u4 Basic Proto (http://adafru.it/2771) or Feather M0 Basic Proto (http://adafru.it/2772) Terminal Block FeatherWing (http://adafru.it/2926) UV/UVA 400nm LEDs (http://adafru.it/1793) 1 per test tube USB cable A/micro B (http://adafru.it/2008) Power supply (http://adafru.it/501) Test tube rack (http://adafru.it/qwe) or build your own as detailed later in this guide Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 4 of 50

Pyrex test tubes (http://adafru.it/qwf) and matching stoppers with holes (http://adafru.it/qwa) Stranded wire (http://adafru.it/2976) or jumper wire or cloth covered wire (http://adafru.it/rwa) (for style points) Fluorescent UV pigment (http://adafru.it/rwb) or tonic water Wire housings (http://adafru.it/3145) (1x2 size) optional for LED wiring Heat shrink tubing (http://adafru.it/344) Materials and Tools Soldering iron Solder Wire strippers Heat shrink tubing Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 5 of 50

Optional Test Tube Rack Parts 3/16" thick black acrylic sheet 12"x16" Wooden base, roughly 20"x9"x1-1/2" 8 ea. #12 x 1-1/4" wood screws 4ea. nylon M3 hex spacers and screws (http://adafru.it/rwc) Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 6 of 50

2 ea. 1/2" threaded pipe nipple, 6" length 4 ea. 1/2" threaded pipe nipple, 8" length 2 ea. 1/2" threaded pipe fitting, 90 degree elbow 3 ea. 1/2" threaded pipe fitting, coupling 4 ea. 1/2" threaded pipe fitting, locknut 2 ea. 1/2" threaded pipe floor flange Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 7 of 50

Optional Tools Drill with 1/8" bit for pilot hole Screwdriver Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 8 of 50

Wire the Feather You'll use the Feather microcontroller to drive up to thirteen purple UV LEDs. Ultraviolet light causes the special pigments to fluoresce, or emit light of a longer wavelength when lit. This is the same effect you may have seen on a blacklight poster. Fluorescence is different from the phosphorescence of glowing pigments, where light emission continues after the initial source of light has been removed. Assemble the TerminalBlock FeatherWing according to these instructions (http://adafru.it/rwd), then fit the Feather Basic Proto onto it. You'll use the screw terminals to make the wiring easy and secure. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 9 of 50

Connect the Feather via USB to your computer and upload the code via Arduino IDE. // --------------------------------------------------------------------------- //Mad Science Test Tube Rack // John Park // for Adafruit Industries // // Blinks thirteen LEDs, each in their own timing pattern. // Designed for use with the Adafruit Feather 32u4 and Feather M0, // but will work with most Arduino boards. // MIT license, check LICENSE for more information // --------------------------------------------------------------------------- //**************************************************************************** //Output pins byte LED_PINS[13] = {A0, A1, A2, A3, A4, A5, 5, 6, 9, 10, 11, 12, 13}; //**************************************************************************** //**************************************************************************** //Timing patterns: //Each row in is the timing in millis of a single LED //Adjust these to tune the timing //**************************************************************************** unsigned int TIMING[][13] = { Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 10 of 50

{random(4500, 8500), 6000, 12000, random(4000, 6000), random (10000, 20000)}, {3500, random (1000, 5000), 14000, 500, 6500, 800, 4000}, {5850, 800, 3500, random (3000, 10000)}, {random(500, 3000), random (1000,3000), 700, 2000, 9000}, {6500, 600, 3000, random (3000, 7000), 7000, 30000}, {4000, random(1000, 7000), 4000, 5000, 4500}, {7000, 800, 5000, random(2000, 4000)}, {random(5000, 8000), 500, random(7000, 25000), 200, random(1000, 8000), 3000, 500, random(5000, 9000)}, {random(300, 1000), random (1000, 7000), 1400, 500, 3500}, {random (2500, 3500), 800, 18050, random(1000, 20000)}, {13000, 1000, random (300, 2000), 2000, random (500, 4000)}, {15000, random (500, 7000), random(1000, 4000), 5000, random (1000, 1500)}, {random(2000, 6000), 800, 3500, random (500, 2500), 1000, 300, 400, 500, random (200, 18000)} }; // Keep track of timing sequence unsigned long last_change[sizeof(led_pins)/sizeof(led_pins[0])]; byte timing_i[sizeof(led_pins)/sizeof(led_pins[0])]; void setup() { //Set all 13 pins to output mode and turn on for (byte i = 0; i < sizeof(led_pins)/sizeof(led_pins[0]); i++) { pinmode(led_pins[i], OUTPUT); digitalwrite(led_pins[i], HIGH); } } void loop() { unsigned long now = millis(); // Current time // Keep track of pattern for each LED for (byte i = 0; i < sizeof(led_pins)/sizeof(led_pins[0]); i++) { if (now - last_change[i] >= TIMING[i][timing_i[i]]) { digitalwrite(led_pins[i],!digitalread(led_pins[i])); timing_i[i]++; timing_i[i] %= sizeof(timing[i])/sizeof(timing[i][0]); // Repeat pattern when done last_change[i] = now; } } } Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 11 of 50

Next, you'll wire the LEDs to the TerminalBlock FeatherWing. Depending on the number of test tubes you use, the wiring may vary, but this scheme allows for one LED per output pin on the Feather (a total of thirteen) and uses the four GND terminals to best effect. You will normally use current limiting resistors to keep LEDs from burning out, but the 3.3V source of the Feather is so close to the forward voltage of these LEDs that you can get away without a resistor. Be sure to add a proper resister if using a higher voltage board. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 12 of 50

Prep your wires by cutting pairs of wires for each test tube LED you plan to use, approximately 10" in length each. In the version made for this guide there are thirteen of them. We can use one Feather output pin per LED, but we don't have thirteen GND pins, so we'll create a few short wire splices to accomodate. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 13 of 50

Strip the ends of each wire, and trim the cloth if using a fabric covered wire. You may also use short lengths of heat shrink tubing to keep the cloth from fraying or wires from shorting. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 14 of 50

Slip a bit of heat shrink tubing over the end of each wire and then push the LEDs through a 1x2 jumper houseing (this is optional, it just keeps the legs from shorting and looks neat) solder a wire to each leg of the LEDs. Be sure to keep track of polarity -- you can use a multimeter's continuity testing mode to be certain -- and then screw each anode (long leg, +) wire into an output pin on the TerminalBlock FeatherWing. The thirteen output pins we'll use are 5, 6, 9-13, and A0-A5. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 15 of 50

Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 16 of 50

Next, create the ground cables to share among the LEDs. Solder two short wires (optionally with 1x1 female jumper sockets on one end) to the ground wire. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 17 of 50

Solder this ground splitter to the cathode (short) leg of one LED, then you will be able to share this ground with the two short leads to two other LEDs. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 18 of 50

Place a length of heat shrink tubing over the positive wire before soldering to the anode (longer) leg of the LED. Solder the wire to the leg, then slide the heat shrink tubing over it and heat it to shrink. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 19 of 50

Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 20 of 50

Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 21 of 50

Assemble the Rack Black iron gas pipe and fittings are relatively inexpensive, strong, and modular, which can make them ideal for fabricating sturdy props and mounts. The parts are readily available at any hardware store. Black pipe has a thin coating of grease and paint on it, which usually comes of all over your hands, clothing, and work area if you aren't careful. Use degreaser, such as Simple Green, and some old rags to clean it before use. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 22 of 50

This rack is optional -- you may use a normal test tube rack if you like -- but either way, it helps to have a rack before you begin mixing your potion and filling the test tubes! Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 23 of 50

Screw two of the 8" pipe nipples into the floor flanges. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 24 of 50

Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 25 of 50

Screw two of the pipe couplings onto the two pipe nipples that have been screwed into the flanges. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 26 of 50

Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 27 of 50

Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 28 of 50

Use the CAD file linked below to laser cut the acrylic rack shelves and support. Alternately, you may print the file and use it as a template to cut the rack with a scroll saw. testtuberack.zip http://adafru.it/rwe Screw one locknut onto each end of the remaining two 8" pipe nipples. Set the bottom rack shelf onto the bottom ends of the pipe nipples and then thread these into the pipe fittings. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 29 of 50

Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 30 of 50

Place the acrylic support that will hold the Feather into the base and top shelves, fitting its pointed end into the square cutout. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 31 of 50

Create the crossbar by joining the two 6" pipe nipples with the remaining coupling, then screw their free ends into the elbows. Place the top shelf over the leg threads, being sure to line up the vertical support with the square cutout, and then screw the legs into the elbows. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 32 of 50

To stabilize the rack, you can screw the flanges into a wooden base. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 33 of 50

Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 34 of 50

Mix the Potions Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 35 of 50

It's mixing time. Be careful when working with the pigment not to breathe any of the very fine powder (wear a mask or respirator), and work on a surface that can be cleaned, such as a wax paper covered workbench. Wear nitrile gloves to keep the dye off of your hands, and mark your containers as "not for consumption" Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 36 of 50

Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 37 of 50

It only takes a very small pinch of powder per test tube. You can mix the pigment and water in each test tube -- use a stirring rod or bamboo skewer to thoroughly mix it, or place a stopper over the top, cover the hole with your thumb and shake it like crazy. If you plan to use the same color in a number of test tubes, premix a batch in a measuring cup, mason jar, or beaker and then pour 50mL per test tube. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 38 of 50

Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 39 of 50

Shine a UV LED into your tube to see the effect! If there's too much pigment, the tube will not glow internally, only on the surface. In this case, add water to dilute your mixture. The pigment is suspended in the water, so you may need to occassionally shake it up to redistribute, or mix in a tiny amount of an emulsifier such as xanthan gum (available in health food stores and online) to keep it in suspension. As an alternative to pigments, the ink from many highlighters is also UV reactive. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 40 of 50

Create the Mad Science Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 41 of 50

You can now attach the FeatherWing to the vertical support of the laser cut acrylic using the M3 standoffs, screws, and nuts. If you're using a different stand, you'll want to attach the Feather using another method, such as drilling small holes in the wood, or affixing with double-stick foam tape. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 42 of 50

Place a standoff in each of the four holes, then affix a nut to the back side. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 43 of 50

Place the FeatherWing over the four standoffs and secure with the four screws. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 44 of 50

Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 45 of 50

Attach the LED wiring to the screw terminals of the TerminalBlock FeatherWing, using this circuit diagram as reference. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 46 of 50

With a potion-filled test tube in each slot of your rack, push a UV LED into the hole of each stopper and then place the stoppers in the test tubes. Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 47 of 50

Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 48 of 50

Connect the Feather to the wall power adapter using the USB cable, and then plug the adapter into a wall outlet. Now, turn down the lights, turn the FeatherWing power switch to ON and enjoy the spooky, mad science light show! Adafruit Industries https://learn.adafruit.com/mad-science-test-tube-rack Page 49 of 50

Adafruit Industries Last Updated: 2016-10-17 09:21:00 PM UTC Page 50 of 50