get two Arduinos to communicate

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
waxaw
 
Posts: 89
Joined: Mon Aug 28, 2017 1:53 pm

get two Arduinos to communicate

Post by waxaw »

Hi,
I'm working with two Arduinos -- I have several stepper motors hooked up to each one using shields. Is there any way to program the Arduinos to communicate with each other. Basically, I'd like one Arduino to go through its program and then have the other Arduino do the same right afterward. Is there a device or wifi device I could use to make this happen. Or some other way to do it?
Thank you!

User avatar
btreichel
 
Posts: 79
Joined: Tue Jul 25, 2017 3:00 pm

Re: get two Arduinos to communicate

Post by btreichel »

simplest would be to use one of the digital pins to output a high or low signal to an input digital on the other board. Board two does it thing when board one sets its output to either high or low

User avatar
adafruit_support_bill
 
Posts: 88088
Joined: Sat Feb 07, 2009 10:11 am

Re: get two Arduinos to communicate

Post by adafruit_support_bill »

The simple way is to just use a digital pin to signal as described above.

For more sophisticated communication schemes, you can set them up as an i2c master/slave:

https://www.arduino.cc/en/Tutorial/MasterWriter
https://www.arduino.cc/en/Tutorial/MasterReader

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”