3D Printed Magnetic Marble Run

by CJA3D in Workshop > 3D Printing

7119 Views, 51 Favorites, 0 Comments

3D Printed Magnetic Marble Run

3D Printed Magnetic Marble Run
5582f8194fbade3cac0000c9.jpeg
5582f64367400cca7400062c.jpeg
5582f7162e7fb68cbd000071.jpeg

Turn your refrigerator door into a kinetic playground !!! by 3D Printing the Magnetic marble run STL files attached in the steps below.

And once you've tried out all the possible permutations and combinations with the marble tracks, add some bling !! to your marble run using the fancy NeoPixel LEDs and the 3D printed enclosure..

The Instructable has basically 3 part, use the links below to get to the steps and download the STL files that your interested in.

#1 The 3D Printable files for the basic Marble Run

#2 Add some Fun moving parts,printed in green and blue in the second picture above

#3 Pimp! your marble run, using the awesome NeoPixels LED's.

Collect the Tools You'll Need

IMG_7069.JPG
IMG_7049.JPG
IMG_6912.JPG
  • 3D Printer, in my case I am using the Printrbot Simple metal to print all the part(make a note of the various slicer settings)
  • Filament, here are the list of filaments I have used

Hatchbox 1.75mm Blue, Orange,White PLA

Filament Outlet Black PLA 1.75mm PLA

Makerbot Yellow and Red 1.75mm PLA

  • Neodymium magnets
  • Hot Glue Gun and Hot Glue sticks
  • Marbles, diameter about 16.2 mm,I've picked up mine from the dollar store.

For the fancy NeoPixel LED Holder

Basic Marble Run Part

IMG_6978.JPG
3D printed Basic Magnetic  Marble run

The Basic Marble Run contains shapes that are slightly curved and straight.3D printed part snap together and then use Hot Glue and Neodymium Magnets.

In addition , toward the bottom of the run as shown in the pictures and video above there cup type holder to catch the Marble at the bottom.

Basic Run : 3D Printed Part - Slicer Settings

Screen Shot 2015-06-17 at 12.50.21 AM.png
Screen Shot 2015-06-17 at 12.52.37 AM.png
Screen Shot 2015-06-17 at 12.52.49 AM.png

To Print the Marble tracks real quick on your 3D printer modify the Slicer setting, this make take some experimentation and may depend on your printer and the software you use.

In my case I am using a Printrbot Simple Metal and Repetier-Host as my software, here are few important settings

  • Layer Heigh - 0.2mm
  • Top Layer - 3 and bottom - 2
  • Fill Patter - I found Honeycomb to give me good Strength and flexibility
  • Number of Skirts around the model 2 , to save filament as they are pretty big in size.

Basic Run : 3D Print the STL Files - Curves

IMG_7066.JPG
IMG_5716.JPG
Screen Shot 2015-06-07 at 4.53.33 PM.png
IMG_5719.JPG
Screen Shot 2015-06-07 at 4.58.17 PM.png

Download the STL file attached and load it in your printer software and slice the file, based on your printer setting,the Simple Curve Magnet base shown in the first picture

  • Slicing the STL file should take about 8-9 Seconds
  • And the print time should be about 8- 10 mins

And for the STL file simple curve that would snap into the magnetic base

  • Slicing the STL file should take about 3-5 Seconds
  • And the print time should be about 18- 22 mins

Tip: Print just one part at a time and adjust your slicer setting for fast and good quality print ,before printing multiple parts as shown in step 7.

Baic Run: Hot Glue the Magnets

IMG_6696.JPG
IMG_6699.JPG
IMG_6700.JPG
IMG_6702.JPG

Now using hot glue add the Neodymium magnet to holes in the 3D print as shown in the first picture.

Once the magnets are nice and secure add a little hot glue to the part which snaps into the bottom and then press and hold as shown in third and fourth picture

Basic Run : 3D Print the STL Files - Kind Off Straight

IMG_6710.JPG
Screen Shot 2015-06-11 at 5.16.23 PM.png
IMG_6753.JPG
Screen Shot 2015-06-11 at 5.12.32 PM.png
IMG_6757.JPG

Download the STL file attached and once your satisfied with your slicer setting load the same part a couple of times as shown in the second picture,in your printer software and slice the file, based on your printer setting,

the Straight run added

  • Slicing should take about 17-18 Seconds
  • And the print time should be about 20- 25 mins

And for the long cure with both the parts added together

  • Slicing should take about 10-12 Seconds
  • And the print time should be about 15 -20 mins

