Image

Software Review: How to Program MINDSTORMS Robots

July 10, 2008
The NXT-G software lets users build programs for Lego Mindstorms NXT robots and then transfers the code via USB or Bluetooth from the computer to the robot.

By Raquel Kozlowski and Corey Watt 

The program is based on LabView software from National Instruments Corp., which manufactures software and hardware that scientists and engineers use to create specialized instruments.

NXT-G was made to help stimulate the minds of younger generations, but it is also of interest to adults. In fact, the software probably would appeal to almost anyone. It is a useful learning experience for newcomers and yet is said to be functional enough for trained programmers. A user-friendly graphical-user interface, simple-to-use drag-and-drop features, and intuitive layout make the program easy to learn. NXT-G keeps users interested in programming because it relates to real-life projects.

Key to programming a robot is identifying your project’s objective and what you want the robot to do. The software is a graphical language (unlike, say, C++) so users drag-and-drop icons that provide various functions. These can be anything from moving the robot in a given direction to performing various sensor actions. Each icon includes settings users can change. Settings depend on the function, but for the most part are based on rotation, direction, and speed. Users can put together flowcharts of icons to create simple or complex actions. Tutorials show which icons to drag and drop.

For our first project, we built a robot with a sound sensor and then used the software’s step-by-step instructions to make the robot go faster as the noise got louder. The instructions were easy to follow, explaining where to put things and what each interaction does. It took us only about 3 minutes to complete the program and transfer it to the robot for testing.

After this, we tried programming without using a tutorial, a bit more of a challenge. We built a robot with a swing arm, an ultrasonic sensor, and a light sensor. Our goal was to make the robot travel to a red ball and then hit it with the swing arm. An ultrasonic sensor detected when the robot got close to the ball stand, a light sensor determined the ball was the right color, and the swing arm then hit the ball.

Coding this program took a lot of thought, but it was also more fun and provided more experience and interaction. A Robot Educator feature came in handy when we got in a bind. It shows how to build the robots and provides animations of what the robots do in response to program steps.

Despite all the pluses of the software, we did think of an improvement. The animations are convenient, but it would be neat to have a visual aid that simulated the program’s actions each time the user adds on more functions. Programming would then be less time consuming. It would also be less of a hassle than continually reloading and running data.

Everything from installing the software to writing this review has been a good learning experience. Lego Mindstorms is available online at http://mindstorms.lego.com/Products/Default.aspx.

— Raquel Kozlowski and Corey Watt

Raquel and Corey were high-school seniors who just graduated this Spring. They built and programmed the robots as part of their physics class in the CNET Tech Prep Program at Lakeland Community College in Kirtland, Ohio.

A Lego Mindstorms NXT robot includes an Intelligent Brick (brain) with 32-bit microprocessor, servomotors, and sound, touch, light, and ultrasonic-visual sensors.

An animation in Robot Educator shows what the program will make the robot do.

The icon for the sound sensor in the software includes settings that users can change.

Sponsored Recommendations

Flexible Power and Energy Systems for the Evolving Factory

Aug. 29, 2024
Exploring industrial drives, power supplies, and energy solutions to reduce peak power usage and installation costs, & to promote overall system efficiency

Timber Recanting with SEW-EURODRIVE!

Aug. 29, 2024
SEW-EURODRIVE's VFDs and gearmotors enhance timber resawing by delivering precise, efficient cuts while reducing equipment stress. Upgrade your sawmill to improve safety, yield...

Advancing Automation with Linear Motors and Electric Cylinders

Aug. 28, 2024
With SEW‑EURODRIVE, you get first-class linear motors for applications that require direct translational movement.

Gear Up for the Toughest Jobs!

Aug. 28, 2024
Check out SEW-EURODRIVEs heavy-duty gear units, built to power through mining, cement, and steel challenges with ease!

Voice your opinion!

To join the conversation, and become an exclusive member of Machine Design, create an account today!