Lego Rubik’s Cube

I stumbled across a working Rubik’s Cube made from Legos.  The design is by Maarten Steurbaut, and it is an impressive compact design (his second version).  Below is a MLCAD/POV Ray image of the inner workings of his cube.

 Lego Rubik's Cube

His first design was much more complex (below), and I find the images to be quite impressive.  Its interesting to me that I am more impressed by the complex design, while a design that relies on simplicity takes a lot more ingenuity and effort.

Early version of Steurbaut's Rubik's Cube

Surprisingly, Maarten was not the first to make a working Lego Rubik’s cube.  Martin Howard had also constructed a Rubik’s cube with a more compact design.

 J.P. Brown took a different approach and created CubeSolver, which is a Lego Mindstorms machine that solves Rubik’s Cubes.   His written documentation about the design challenges that he faced is full of excellent ideas.

 Lego Mindstorms Rubik's Cube Solver

Kevin Knuth
Albany NY 

Posted under Fun, Inventions, Lego, NXT, Robotics

This post was written by drknuth on May 6, 2007

Lego Machine used to test Blackberry

As reported on PCSTATS, Research in Motion (RIM) engineer Matthias Wendel designed a Lego Machine to test their Blackberry Pagers.  The machine rotates the pager about two axes in a pre-programmed manner allowing the engineer to systematically test the reception of the 900 MHz wireless device in the environment.

Lego Blackberry Rotator

This is an excellent example of how LEGO machines can be used to solve real engineering problems on the cheap!

Image Copyright: Matthias Wendel

Kevin Knuth
Albany, NY

Posted under Intelligent Systems, Inventions, Lego, NXT, Robotics

This post was written by drknuth on April 29, 2007

Lego Central Drive Animation

I am slowly constructing my first intelligent instrument.  It will be an instrument that learns the acoustic radiation pattern emitted by a speaker.  It is not a perfect acoustic experiment—nor is it meant to be.  Uncertainties and errors abound, especially since I am using the Lego NXT Mindstorms system to construct the instrument.

Animation of the Central Driveshaft

The design is sufficiently complex that I found that I need to document it using the LDraw system, specifically MLCAD.  I have been practicing my animation skills as well.  Here you can see a short animation of the central drive shaft for the acoustic platform.  The gears are turning at the appropriate rates and everything.  However, there is an aliasing effect in this downsampled image (which used to be referred to as the wagon wheel effect).  So it may look as if some gears are rotating backwards, or not at all.  If you click on the image, you can download a 6 MB version that is much smoother. 

The longer animation will appear in two talks I am giving at the University at Albany this week:
NTIR 2007 and PASCAL 2006.

Kevin Knuth
Albany NY

Posted under Acoustics, Intelligent Systems, Inventions, Lego, NXT, Research, Robotics, Software

This post was written by drknuth on April 22, 2007

Tags: , , , , , , , ,

Lego Geneva Mechanism

I recently designed a Geneva Mechanism that I will be using in my Lego Laser Scanner.  The Geneva Mechanism takes smooth rotary motion and converts it to intermittent rotary motion.  One can think of it in electronics terms as changing the duty cycle of the oscillation.

Geneva mechanisms were invented in Switzerland for use in clockwork so that the hands of a clock would snap rapidly to their new positions rather than move smoothly across the face of the clock.  They are also used to advance film in film projectors.  They are responsible for that clicking noise that film projectors make.

Lego Geneva Mechanism

Above is an image of my design rendered using the Lego CAD LDraw tools that I discussed in earlier posts.

I have been practicing with animating Lego designs, and I have figured it out.  Below is an animated GIF of my Geneva Mechanism.  It is a pretty big file, so it may take some time to download.  Notice that I cheated a little and included just enough frames to rotate the wheel 90 degrees, since it is mostly 4-fold symmetric (but not exactly).

Geneva Mechanism Image

The animation was challenging in that there are three moving parts: the rotating arm, the latch, and the wheel.  I designed each of the pieces in MLCAD and made sure that they were positioned so that the origin of the three pieces was centered on the axis that I wished to rotate the image about.  The rotating arm simply rotates a single rate described by 155-clock, where the clock is a variable in the ray-tracing program POV-Ray that I have set to cycle from 0 to 360. One can see that when clock equals zero, the arm starts at 155 degrees.

