I am interested in creating a swarm of robots. The robots I'm interested in using have one accelerometer, three IR LED transmitters (pointing horizontally), and one 38hHZ TV remote receiver (pointing up). This is a link to the robot: https://www.plumgeek.com/ringo.html
In order to inform each robot of all other robots' locations, I'm wondering if I could do the following:
Place one master Arduino with a 38hHZ TV remote receiver and an IR LED transmitter in a central location in the room (the ceiling, for example). Assign each robot an ID code (e.g. A, B, C, D, etc). Then, using one of each robot's on board IR LED transmitters, send their location to the Arduino master using their ID code, followed by their accelerometer's current coordinates (for example: "A, current coordinates"). Once the master has received all of the robots' coordinates, it would then broadcast the list in a single message to the group (e.g. "A, current coordinates; B, current coordinates; C, current coordinates").
My concern is with jamming the master IR receiver. One possible work around might be to continually synchronize the robots and receiver by doing the following:
- Master sends out start signal to robots.
- Robot A waits for start signal, then waits 10 milliseconds, then transmits its location.
- Robot B waits for start signal, then waits 20 milliseconds, then transmits its location, etc.
- Master waits 500 milliseconds from start signal, then sends out list of coordinates.
- Cycle is repeated.
I would very much love to hear any suggestions, solutions, or concerns that you have!
Thank you so much for your input!