How to control two Arduino uno at the same time?

Thread Starter

mussa

Joined Jun 10, 2019
45
For example, I wrote a program that do as follow in both arduino's:

for(int i=o;i<=100;i++){
delay(2000);
}
So, if i use a keypad with Arduino a and whenever i press on the key that trigger the loop in arduino a, Arduino b's loop start looping automatically. I am wondering what kind of method/wifi module can be used to make this possible?

Mod edit: title - JohnInTX
 
Last edited by a moderator:

SamR

Joined Mar 19, 2019
5,500
Arduino's may be connected in a slave-master relationship using 2 wires via serial or I2C. Both have to be programmed to do so. A bit more than a simple answer here but it is doable.
 

danadak

Joined Mar 10, 2018
4,057
Do you want almost exact synchronicity (nS) or can you live with latency between slave
and master ? If latency how much can you live with ?


Regards, Dana.
 
Top