Once done Hot Glue the Magnets and two parts together.

Basic Run : U Changers

IMG_6714.JPG
Screen Shot 2015-06-08 at 4.09.51 PM.png

Now for the U changer STL files, I had to print one at a time because of the small bed size of the Printrbot, but feel free to add multiple if you have a larger bed size

For the WRightMagnet bases

  • Slicing should take about 5-6 Seconds
  • And the print time should be about 8- 10 mins

And for the WRight part that snaps into the magnet base

  • Slicing should take about 9-10 Seconds
  • And the print time should be about 15 -20 mins

Once done Hot Glue the Magnets and two parts together.

Basic Run : Simple Marble Cup Holder

IMG_6713.JPG
Screen Shot 2015-06-08 at 4.12.50 PM.png

If you plan on adding cool LED effect as you saw in the video above, 3D print the Marble Cup Holder in Transparent PLA.

For the Cup Holder Magnet base STL

  • Slicing should take about 10-12 Seconds
  • And the print time should be about 15- 18 mins

And for the Cup Holder part that snaps into the magnet base as shown in the picture above

  • Slicing should take about 3-5 Seconds
  • And the print time should be about 20 -25 mins

Once done Hot Glue the Magnets and two parts together.Here you'll need 3 Magents

Testing the Run With Basic Parts

IMG_6977.JPG
IMG_6982.JPG
3D printed Basic Magnetic  Marble run

Now that you have some basic parts ready, make track for your marble to flow as shown in the picture above .

And then use marble to test it , keep adjusting or making new track till your think you have tried all possible combination !! and then realize that it would be more fun to add some moving part which are detailed in the section below.

Adding Moving Parts to the Basic Parts

3D Printed Magnetic Marble Run - Moving advance part
IMG_7002.JPG
IMG_6992.JPG

Now if you bored with the basic run , let make things a little more interesting by adding moving part to the marble run as shown in the video and picture above.

Here we are going to 3D print a mustache shape direction changer in green and a spinning wheel in blue..

3D Printing the Direction Changer

IMG_6725.JPG
Screen Shot 2015-06-17 at 1.53.24 AM.png
IMG_6727.JPG

Using the same slicer setting as that of the basic marble run , download the STL files and 3D Print, Note - in this case there is a separate part to glue the magnets.

Add the STL file to your 3D printing software ,the Direction changer bottom STL file

  • Slicing should take about 3-5 Seconds
  • And the print time should be about 7- 10 mins

And for the Direction changer top STL file

  • Slicing should take about 3-5 Seconds
  • And the print time should be about 15 -20 mins

3D Printing the Direction Changer Magnet Holder

IMG_6733.JPG

Now since this is a movable part , to add a magnet 3D print the cylindrical magnet holder part as shown in the picture above, I have printed a couple of them together

Download the STL file and add it to your 3D printing software a couple of times

  • Slicing should take about 8-10 Seconds
  • And the print time should be about 20 mins

Glue the Magnet and Test It Out

IMG_6774.JPG
IMG_6778.JPG

Using hot glue gun , glue the magnet to the black magnet holder as shown in the first picture.

Though the two green direction changes snap together add hot glue to secure them together.

3D Print the Moving Wheel

IMG_6748.JPG
IMG_6751.JPG
IMG_6772.JPG
IMG_6781.JPG

Now download the fancy Moving wheel STL files attached above.

Add the STL file to your 3D printing software ,the Rolling circle bottom STL file

  • Slicing should take about 3-5 Seconds
  • And the print time should be about 10- 12 mins

And for the Rolling circle Top STL file

  • Slicing should take about 5-7 Seconds
  • And the print time should be about 15 -20 mins

Here use the other cylindrical magnet holder than you had printed in the previous step and hot glue the magnet. And also use hot glue to secure the rolling circle top to the bottom

Making Space for the Moving Parts

3D Printed Magnetic Marble Run - Moving advance part
Magnetic Marble Run -Making Space for the Moving parts

Now get on too you Magnetic surface like your fridge door.

Make space for the movable part by rearranging basic parts as shown in the video above and give it a quick test..

If your wondering what my magnetic surface is in the video above , it is the door of the Air conditioning unit in my apartment.

Pimp Your Marble Run With NeoPixel Led Lights

IMG_7035.JPG
IMG_7026.JPG
IMG_7059.JPG
IMG_7062.JPG
3D Printed Magnetic marble run - Adding NeoPixel LED's

Now to add the Rainbow color LED lights at the bottom of your Marble run , 3D print the enclosure attached in the next step using transparent PLA filament.

