Skip to content
Tech

Lego Mindstorms NXT

Ever wanted to build your own robot army and rule the world? The newest Lego …

Nate Anderson – | 0
Story text

“Every kid’s dream”

Lego Mindstorms NXT
Manufacturer:
Lego
System requirements: 256MB RAM, 300MB hard drive, USB port, CD-ROM, Bluetooth (optional), 1024×768 display, Mac OS X 10.3.9 or later (600MHz G3, G4, or G5 CPU) , Windows XP SP2 (800MHz Pentium CPU or equivalent)
Price: $250 (shop for this item)

Steve Hassenplug is sitting in a van with seven other people on the way to a Lego convention in Washington, DC, explaining the limitations of Lego’s previous robot-building kit, called Mindstorms. "It was always difficult to build a robot that could drive straight," he says.

The confession prompts others—infrared communication on the units was sketchy, and it was difficult for advanced builders to incorporate enough motors and sensors to craft something sophisticated. Something adult. Something that could, in short, get chicks (not Steve’s words).

The original Mindstorms systems, cool as they may have been at the time, look like children’s toys from an 8-bit world. They featured the familiar Lego look and had limited sensor options. The heart of the system, the day-glo RCX, would not have looked out of place in the Yellow Brick Road.

Despite the limitations, hobbyists like Steve have stretched the 1998 technology further than anyone thought possible. Steve himself is especially proud of his own creation, a robot that can play Connect Four—and can win 95 percent of the time. "Whenever I set that up at a show," Steve says, "kids will line up and play it all day."

But Steve isn’t riding a van through the Appalachians just so he can demonstrate his Connect Four-playing robot for another group of eager kids. Instead, Steve has been serving as one of Lego’s ambassadors for the last few months, crisscrossing the country on the corporate dime to evangelize his new favorite product, a completely overhauled and redesigned Mindstorms kit, with a 32-bit NXT control brick, ultrasonic sensors, a revamped set of pieces, a new piece of visual programming software, and Bluetooth support. "Basically, I’ve been flown around by Lego to show off some of the things that I’ve done," he says, "which is like every kid’s dream."

Steve’s love for the new Mindstorms NXT is infectious enough that we had to take a look at the new system, so we hauled a system into the lab for inspection. Thirty minutes later, surrounded by a scatter of bricks and instruction booklets, a baby ArsBot rolled off the assembly line and into our hearts. We were hooked.

PDF Download the PDF
(This feature for Premier subscribers only.)

Wonder toys

If your childhood was anything like mine, then the best possible toy you could receive wasn’t one that came pre-assembled. It was one that let you create. I’m talking about "wonder toys," products like Capsela, Construx, or the venerable Erector Sets, the sort of toy that you might tear into on Christmas morning, spilling the pieces across the floor and just touching each one in rapture at the creative possibilities.

Opening the new Mindstorms box set off the same spasm of joy, a sense of wide-open possibility that reminded me of those childhood toys. It was clear, just by looking at the 577 pieces, the four sensors, the three motors, the cables, wheels, and CD, and the NXT brick itself, that the dream thwarted in the early 80s could now be fulfilled: I would build a robot that could take over the world.

But first, I’d have to build the quickstart robot, a brief project that worked with the piece of demo code preloaded into the NXT. Watching the three-wheeled contraption come together was a blast, but the robot couldn’t do more than zip around the floor like a toddler high on Kool-aid. Clearly, sensors were needed—and a grasping claw wouldn’t hurt, either.


Look, ma! No hands!

The Mindstorms kit comes with four sensors. The touch sensor is a simple plunger that registers contact with another object. The sound sensor is a small microphone that allows the NXT to respond to certain sounds and tones, such as a handclap or a melody. The light sensor has a receiver that can respond to different colors and intensities of light—a crane, for instance, can be programmed only to pick up balls of a certain color, or a moving robot can come to a precise halt when it crosses a black line. Finally, the ultrasonic sensor allows the robot to measure distance and detect objects. All of them use a six-wire cord to plug into the four sensor slots on the NXT.

The three included motors feature their own internal rotation sensors, which allow you to control your creation with incredible accuracy. The sensors can track movement in one-degree increments, and they make it simple to do things like spin your robot around (one motor rotates forward 180°, another rotates backwards by the same amount).

Unlike the Lego building blocks of my youth, the basic building block of the Mindstorms system is the girder, which comes in all shapes and sizes. Girders and a wide range of inventive connectors make up most of the pieces in the kit, though a few gears, claws, and rods are included as well. The tolerances on these items are a testament to the strength of modern manufacturing techniques; in the course of building several bots, I was repeatedly amazed at how tightly the pieces fit together, and never came across a piece that was too large or too small.

Do androids dream of electric sheep?

Piecing together my first sensor-laden robot was remarkably easy (the included sticker pack is a reminder that this product can be used by kids as young as ten), but world domination would remain out of reach until I could program the fearsome beast. Fortunately, the included software makes this simple.


World domination is only a few clicks away

The visual programming system is based on National Instruments’ LabVIEW product. The entire programming process consists of nothing more difficult than dragging colorful squares onto a large grid of virtual graph paper. Each of these squares represents a particular function—"movement" has its own square, for instance. Drag the square onto the graph paper, and a context menu appears at the bottom of the screen, giving you full access to that square’s control variables.