The arm is only able to rotate the wheel over a 50 degree range, while the wheel rotates a full 90 degrees.  This lead to the following equation that I used the describe the motion of the wheel:

angle = 45+(clock-310)*9/5

Note that the wheel starts turning when the rotating arm gets to 310 degrees, and moves almost twice as fast (9:5 ratio) so that it turns 90 degrees while the clock which controls the rotating arm counts only 50 degrees.

The latch was especially difficult as it is pushed outward by a cam, and I did not have the details of the shape of the Lego cam, nor did I have the patience to measure it myself. The latch arm moves slowly at first away from the wheel and then slows down as it approaches the limit of its motion. My first approximation was a cosine:

 5-25*cos((clock-237)/(305-237)*3.1415)

Note that the latch does not start moving until the clock is at 237 degrees. At this point, the argument of the cosine is zero, and its value is 1 giving a angular position of -20 degrees. The cosine picks up speed and slows down again as it approaches 30 degress. Once the cam is out of the way, a rubber band (not shown in the illustration) rapidly snaps the latch back into place. To describe this, I merely treated its motion as an acceration:

-50*((clock-305)/55)*((clock-305)/55))+30, where I have implemented the square by multiplying twice. The result is a more realistic motion.

Enjoy,
Kevin Knuth
Albany NY

Posted under Lego, NXT, Robotics, Solutions

This post was written by drknuth on April 14, 2007

Tags: , , , , , , , , , ,

Lego Lasers

Well, I must admit that it didn’t take long for my interest in robots to be united with my interest in lasers.  Two great tastes that go great together!  Why indeed should my robots be defenseless against those that might wish them harm?  Clearly, a Lego Laser is called for.

Destroyer Droid from Attack of the Clones

In all seriousness, it occurred to me one day last December while shining my 35 mW Wicked Laser that I could scan a tree in winter and reconstruct a three dimensional image of it.   This is actually a useful idea since Earth Scientists are currently very eager to quantify the Earth’s carbon cycle.  A great deal of CO2 ends up locked up in plants, especially trees.  So there are researchers engaged in trying to quantify the mass of a tree, so that they can get an idea of how much carbon has been taken up by the tree.  The way they typically do this is to measure the trunk diameter and the height, and then cut the tree down and find its mass by weighing it.  One can then work out the correlation between trunk diameter and tree height and the tree’s mass for a given species.  You then of course, have to do this for every species.  Now to find the mass of a forest, you then have to go in and measure the trunk diameters and tree heights to get the mass of the forest.  (This of course neglects the roots, for which you can come up with correction factors).  The other possibility is to use LIDAR and map the forest.  But LIDAR is expensive.  So a little Lego Laser scanner might be a useful prototype for doing Earth Science research.

So I now have a few laser pointers that I am prepared to disassemble and mount onto Lego bricks.  But before I got started, I decided to check out what others have done.  Here are some useful links:

Laser Target Finder Sensor by Philo Hurbain, which combines a laser with a light sensor so that the robot can find targets identified by laser.

NXT Laser Hack by Kevin Cook, which allows you to replace the photodiode in the official Lego Light Sensor with a laser from a laser pointer. 

Lego 3D Laser Digitizer by Rama Hoetzlein, which is similar in concept to the Laser Scanner I am contemplating for tree modeling.

Tomorrow, I will try to get photos of my current laser scanner online.
I am also reading “Extreme NXT”, which I just purchased from Amazon (see below).  In this book, which is co-authored by Philo Hurbain (the first link above), they describe how to connect LEDs to the NXT brick.

Please keep in mind that Lasers are not toys and can do real damage to your eyes if you shine it (intentionally or unintentionally) into your eyes.  BE CAREFUL for yourself and others, and don’t blame me or the individuals above if you go and do something stupid and/or careless.

Kevin Knuth
Albany NY

Posted under Inventions, Lego, NXT, Research, Robotics, Solutions

This post was written by drknuth on April 2, 2007