Procedurally Generating Marble Runs

Marble runs are somehow incredibly soothing to play with and watch, with the gentle clack of the marbles and the smooth, predictable motion. Sadly for some, they never quite got enough time to enjoy them in school. Luckily, [Fernando Jerez] is here with a way to procedurally generate marble runs you can actually play with!

[Fernando] does a great job of explaining the mathematical process of generating the marble runs, using the method of random space filling curves. A maze is drawn on a grid, with points on the grid acting as walls. Each grid cell is then given a value based on points on its corners, and these values then translate into directions of travel. This creates a path through the maze. Scaling this path along the Z-axis, and then replacing the path with a marble track creates the run. It’s then a simple matter of adding a shaft to the loop with a screw to drive marbles back to the top of the run, and you’re all set!

With both animated explanations and actual 3D printed marble runs, [Fernando] demonstrates the concept well. We’d love to print a few runs of our own, and we can’t help but think there’s other great applications for the mathematics behind this concept. If you’re wise to it, drop it in the comments. Otherwise, check out these exquisite creations we’ve featured before!

Exquisite Craftsmanship Elevate Vic’s Creations Above The Rest

This booth was easy to miss at Maker Faire Bay Area 2019 amidst tall professional conference signage erected by adjacent exhibitors. It showcased the work of [Dr. Victor Chaney] who enjoys his day job as a dentist and thus feels no desire to commercialize his inventions — he’s building fun projects for the sake of personal enjoyment which he simply calls Vic’s Creations. Each project is built to his own standards, which are evidently quite high judging by the perfect glossy finish on every custom wood enclosure.

Some of these creations were aligned with his musical interests. The Backpacking Banjo was built around a (well cleaned) cat food can to satisfy the desire for a lightweight instrument he can take camping. His Musical Laser Rainbow Machine (fully documented in Nuts & Volts) was created so little bands formed by independent artists like himself can have a visual light show to go with their live performances. The Music Kaleidoscope is another execution along similar lines, with an LED array whose colors are dictated by music. Venturing outside the world of music, we see a magnetically levitated Castle In The Clouds which also receives power wirelessly to illuminate LEDs

The largest and most complex work on display is an epic electromechanical masterpiece. Par One is a rolling ball sculpture featuring the most convoluted golf course ever. Several more rolling ball sculptures (also called marble machines or marble runs) are on display at Dr. Chaney’s office which must make it the coolest dentist’s lobby ever. The lifelike motions he was able to get from the automatons he built into the sculpture are breathtaking, as you can see below.

Continue reading “Exquisite Craftsmanship Elevate Vic’s Creations Above The Rest”

Marvelously Machined Clutch Masters Musical Marble Machine Mayhem

As far as marble runs go, few can hope to compete with [Wintergatan]’s amazing musical works. While undertaking the build of the Marble Machine X, timing problems became apparent. You can crank the machine faster or slower to alter the tempo, but the time it took marbles to drop due to gravity and hit an awaiting drum remains constant. You can’t control gravity, so you look to a mechanical solution in adjusting marble drops. In music, as in a jewel heist, timing is everything. Thankfully, [Machine Thinking] was on hand to collaborate, and a solution was found in the form of a beautifully machine indexable clutch.

The duo came together and designed a clutch, that would allow the timing relationship between various parts of the Marble Machine X to be varied. At 7:10 into the Wintergatan video below he gets down to brass tacks on how this brass music timing clutch actually works. At 90 BMP, the clutch allows the synchronization of the machine to be altered in approximately 10ms increments. Without this vital addition, drum beats would tend to slip out of time.

It’s a part that would challenge the novice, requiring the cutting of teeth and the inscription of accurate markings to allow it to do its job. However, it’s no trouble for [Machine Thinking], who shared a video of the machining process, including the outsourcing of the hand-engraved dial numbers.

Such a piece takes significant work to produce, and yet it is just one part of a much larger machine. We can’t wait to see the Marble Machine X finished, but if you’re unfamiliar with [Wintergatan]’s earlier works — you’re in for a treat.

Continue reading “Marvelously Machined Clutch Masters Musical Marble Machine Mayhem”

Ball Run Gets Custom Sound Effects

Building a marble run has long been on my project list, but now I’m going to have to revise that plan. In addition to building an interesting track for the orbs to traverse, [Jack Atherton] added custom sound effects triggered by the marble.

I ran into [Jack] at Stanford University’s Center for Computer Research in Music and Acoustics booth at Maker Faire. That’s a mouthful, so they usually go with the acronym CCRMA. In addition to his project there were numerous others on display and all have a brief write-up for your enjoyment.

