View unanswered posts | View active topics It is currently Mon Oct 20, 2014 6:53 pm






Reply to topic  [ 2 posts ] 
NXT serial via usb 
Author Message
Rookie

Joined: Tue Apr 29, 2014 1:59 pm
Posts: 1
Post NXT serial via usb
I am starting a project which will control an NXT based robot using a Windows 7 PC and the Processing language. It will be necessary to mount the PC on the robot and I would like to send commands and receive data from the NXT using a USB cable. I have been unable to find any commands to set up a serial port via usb. I would rather not use Bluetooth or Xbee's. I have two NXT's working together using the RS485 ports at 921Kb and expect that there are similar commands to set up serial over usb. I can do this with an Arduino, and it looks like it is running in the background with the RobotC debugger. My project will control the nxt robot via a Kinect which requires the PC, it will be built on a Tetrix platform.

Are there commands to set up the serial port, or do I have to use Bluetooth or Xbee's? Thanks.


Tue Apr 29, 2014 2:09 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Tue Oct 09, 2012 10:34 am
Posts: 192
Post Re: NXT serial via usb
Hi icefalcon,

The NXT doesn't expose a serial port interface over USB, but you can use the Fantom library to send messages to the NXT. Unfortunately, you need to be able to interface with a DLL (or the Mac equivalent shared library) in order to use it, which can be difficult with Java, which Processing is based on, but there's a page on it here.

Alternately, you could buy a USB-RS485 converter

--Ryan

_________________
Ryan Cahoon
CMU Robotics Academy
RVW Software Developer

Robot Potato Head; Virtual NXT


Tue Apr 29, 2014 4:59 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.