| Author |
Message |
|
jagadeeshstel
Rookie
Joined: Sat Jul 30, 2011 10:03 am Posts: 7
|
 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 |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2859 Location: Rotterdam, The Netherlands
|
 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 |
|
 |
|
jagadeeshstel
Rookie
Joined: Sat Jul 30, 2011 10:03 am Posts: 7
|
 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 |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2859 Location: Rotterdam, The Netherlands
|
 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 |
|
 |
|
jagadeeshstel
Rookie
Joined: Sat Jul 30, 2011 10:03 am Posts: 7
|
 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 |
|
 |
|
DiMastero
Expert
Joined: Wed Jun 30, 2010 7:15 am Posts: 179
|
 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 |
|
 |
|
jagadeeshstel
Rookie
Joined: Sat Jul 30, 2011 10:03 am Posts: 7
|
 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 |
|
|