[Jack] calls his project Leap the Dips which is the same name as the roller coaster the track was modeled after. This is the first I’ve heard of laying out a rolling ball sculpture track by following an amusement park ride, but it makes a lot of sense since the engineering for keeping the ball rolling has already been done. After bending the heavy gauge wire [Jack] secured it in place with lead-free solder and a blowtorch.

As mentioned, the project didn’t stop there. He added four piezo elements which are monitored by an Arduino board. Each is at a particularly extreme dip in the track which makes it easy to detect the marble rolling past. The USB connection to the computer allows the Arduino to trigger a MaxMSP patch to play back the sound effects.

For the demonstration, Faire goers wear headphones while letting the balls roll, but in the video below [Jack] let me plug in directly to the headphone port on his Macbook. It’s a bit weird, since there no background sound of the Faire during this part, but it was the only way I could get a reasonable recording of the audio. I love the effect, and think it would be really fun packaging this as a standalone using the Teensy Audio library and audio adapter hardware.

Continue reading “Ball Run Gets Custom Sound Effects”

Incredible Marble Music Machine

We tried to figure out how to describe the band [Wintergatan]. It took a lot of googling, and we decided to let their really incredible music machine do it for them. The best part? Unlike some projects like this that come our way, [Wintergatan] documented the whole build process in an eight part video series.

The core of the machine is a large drum with two tracks of alternating grey and black Lego Technic beams and pins. The musician sequences out the music using these. The pins activate levers which in turn drop ball bearings on the various sound producing devices in the machine. The melody is produced by a vibraphone. At first we thought the drum kit was electronic, but it turns out the wires going to it were to amplify the sound they made when hit. At the end of their travel the bearings are brought up to the hopper again by a bucket conveyor.

The final part count for the machine sits at 3,000 not including the 2,000 ball bearings rolling around inside of it. If you’ve ever tried to make a marble machine, then you’ll be just as impressed as we were that the machine only appeared to lose a few marbles in the course of a three minute song. Aside from the smoothness of the machine, which is impressive, we also enjoyed the pure, well, hackiness of it. We can spy regular wood screws, rubber bands, plywood, bits of wire, and all sorts of on-the-spot solutions. Just to add bonus cool, the whole project appears to have been built with  just a bandsaw, a drill press, and a few hand power tools.

The machine is great, but we also really appreciate the hacker spirit behind it. When a commenter on a YouTube video told him he was a genius, he replied, “Thank you for that! But I do think, though, that it is mostly about being able to put in the time! I mean the talent of being stubborn and able to see things through are more important than the abilities you have to start with. If you work hard on anything, you will learn what you need and success! Its my idea anyway! So happy people like the machine!”. Which we think is just as cool as the machine itself. Video of the machine in action and part one of the build series after the break!

Continue reading “Incredible Marble Music Machine”

Your Marble Machine Doesn’t Need To Change The World

It’s easy to get sucked into the increasing the complexity when sometimes the craftsmanship can be what makes the project. [Alex Weber] proves the point with his minimalist marble machine. There are no death-defying twists and turns, no convoluted path forks or overly-complex lifting mechanisms. This is about a clean and simple design that looks amazing whether running or stationary.

For the uninitiated, marble machines route marbles (or quite often steel ball bearings) through a set of paths usually guided by gravity for the delight of onlookers. Traditionally, making them complicated is the point. Take this offering which highlights years worth of marble machine builds all exercising different concepts. Sometimes they occupy entire rooms. We’ve seen them make a clock tick. And who can forget marble-based flip-flops that combine to form things like binary adders?

Have we scared you off from building these yourself yet? No, that’s the entire point of this one… it can be excruciatingly simple, while elegantly crafted. Check out the video demo below to see how one oval, one battery, and one motor have no problem bringing a smile to your face.

Continue reading “Your Marble Machine Doesn’t Need To Change The World”

Epic Wooden Marble Run For Kids’ Room

Some parents buy kinetic sculptures for their kids at art or craft fairs. Not [Steve Moseley], he turned his kids’ hovel into a sculpture by wrapping a marble run around the entire room. It’s big enough, with so many features that finding a banner image was a bit tough. After the break we’ve embedded a video where you’ll see a wagon wheel lifter, plenty of gravity-fed curves, loops, inclines, rockers, a stair-step lifter, and… well you get the idea.

Considering the scope of the project it was remarkably inexpensive; about $70 in wood, $40 for the glass marbles, and around $60 for everything else. We’re glad he shared his building methods with such verbosity. You’ll need a well-stocked shop. Fine work like this requires tools common for woodworkers, but we’d bet the band saw and oscillating spindle sander were a godsend.

Continue reading “Epic Wooden Marble Run For Kids’ Room”