0% found this document useful (0 votes)
105 views5 pages

Date: 29-08-2016 Lab Report No. 4 Serial Communication With Atmega328P/Arduino Uno and Testing With Hyperterminal Objective

The document discusses serial communication between an Arduino Uno and a computer using Hyperterminal. It contains 3 tasks: 1) Check if serial is available and transfer data, 2) Declare "PAKISTAN" using serial communication, 3) Control pin 13 high and low using serial communication. The theory explains how serial communication works by sending bits serially to form bytes for communication between devices. Code examples are provided for each task to achieve the desired results. The conclusion states that Arduino has multiple features and this experiment demonstrated displaying characters and controlling an LED's state through serial communication.

Uploaded by

hamza shahbaz
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)
105 views5 pages

Date: 29-08-2016 Lab Report No. 4 Serial Communication With Atmega328P/Arduino Uno and Testing With Hyperterminal Objective

The document discusses serial communication between an Arduino Uno and a computer using Hyperterminal. It contains 3 tasks: 1) Check if serial is available and transfer data, 2) Declare "PAKISTAN" using serial communication, 3) Control pin 13 high and low using serial communication. The theory explains how serial communication works by sending bits serially to form bytes for communication between devices. Code examples are provided for each task to achieve the desired results. The conclusion states that Arduino has multiple features and this experiment demonstrated displaying characters and controlling an LED's state through serial communication.

Uploaded by

hamza shahbaz
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/ 5

Date: 29-08-2016

LAB REPORT NO. 4


SERIAL COMMUNICATION WITH ATMEGA328P/ARDUINO UNO AND
TESTING WITH HYPERTERMINAL
Objective :
In this lab report we write code for serial communication for three different task like To check if
serial if available and To on and off pins of Ardunio .

THEORY:
Serial communication works on 1s and 0s. Also known as binary, the Arduino sends these 1s and
0s (bits) one by one, or Serially. These bits are sent in the form of Highs(1) and Lows(0). These
bits form together and turn into bytes. A byte is composed of 8 bits.
Each bit represents a certain number to add. the first bit (Far right) represents the ones place,
1 = 1 and 0 = 0. Serial is used for communication between the Arduino board and a computer or
other devices. All Arduino boards have at least one serial port (also known as a UART or
USART): Serial. It communicates on digital pins 0 (RX) and 1 (TX) as well as with the computer
via USB. Thus, if you use these functions, you cannot also use pins 0 and 1 for digital input or
output.

Lab task :
In my first leb task open profuse and select Ardunio and second device is virtual device and my
first program is transfer data to port 96000 is word electronics.
First step is simulating circuit on Proteus.
Then, we shall write coding of desired program on Arduino software.
Then, we shall run that each code separately for all the three different tasks.
At last we shall get our desired result which is the displaying of different name
characters.
This experiment also shows the multiple features of Arduino.

This is the code for the respected result:

My second lab task Is simulate that same circuit and make another program for declaring
PAKISTAN on Ardunio with serial communication.

This is the coding for the respected result:

Third lab task is to control Ardunio pin 13 high and low with serial communication :

This is program that has been used for the respected result:

Conclusion:

From the following experiment we have concluded that Arduino has multiple features depending
on its availability and in this experiment we have displayed characters like PAKISTAN and
made the LEED to be in its ON state or OFF state.

You might also like