If you want use two Arduino, you can use a simple I/O port to communicate.
The point of question is the Ground. When you connect two Arduino with each other, you have to connect their ground. In this tutorial when the Arduino UNO number 1 lights ON the onboard LED, the Arduino UNO number 2 connects to the computer, prints HIGH on the serial port and switches ON the onboard LED.
The result is two Arduino UNO that blink together.
Step 1: The connections of Arduino UNO to Arduino UNOSee the image and connect two Arduino.
Step 2: Now the codeNow download two files. Upload the sketch Output on Arduino UNO number 1 and Input sketch on Arduino UNO number 2. Now connect the Arduino UNO number 2 to the computer and open the Serial port to 9600 baud.
You can see the LED on board of Arduino UNO number 1 blinking, and at same time you can see the LED on board of Arduino UNO number 2. If you disconnect pin number 6 of the Arduino UNO number 1 from the breadboard, you can see the blinking only on the Arduino UNO number 1.
Comments