View unanswered posts | View active topics It is currently Mon May 20, 2013 1:28 am






Reply to topic  [ 7 posts ] 
Two NXT robots throw the ball at same time 
Author Message
Rookie

Joined: Sat Jul 30, 2011 10:03 am
Posts: 7
Post Two NXT robots throw the ball at same time
Two NXT robots throw the ball at same time.
How to write a single program to communicate two robots at the same time.
the robots have to throw the ball at same time.


Wed Aug 17, 2011 8:57 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 2859
Location: Rotterdam, The Netherlands
Post Re: Two NXT robots throw the ball at same time
You could do it by having one of them send a message to the other via a couple of different ways:
  • Light sensor, the master turns on the light on the sensor and the other "listens" for it with its own light sensor.
  • Bluetooth, the master sends a message to the slave
  • RS485, the master sends a message to the slave
The top one is the easiest.

- Xander

_________________
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)

| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Thu Aug 18, 2011 1:39 am
Profile WWW
Rookie

Joined: Sat Jul 30, 2011 10:03 am
Posts: 7
Post Re: Two NXT robots throw the ball at same time
Thank you so much ..

Any other way to communicate the robot.
what is RS485.


Thu Aug 18, 2011 12:11 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 2859
Location: Rotterdam, The Netherlands
Post Re: Two NXT robots throw the ball at same time
RS485 is a very fast serial protocol but it's a bit tricky to master. Make it work with the light signals first.

- Xander

_________________
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)

| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Thu Aug 18, 2011 12:25 pm
Profile WWW
Rookie

Joined: Sat Jul 30, 2011 10:03 am
Posts: 7
Post Re: Two NXT robots throw the ball at same time
light signal is little bit time difference..
better how to send a message in bluetooth


Thu Aug 18, 2011 7:37 pm
Profile
Expert

Joined: Wed Jun 30, 2010 7:15 am
Posts: 179
Post Re: Two NXT robots throw the ball at same time
If there's a small difference, you can add a wait at the one that goes earlier. Adjust the time it waits to get them equal.

_________________
leonoverweel.com


Thu Aug 18, 2011 11:08 pm
Profile WWW
Rookie

Joined: Sat Jul 30, 2011 10:03 am
Posts: 7
Post Re: Two NXT robots throw the ball at same time
hi team i solve that program . but i have another problem.
the robot have to select the ball . red or blue ..
if the robot have red color ball . the did not take any further action.
how to find out the ball color.


Sun Sep 18, 2011 10:22 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 3 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.