Using bluetooth to synchronize robots

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
nunzilla
Posts: 5
Joined: 11 Oct 2010, 18:30

Using bluetooth to synchronize robots

Post by nunzilla »

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
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: Using bluetooth to synchronize robots

Post by mattallen37 »

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.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
gloomyandy
Posts: 323
Joined: 29 Sep 2010, 05:03

Re: Using bluetooth to synchronize robots

Post by gloomyandy »

Or use the sound sensor and a starting gun!
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: Using bluetooth to synchronize robots

Post by afanofosc »

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
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
nunzilla
Posts: 5
Joined: 11 Oct 2010, 18:30

Re: Using bluetooth to synchronize robots

Post by nunzilla »

Thanks guys! All your suggestions are far more "racer-like" than my original idea! Thanks a million!

Nunzilla
Racing towards NXT victory
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests