Skip to main content

BlueTooth: making connections

To me one of the most exciting aspects of the new NXT is BlueTooth. The ability to have a secure means of communication, and out of line-of-sight was something that was sorely lacking in the RCX. The first step is getting two (or more!) NXTs talking to each other. To be honest, this is in the user’s manual, p34-37, but a brief run-through might be useful.

Take two NXT bricks, and turn both of them on. Now use the BT menus to make sure both have BT turned on, and make sure both are “visible”. If you’ve never paired these NXT bricks with any other BT device, you will find the “Contacts” menu item seem to do nothing – there are no previous contacts recorded, so this menu is essentially blank (if you previously paired your NXT brick with a BT-capable computer, you’ll find at least one entry under “Contacts”, that of the computer itself).

On one of the NXT bricks, under the BT menu select the “Search” option. The NXT will search the local area for any recognizable BT devices, which may take a few seconds (note: if you do this at, say, NI Week, a major technical trade conference, where literally hundreds of folks are walking around with BT-equipped cell phones, laptops, and other devices… well, let’s just say I gave up waiting after awhile). After a while, the NXT pops up a list of the BT devices it has found. Select the other NXT brick from the list, and then connect on “[1]” (connection #1; you could use any connection, but for now I’ll stick with the default). The first time you do this, a “passkey” dialog will pop up on both NXTs; both of them have to accept the offered passkey (usually “1234” unless you really want to change it). Once you’ve done all this, you’ll see that the little “half-diamond” symbol in the status bar of the NXT bricks has changed to a “full diamond”, showing a BT connection. That’s it, the two NXTs are now linked via BT. If you want to follow the directions on pg37 of the user’s guide, you can now send files (but strangely not image files; I’ve no idea why that got left out) between the two NXTs.

By the way, the next time you want to connect these two NXTs, you don’t need to go through the whole searching and passkey circus. The NXT brick has obligingly recorded the name and status of the new BT device, so all you have to do to establish a connection next time is go right to the “Contacts” submenu, and select what NXT you’d like to connect to (and what connection to use). Handy.

Why did I bother walking through this, when it’s already in the user’s guide? Besides the fact that some people (none of the readers here, I’m sure) don’t actually read the entire user’s guide, I wanted to point out some quirks that become very important later. With the two NXTs connected via BT, take a look at the “Connections” menus on both of them. The one that you started the connection from (called the “master”) lists the other as on “[1]”, while the second NXT (call it the “slave”) lists the connection to the first as over connection #0 (“[0]”). Remember that – even though these two NXTs are connected to each other, they “see” the paired device on a different “connections”. Furthermore that initial NXT that you initiated the connection from has special standing; from it you can initiate other BT connection to other devices (like still more NXTs).

--
Brian Davis

Popular posts from this blog

ROBOTMAK3RS Review: LEGO River Steamboat

I thought the LEGO River Steamboat would be an interesting set for a ROBOTMAK3R review for a few reasons. First, the LEGO designer of the model is Marina Stampoli, a long-time collaborator of the late ROBOTMAK3R Vassilis Chryssanthakopoulo s. From earlier collaborations with Vassilis, I  knew Marina was incredibly talented, with an eye for aesthetics and functionality. Her background in architecture is particularly useful for her relatively new position at LEGO. Her other sets include the Magic of Disney (21352), Message Board (41839), and Red London Telephone Box (21347). Second, watching Marina's reveal video  and reading her designer interview made this set even more tempting to build. The gearing mechanisms running through the model gave way to many opportunities for automation using LEGO robotics elements. Since ROBOTMAK3RS is all about adding interactivity and automation to LEGO brick, I thought it would be fun to see where and how LEGO robotics could be added to this s...

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...

Ghostbusters R.T.V Remix

Nino Guba is from Torrance, California, USA. He played with LEGO as a kid, but growing up in the Philippines, it wasn’t something he had easy access to. He only got reintroduced to LEGO when he moved to the US and had kids of his own. When his sons were younger, they received LEGO sets as gifts, but as they grew older, the sets got put into storage as their interest faded. Fast forward a few years, he started coming up with his own product ideas and thought about how he could quickly prototype them. That’s when he discovered LEGO MINDSTORMS—and was hooked! He raided his kids’ old collection, got everything organized, and now he's designing and building his own creations, blending his coding skills with LEGO robotics to bring ideas to life. Tell us about your Ghostbusters Remote Trap Vehicle (R.T.V) project. This project is a LEGO Technic adaptation of the Ghostbusters R.T.V.—a ghost trap converted into a remote-controlled vehicle. Its companion build is a prop replica of the Futaba...