And using a microcontroller and NeoPixel sticks light up the base cup holder as shown in the pictures and video above.

The circuit also has an ON/OFF switch which mean you can turn it on in the evening for some awesome effects and keep it off during the day..

In addition you can only follow this part of ible to light up the picture/what have you on your fridge, when your entertaining guests at home ..

3D Print the Enclosure

IMG_6908.JPG
IMG_6905.JPG
Screen Shot 2015-06-17 at 2.41.07 AM.png

Download the STL files attached above.Add the STL file to your 3D printing software ,the magnet lid bottom STL file

  • Slicing should take about 11-15 Seconds
  • And the print time should be about 10- 12 mins

And for the NeoPixel Stick and trinket microcontroller holder STL file

  • Slicing should take about 5-7 Seconds
  • And the print time should be about 17-20 mins

Solder the Circuit - Battery and Switch

IMG_6914.JPG
IMG_6917.JPG
IMG_6920.JPG
IMG_6921.JPG

Fire up your Soldering Iron !

While you Soldering Iron is heating up cut the red wire of the Lipo battery as shown in the first picture above.

Strip the red wire and then using soldering iron Tin the wire as shown in the second picture above.

Add some heat shrink tubing to prevent the wires from shorting

Solder the ends of the wire to the to the switch.

Solder the Trinket to Neo Pixels

IMG_6922.JPG
IMG_6924.JPG
IMG_6927.JPG

Solder the circuit as shown in the circuit digram above

  • Connect the +ve(5V DC power) on the NeoPixel ring to Vout on the Trinket
  • Connect the -ve(GND) to GND
  • and connect the Din(Data Input) on the NeoPixel to #1 on Trinket

Tip : Pass all the wires through some heat shrink tubing to prevent them from tangling when your going to add it to the 3D Printed enclosure.

Upload the Code Attached to the Trinket

IMG_6933.JPG
Screen Shot 2015-06-16 at 1.24.35 PM.png
Screen Shot 2015-06-16 at 1.21.53 PM.png
Screen Shot 2015-06-16 at 1.22.23 PM.png

To upload code attached to the Gemma you will have to download Adafruit's version of the Arduino IDE and install it on you computer.

For complete details on how to, follow this link

https://learn.adafruit.com/introducing-trinket

In addition as part of the setup you will have to download the NeoPixel library from the following link https://learn.adafruit.com/adafruit-neopixel-uber... Place the downloaded library in the /Arduino/Libraries folder and restart your IDE.

Now go to File ->Examples ->Adafruit_NeoPixel ->standtest, here since we are using trinket instead of an Arduino Uno ,

  • you'll have to modify the PIN from 6 to 1 as shown in the fourth screen shot
  • And modify the number from pixel from 60 to 8 , as we are using a NeoPixel stick which has 8 Pixels.

Next select the type of programer as show in the screenshot (Tools > Programmer > USBtinyISP)

Also select the board you are using (Tools > Board > Adafruit Trinket 8MHz ).

Then press the button located just below the chip on the Trinket, wait for Red light to blink bright red and then upload the code to the Trinket (File > Upload)

Screw the NeoPixel Stick and Trinket to the Base

IMG_6939.JPG
IMG_6940.JPG
IMG_6942.JPG

Now using screws, attach the NeoPixel strip to the base.

Pass the male and female JST connectors through the two opening , which are opposite the NeoPixel strips..

And then at the bottom of the 3D printed part , add another screw to hold the trinket in place.

Hot Glue the Switch to the Base

IMG_6943.JPG
IMG_6947.JPG

Now before you use hold glue , shrink the tubing with a heat shrink gun or just use a lighter ..

Once done add Hot glue to the switch and add it to base, here once the switch is added quickly test it if your able to slide it up/down and then reinforce it with more Hot glue at the side.

Hot Glue the Magnets to the Lid and Glue It to the Base

IMG_6950.JPG
IMG_6954.JPG
IMG_7034.JPG
IMG_7032.JPG
3D printed  marble run Neopixels

Hot glue the magnets to Lid as shown in the first picture above

And then hot glue the lid to the base.

Your done !! test it out by add it to your Marble Run just below the Cup holder.

Recharging the Battery

IMG_6966.JPG
IMG_6967.JPG
IMG_6970.JPG

Now to recharge the Lipo battery , ensure that the Switch is in the OFF position.

Unplug the JST connector and plug it into the Lipo charger.

Charge it using a wall adapter or your laptop..