Why We Need Communication Between Two Arduino ?

Communication is Always need in Arduino When Working on Large projects where Single Arduino Not Handle Load Fully Functionality , We Having Long Distance or We Having Lots of Sensors Are Attach to Arduino and Arduino not handle all data process.Then we need Master And Slave Method by which data processing and data collection are divided into two boards.

List of Method to Communicate ?

Hardware Requirements

  1. Arduino Uno
  2. Arduino Mega Board
  3. Breadboard one or two
  4. Some Jumper wires
  5. Few Leds / Resistance also 100Ω.
  6. Push Buttons

Amazon.in BUY

[amazon_link asins=’B00N23YNA0,B015C7SC5U,B014YUY3RC,B019OCN7SQ,B00ZYFX6A2,B06Y6DG2J6,B01MU752MH’ template=’ProductCarousel’ store=’diamondrock0a-21′ marketplace=’IN’ link_id=’1eb7c3ba-3a59-11e8-9ef8-7317c519b8f4′]

Method Serial Communication

Example 1

In Example 1 Arduino Mega Having 4 Uart And Arduino Uno Having One Uart But We Need Two Uart in Arduino Uno So We need to Created Virtual Uart So See in Serial Port Moniter What data is Received.

The Serial Communication is Depended on Uart. As Many Uart Required To Send And Received Data Information Between Arduino Boards

Processing Algorithm
Communication Between Two Arduino

Circuit Diagram
Communication Between Two Arduino

Programming Code
Arduino Mega Code

Arduino Uno Code

Result

Communication Between Two Arduino
Send 1
Communication Between Two Arduino
Receiving 1
Communication Between Two Arduino
And Blink Led on
Communication Between Two Arduino
Sending 0
Communication Between Two Arduino
Receiving 0
Communication Between Two Arduino
And Blink Led off

Example 2

In Example 2 Arduino Mega  And Arduino Uno Not Use Serial Port Moniter so we use TX0 & RX0. During Upload Code Disconnect RX TX wires if You Connect Them And Try to Upload it is Impossible to upload Code so It better u dissconnect wires before Upload it.

Processing Algorithm

Communication Between Two Arduino

Circuit Diagram
Communication Between Two Arduino
Programming Code
Arduino Mega Code

Arduino Uno Code

Result

(Visited 264 times, 1 visits today)
Communication Between Two Arduino

Tagged on:             

Leave a Reply

Your email address will not be published. Required fields are marked *