I want to have multiple Arduinos talk to each other wirelessly over quite large distances (10-50 meters between each arduino) in the following way:
Arduino 1 does something and then tells Arduino 2 to do something
|
Arduino 2 does something and then tells Arduino 3 to do something
|
Arduino 3 does something and then tells Arduino 4 to do something
|
Arduino 4 does something and then tells Arduino 5 to do something
|
Arduino 5... and so on.
What would be the simplest way of doing such a thing?
What would be the simplest way of doing such a thing?
Depends on what "tells Arduino n to do something" means. Is that a matter of sending one byte? Or is that a matter of sending a bunch of data to the next Arduino?
How long does it take Arduino n to do something? That is, how often would Arduino n be sending data?
Line of sight? Or are there obstructions?
Does it matter if something happens to Arduino n, so Arduinos n+1, n+2, etc. fail to be told to do something? Or, if Arduino n fails to respond, should Arduino n-1 send the message to Arduino n+1, instead?
One byte could be enough, yes. Just an "impulse" to the next Arduino to say that it can do it's pre-programmed job, before it sends an impulse to the next in the chain.
The Arduino would have about 200-500 ms to do a very simple task and send an impulse to the next in line. After that, wait for a while (maybe 5-10 seconds) while waiting for the next impulse to come and it repeats its task.
I'm hoping to find a system that can handle obstructions. This will be an outdoors project.
I guess I haven't thought about the scenario of one of the Arduinos failing. It would definitely be cool with a failsafe, but for now I'm just looking for a straight forward solution.