Hi Friends,
I'm not sure this is possible ... I wanted to hear from you guys if you think I should even chase this idea down.
I have 5 identical robots that will race (they are programmed to use random-number generated speeds) as part of a charity event. Obviously, to be fair, they should all start at the same time. Is there a way to use bluetooth to make the racing program execute on all 5 at the same time? Say, make a robot that controls the "racers" and when I push its button, it starts everyone up?
I have had a hard time finding info on bluetooth use in NXT programming...
Thanks!
Nunzilla
Using bluetooth to synchronize robots
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: Using bluetooth to synchronize robots
Bluetooth has a lag time, not to mention that a master NXT can *only* have three slaves. The lag time is not really large, and you could add waits based on assumption, but I wouldn't do it since there are five racers, and not just three.
I think it would be easier to have a system where a light sensor is pointed down, and it waits for the start light (under it) to change states. I think that this would have them in sync a lot better. This way, they would all get the "signal" at the same time.
I think it would be easier to have a system where a light sensor is pointed down, and it waits for the start light (under it) to change states. I think that this would have them in sync a lot better. This way, they would all get the "signal" at the same time.
Matt
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
-
- Posts: 323
- Joined: 29 Sep 2010, 05:03
Re: Using bluetooth to synchronize robots
Or use the sound sensor and a starting gun!
Re: Using bluetooth to synchronize robots
Or the ultrasonic sensor and a starting gate (like at a horse race). When the gate is lifted the cars (horses) start moving. If the gate is close to the sensor you probably wouldn't have problems with cross-talk.
John Hansen
John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
Re: Using bluetooth to synchronize robots
Thanks guys! All your suggestions are far more "racer-like" than my original idea! Thanks a million!
Nunzilla
Racing towards NXT victory
Nunzilla
Racing towards NXT victory
Who is online
Users browsing this forum: Semrush [Bot] and 4 guests