Languages

Circular serial communication

Three Arduinos handshaking in circle

I just implemented a very simple example of serial communication in circle. I used a handshaking algorithm that works with two arduinos. I just added the same algorithm to the third one, plugged them properly, and it worked! The result is that it makes all of the modules synchronize together.

The handshaking algorithm is very simple. Each node has one sender and one receiver. The board sends a "ping" signal to its receiver. It then waits for a "pong" signal to come back from its sender. Since each node does the same thing, the objects will eventually synchronize as the messages propagate.

IMPORTANT As for I2C communication, in serial communication the grounds have to be connected together.

I just implemented a very simple example of serial communication in circle. I used a handshaking algorithm that works with two arduinos. I just added the same algorithm to the third one, plugged them properly, and it worked! The result is that it makes all of the modules synchronize together.The handshaking algorithm is very simple. Each node has one sender and one receiver. The board sends a "ping" signal to its receiver. It then waits for a "pong" signal to come back from its sender. Since each node does the same thing, the objects will eventually synchronize as the messages propagate.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <h3> <h4> <h5> <h6>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Fill in the blank
By submitting this form, you accept the Mollom privacy policy.