Drawing Hilbert curves with an NXT Plotter

In early September, Kevin built a plotter using NXT, using the design from the book “The Unofficial LEGO MINDSTORMS NXT 2.0 Inventor’s Guide” by David Perdue & Laurens Velk. It is an amazing book with lot of good ideas and designs.

I was not content with the NXT 2.0 text and the graphic it printed using the Mindstorms visual environment. So I flashed LeJOS and wanted to do some more interesting patterns. First up was Lissajous figures. Lissajous figures are generated when you make the velocity of the X and Y motors sinusoidal. We played with different frequencies and velocities. It was very simple to program, and yielded decent results (the videos I took are stuck in a thumb drive which I left at home – pics & videos sometime later).

Then I wanted to do something more exciting, and coded it to trace the Hilbert Curve. Here are the results:

Leave a Reply