The NXT STEP - LEGO MINDSTORMS NXT Blog: Power Functions Remote Control Sensor for NXT

The NXT STEP - LEGO MINDSTORMS NXT Blog

The NXT STEP Blog brings together news and information related to the LEGO MINDSTORMS NXT system.

ADULTS/PARENTS: We remove any inappropriate comments/postings as fast as possible. The LEGO MINDSTORMS NXT system is for all ages, but it is our goal to provide a blog that is useful to the youngest of tinkerers.

LEGO, MINDSTORMS, RCX, and NXT are registered trademarks of The LEGO Group.

Monday, March 10, 2008

Power Functions Remote Control Sensor for NXT

If you have some of the Power Functions remote control stuff, here is a way to get the remote control receiver to serve as a sensor for the NXT, so that you can wirelessly control your NXT robots, using only LEGO parts and NXT-G. The example shows the NXT responding to the up/down/center position of both the red and blue controls on the remote control by drawing graphic arrows on the screen to indicate which way the controls on the remote are being pushed.

This solution is a kludge. It requires several expensive and heavy LEGO electrical parts, and also requires the Education version of the NXT-G software or the Legacy Block Library add-on, but it's all snap-together with LEGOs with no external hardware or software, so if you happen to have the parts already, then it's easy to get it to work.

I am showing this mainly to call attention to a question: There are apparently 3rd party IR Link sensors available for the NXT now (and a couple of nice home-brew ones have been demonstrated), but does anyone want to offer an opinion about whether there is a solution out there that is friendly enough for kids to use with only NXT-G? Note that I am not talking about controlling PF motors from the NXT, or just powering the NXT motors directly from the PF stuff(which can be done with LEGO's adapter wires), but rather giving wireless PF remote control input to your NXT-G program in an easy and reliable way.

9 Comments:

At 7:58 PM, Blogger Brian Davis said...

This is a nice solution, although there are a few points to mention. First, you don't need the Educational version of NXT-G: the retail version can import new NXT-G blocks, and the "legacy" blocks have been available on the MINDSTORMS support page, so that's not a limit. Using the old rotation sensors is a bit tougher to work around, but not too hard. Put a clutch gear or pulley on the medium PF motor, and have to drive a second gear or pulley with a "flag" (half the gear is colored black, half white, or something similar). Use a rubber band so that when undriven, the "flag" is oriented with the edge right in front of a light sensor. Now when the motor is driven CW, the light sensor will report one extreme ("light"), when driven the other way it will report the other extreme ("dark"), and if undriven the rubber band will return it to neutral ("grey"). Now you have a "translation system" that depends only on the PF motors and the stock NXT light sensors, plus other parts.

Yes, I'd love a direct system as well (where the NXT could "read out" the IR control signals via the Hitechnic IRLink, for example), but it doesn't seem to exist yet... and honestly, with all the new information still being released about the future of the PF line, I'd rather wait a bit to make sure it handles "the kitchen sink".

--
Brian Davis

 
At 8:00 PM, Blogger Robotica said...

Dave,

Nice solution :)
As Dave said you can download the sensor blocks and install them within the retail version.
More information is here

Please note that you need to install the component of your language version.

This is advanced usage, so please spend some time in reading (and understanding) the readme.txt files before installing these components.

!! It is always a good thing to backup (copy) your own created code, before you change the NXT-G software, don't forget the myblocks.

Martyn

 
At 4:02 AM, Anonymous NXTIdea said...

Why not use bluetooth mobile phone as remote controller? Especially now almost every kids has a mobile phone. You can program a really kids friendly application in java if you don't like the Lego one. I also believe there's already plenty on internet you can download for free.

 
At 10:05 AM, Blogger Brian Davis said...

There are two problems I see with BT phones as remote controls. First, there are a lot of different phones out there, each of which will take a slightly different technique or program. Another issue is that almost all the BT cell phone apps I've seen send direct commands, turning the NXT into a "dumb remote"... while using something like an IRLink as a "sensor" potentially allows the NXT to be running a program at the time. For instance, I use this with Serenity, because if the remote control system goes out for any reason, I don't want the boat to just "drive off into the sunset".

--
Brian Davis

 
At 11:29 AM, Blogger Dave Parker said...

Thanks for pointing out the Legacy Block Library for NXT-G, I edited the web page and blog entry to mention it.

For other solutions, remember that I have young kids in mind here. I would like to see LEGO (or somebody else) come out with a good remote control solution that works reliably with minimal to no fussing required. I don't know if this is Bluetooth or PF, but there is already a Bluetooth block in NXT-G, so if there was an NXT Bluetooth remote that just worked out of the box, then that would be great, because no software update would be required. I would "endorse" it on my web site and post projects for it, but I cannot recommend the state of Bluetooth today to a broad audience of kids...

 
At 12:00 PM, Anonymous Parax said...

Would be interesting to see a diff between the two motors and calc the inputs from One speed sensor! you would need to gear one motor though because +1 and -1 add to 0
drive motors at ratio of 1:2 and its easy.

Parax.

 
At 12:35 PM, Anonymous Parax said...

In 30 mins easy see here:

http://www.brickshelf.com/cgi-bin/gallery.cgi?f=306749

Parax.

 
At 6:40 PM, Blogger AlexD said...

The IRLink from both Mindsensors and HiTechnic has in/out with the RCX, which means that the old RCX remote control should be usable as remote. I have not tried it yet, but it sounds plausible. Will post more after I try.

 
At 12:08 PM, Anonymous Parax said...

Dave, I liked it so much I built my own version, using just one sensor, see vid on youtube.

http://uk.youtube.com/watch?v=Bv3Y2dC9p8w

 

Post a Comment

<< Home