Skip to main content

Working with various motors in your NXT projects - Part 1

Have you ever wanted to create something cool with NXT - but the size and shape of the NXT motor made it impossible? Nearly all NXT projects use the standard NXT motors that ships with a Retail NXT kit. But that is not the only option:

Following one of the comments by a reader on my post last week about using the linear actuator, I thought I will do a blog on using motors - especially non NXT motors with your NXT kit.

The following list some ways of leveraging your motor collections and tells you how to control the various types of motors from your NXT brick:

1) Direct connection of a NXT motor to a NXT

This is the most obvious - and it is the easiest to program - either using the motor block and move block that comes with NXT-G - or a quick sequenced programmed using the on brick editor.

Given the NXT motor has a rotation sensor built in, this is the most flexible method - giving a variety of ways to program the motor action - including specifying the number of turns or number of degrees.

(2) Direct connection of a TECHNIC motor to a NXT via cable

If you have one of the common TECHNIC motor that used to ship with many recent models before Power Function motors came out - the easiest way is to use a NXT conversion cable. The cable (item #8528 at shop at home) comes with 2x2 studded connector plate on one end and an RJ12 plug on the other end. The cable also comes with a LEGO 9797 Education base kit.

This way you can use a simple Motor block to control the TECHNIC motor directly from the NXT - the motor derives its power from the NXT.

(3) Direct connection of a PF motor to a NXT

If you have some Power Function motors - from any of the latest TECHNIC and Creator models from 2008, then the PF motors are another option:

Powering it from NXT is not that simple - you need two cables:

LEGO have no plans to bring out a direct cable - so this is the only 'approved' way to power a PF motor directly with a NXT. Again programming this is just like the TECHNIC motor above - just use a Motor block and specify the length of time to turn on the motor (or you can leave it on until a sensor condition is met).

(4) Controlling the PF motors / train motors via IR-Link from a NXT

This is one of the best option for larger robots: The HiTechnic IR-link is a sensor that allows the NXT to control up to 4 sets of motors simultaneously. The motors does not derive the power from the NXT - but instead from its own PF power supply. The IR-link controls the motor using InfraRed signals. The company that made IR-Link (HiTechnic) also give you the NXT-G block so you can program it.

Edit: You can use this method for controlling both XL and Medium Power Functions motors as well as the train motors /IR-receivers that shippd with the new LEGO RC trains such as this one. [Thanks James, for the comment]

When I first tried this method a year ago, [see my review on BrickJournal) I did not like not being able to control the speed / power of the motor: The IRLink could only turn on or off the motor - you can not change the motor power - like you do with a direct connection methods above.

However, the guys at HiTechic have been busy - and recently I been playing with a beta version of a new NXT-G block that will support the Power Function PWM Combo mode. This will allow one command to control both motors and also allow selectable brake and float for each motor. I will post a link to the download location as soon as this is publicly available.

Why not drop us a comment and tell us how you used non NXT motors in your own NXT projects?

Popular posts from this blog


2023 is the 25th Anniversary of the MINDSTORMS brand. For 25 years, MINDSTORMS has educated and inspired a generation of robot builders, both children and adults. Unfortunately, the LEGO Group decided to end the line on December 2022. Many ROBOTMAK3RS have been passionately involved with the development of MINDSTORMS through the MUP and MCP programs. Even with the newest Robot Inventor line, several ROBOTMAK3RS were invited to submit additional bonus models that were included in the official app. Regardless of the retirement of a major LEGO robotics product line, ROBOTMAK3RS continue to MAKE-SHARE-INSPIRE using all LEGO robotics platforms available to us. Here is the official statement from LEGO. Since its launch in September 1998, LEGO MINDSTORMS has been one of the core ‘Build & Code’ experiences in the company’s portfolio, carrying with it significant brand equity and becoming a stand-out experience for the early days of consumer robotics and leading to current Build & Code

Celebrating MINDSTORMS with a Remix Part 1

In honor of the 25th Anniversary of MINDSTORMS, we asked ROBOTMAK3RS to combine a LEGO set of their choice with a MINDSTORMS set. Here is what these five ROBOTMAK3RS came up with.  MINDSTORMS Chess Assistant by Arvind Seshan Overview: When you are new to chess, it can be a challenge to remember which pieces go where. Now, you can use machine learning and LEGO MINDSTORMS Robot Inventor to build a tool to help you learn where all the chess pieces go on the chess board. Sets used: LEGO® Iconic Chess Set (40174) and MINDSTORMS Robot Inventor (51515) Review: I really like how the chess set base can store all the pieces underneath and that the board neatly splits in half for handy storage. The chess pieces themselves are very sturdy and well built. My only criticism is the building of the box itself. It was quite difficult to see what pieces to use and since the entire box is made mostly of thin plates, it took a lot of time and patience. I would have liked the storage area to be sliding dra

Celebrating 25 Years of MINDSTORMS

In celebration of the 25th Anniversary of MINDSTORMS, we take a trip through history. Please also visit ROBOTMAK3RS Community every week as we highlight different projects all through 2023 in celebration of the anniversary. Some of the early history is based on the content shared by  Coder Shah  in our  MINDSTORMS EV3 Community Group . Some of the text and links may have been edited from his original posts for consistency and clarity.  1984 - Kjeld Kirk Kristiansen watched a TV program called "Talking Turtle," where MIT professor Seymour Papert demonstrated how children could control robot "turtles" using LOGO, a programming language he developed. 1988 - The collaboration between MIT and LEGO resulted in LEGO TC Logo in 1988, which allowed students to control LEGO models using computer commands. The video shows Papert demonstrating TC Logo. 1990 - LEGO TC Logo was hampered since the robots you built had to be tethered to a personal computer. LEGO and MIT