Control an LED via Serial Communication(Practical) (1)
Control an LED via Serial Communication(Practical) (1)
SERIAL COMMUNICATION
Protocol Buses
Azlan Sa`ad
CONTROL AN LED VIA SERIAL COMMUNICATION
▪ Serial communication where the master will send either ‘1’ or ‘0’ to the slave.
▪ The slave will then receive that data and control an LED connected with its digital pin.
▪ We will use Software Serial to communicate between the two boards.
REQUIRED COMPONENTS
▪ Two Arduino UNOs
▪ One 5mm LED
▪ One 220 ohm resistor
▪ Connecting Wires
▪ Breadboard
CONNECTION DIAGRAM
• Connect virtual pin Tx of
first Arduino board with pin
Rx of second Arduino board.
• Connect virtual pin Rx of
first Arduino board with pin
Tx of second Arduino board.
• We will use Software Serial
to configure pin 10 as RX
and pin 11 as TX.