The "movement" context panel

The world’s simplest program

To give you a sense of how powerful such a simple system can be, consider the humble "movement" square. The context menu lets you choose which motors you want to control, the direction you want them to go, the direction, the power, and the duration of the movement, and whether to let the motor coast or brake at the end.

Programs are coded by dragging a chain of these squares into the work area, and it’s simple to follow Lego’s initial suggestions and code a bot that drives forward when it sees something, stops when it encounters a ball, waits for a loud sound, closes its claws, then spins around and zips back to its starting point, stopping when it touches the black line on the included test pad.


Almost ready to take over the world

While the system is simple enough for kids to learn, it’s more powerful than you might think. The software allows for loops, variables, and switches (a graphical version of an "if… then" statement), and lets you virtually wire up inputs and outputs so that the robot could, say, generate a tone that rises and falls based on its current velocity.


Not so simple anymore

This can quickly get complicated, and that’s before even switching over to the more advanced squares, which allow for complex logic operations, text processing, and full Bluetooth send and receive. In fact, this is the feature that has Steve Hassenplug most excited—the NXT brick can communicate with three other Bluetooth devices at any one time. This means that if you had four Mindstorms kits, you could create a mega-robot with four brains, twelve motors, and sixteen sensors—all of it coordinated through Bluetooth. The setup also works with cell phone and PDA Bluetooth systems, meaning that you can use your phone as a remote control or an output device.

To guide new builders in the tao of Mindstorms, the software includes a selection of sample robots complete with step-by-step build instructions and programming challenges (and answers, if you have any trouble). It also integrates with the Lego Mindstorms site and can download new robot designs and content as they become available. As of this writing, Lego had already added two new robots to the download page.

Pimp my ‘bot

What comes in the box is easily worth the $250 list price, but it’s what’s not included that promises to make the NXT a compelling value for enthusiasts. The original Mindstorms systems spawned a passionate user community filled with people like Steve Hassenplug, and the upgrade promises to do the same. Though the new system has only been available for a few weeks, a host of hacks and utilities are already available for download.


Frumious Bandersnatch v1.2

The NXT can play both tones and short audio files, and the utilities already exist to convert standard .wav and .midi files into the proprietary Lego formats, for instance. If you’ve ever longed to build a robot that plays "Hail to the Chief" and calls your name when you walk in the front door, this is your chance.

And this sort of thing is only the beginning. Recognizing that its community of hackers largely kept the original Mindstorms system viable for so long, Lego has gone out of its way to make sure the new system is hack-friendly. The NXT’s firmware has been released as open source software, and the company offers developer kits that provide complete system specifications for those interested in building their own sensors or reprogramming the guts of the NXT.

National Instruments has also released a software add-on for Lego users that allows them to create their own control squares for the visual programming environment, and Microsoft’s new Robotics Studio can be used to create code for the robots.

So who’s it for?

Mindstorms is a curious product. Though targeted at kids aged 10-14, it also holds tremendous appeal to adults. Anecdotal testing up in the Orbiting HQ confirms that adults can’t resist plopping down before the brick pile and trying to assemble a robotic arm.

With plenty of detailed build instructions and step-by-step programming guides, it’s simple enough for kids to get the hang of, but the system exposes enough complexity that adults can dive deeply into it. If you’re the kind of person who wants nothing more than to build a robot scorpion that can drive around the house and grab the cat’s tail in its claw, you can do that. But if you want to rewrite the entire NXT firmware, build your own RDF sensor, design a LabVIEW control for it, and control the entire thing from your PDA, you can do that too.


He grabbed our hearts and won’t let go. Seriously,
we’re in pain here. Can someone unclamp that claw?

This is a wonderful toy for adults and kids to use together. Adults can help a frustrated child visualize the best way to solve a design problem, while the kids can remind the adults of the sheer exuberance of creation. It’s one of the finest robotics systems we’ve ever seen, and it has an active community of developers who promise to extend the system for years to come.

It’s the strength of this community that has kept Steve Hassenplug building for all these years. "The people that I build with," Steve says, "we sort of challenge each other to build different types of things. We’ll come up with new events—we played tic-tac-toe several months ago and everybody had to build a robot to play it."

It’s not the "gee whiz" technology or the chance to wow children with a Connect Four-playing robot—it’s the people that keep things interesting, and Steve will meet a new batch of them in a few hours when he rolls into DC.

The good:

  • Almost 600 pieces
  • Sensors that actually work
  • Programming system easy enough to let Grandma build a ‘bot
  • The X factor: fun to use

The bad:

  • You can link four robots, but it will cost you $1,000
  • Three motors don’t go far when your robots can drive
  • Little available memory in the NXT brick
  • Does not include a death ray

The ugly:

  • The meals I would have missed as a child while playing with this
Photo of Nate Anderson
Nate Anderson Deputy Editor
Nate is the deputy editor at Ars Technica. His most recent book is In Emergency, Break Glass: What Nietzsche Can Teach Us About Joyful Living in a Tech-Saturated World, which is much funnier than it sounds.
0 Comments

Comments are closed.