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

Celebrating MINDSTORMS with a Remix - Part 3

The ROBOTMAK3RS continued their celebration of the 25th Anniversary of MINDSTORMS through these Fall and Winter remix projects. Each ROBOTMAK3R was tasked with selecting one LEGO set of their choice and combining it with a MINDSTORMS set. Below are the five amazing models they came up with. Braill3 by Jerry Nicholls Braill3 is an EV3-based LEGO Braille bricks reader. This robot uses its fingertip, made from three touch switches, to read messages written using the LEGO Braille bricks and will speak out what it detected. If it sees a simple maths problem it will attempt to solve it and give the answer as well. To learn more about the process of creating this machine, read Jerry's blog . Braill3 can be viewed here . Set Review: The Braille Bricks set is well thought out. The ratios of the letters is suitable for general use and the addition of some punctuation and arithmetic operators is excellent. There is a card showing what bricks there are and their quantities, but no form of sort

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

Celebrating MINDSTORMS with a Remix - Part 2

The ROBOTMAK3RS continued their celebration of the 25th Anniversary of MINDSTORMS through these summer and fall remix projects. Each ROBOTMAK3R was tasked with selecting one LEGO set of their choice and combining it with a MINDSTORMS set. Below are the five amazing models they came up with. Remote controlled material handle r by Jozua van Ravenhorst (aka Mr Jo) This remix combines the LEGO Technic Material Handler (42144) with MINDSTORMS EV3 (31313) It uses the power of pneumatic cylinders to move objects around. By using a bluetooth remote control, very precise movements can be made with this model. Touch sensors in the base chassis prevent the turret twisting the cables that go through the turntable to much. The program has several protections to prevent over pressurizing the system for each of the 3 individual pumps and valves that control the 2 booms and claws. The real version of this machine is mostly used in waste material sites to bring the material to machines that sort and