To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 26456
26455  |  26457
Subject: 
Example of two-way NXT-to-PC communication
Newsgroups: 
lugnet.robotics
Date: 
Tue, 19 Sep 2006 21:08:47 GMT
Viewed: 
2904 times
  
I created a robot that demonstrates two-way bluetooth communication between a PC
and a NXT (and the limitations of such communication). A program on the PC
receives input from a joystick and sends commands to the NXT. This controls the
movement of the NXT robot. When you press on the trigger button of the joystick,
the PC sends a command to the NXT that causes it to stop moving and to do a
180-degree ultrasonic scan. It sends the measurements made during the scan to
the PC (one by one). The PC displays them on a radar-style display. When the
scan ends, the robot resumes listening to movement commands.

I found that while and shortly after the NXT is listening to bluetooth messages,
it can't send messages. They are simply dropped. Maybe quickly switching between
receiving and sending is possible in bytecode but not with NXT-G blocks; I don't
know.

More info and a video at http://www.tau.ac.il/~stoledo/lego/USJE/

Sivan



Message has 1 Reply:
  Re: Example of two-way NXT-to-PC communication
 
During development, it was discovered that the BlueTooth chip apparently has about a 60ms latency when changing directions. I wasn't working directly on this issue, but I don't believe any workaround was found except to avoid round trips for various (...) (18 years ago, 22-Sep-06, to lugnet.robotics)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR