|NXT serial via usb
|Page 1 of 1|
|Author:||icefalcon [ Tue Apr 29, 2014 2:09 pm ]|
|Post subject:||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.
|Author:||rcahoon [ Tue Apr 29, 2014 4:59 pm ]|
|Post subject:||Re: NXT serial via usb|
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
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group