0% found this document useful (0 votes)
9 views4 pages

Protocol Buses (Practical)

The document outlines a project to control an LED via serial communication between two Arduino UNOs, where one acts as the Master and the other as the Slave. It details the hardware setup, including connections for the LED and serial pins, and provides steps to create and upload the necessary programs to both Arduino boards. Once completed, the user can turn the LED on and off using commands sent from a computer's serial monitor.

Uploaded by

Ir Azlan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views4 pages

Protocol Buses (Practical)

The document outlines a project to control an LED via serial communication between two Arduino UNOs, where one acts as the Master and the other as the Slave. It details the hardware setup, including connections for the LED and serial pins, and provides steps to create and upload the necessary programs to both Arduino boards. Once completed, the user can turn the LED on and off using commands sent from a computer's serial monitor.

Uploaded by

Ir Azlan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Objective

To control an LED using serial communication between a microcontroller (such as Arduino) and
a computer, allowing the user to turn the LED on or off by sending commands through a serial
monitor.

Hardware Setup

Two Arduino UNOs One 5mm LED

Connecting Wires Breadboard


Step 1

Connect virtual pin Tx of first Arduino (Master) board with pin Rx of second Arduino (Slave)
board. Then, connect virtual pin Rx of first Arduino (Master) board with pin Tx of second
Arduino (Slave) board. We will use Software Serial to configure pin 10 as RX and pin 11 as TX.

Step2

Anode pin of LED is connected with digital pin 2 (Slave) and connects to breadboard. Then, the
cathode pin is grounded and also make sure both Arduino boards have their grounds in
common.
Step 3

Create the program Arduino Master and Slave.

Step 4

Transfer the program to Arduino and the LED will turn on and turn off.

You might also like