際際滷

際際滷Share a Scribd company logo
2
Most read
3
Most read
Intro to Arduino:
UART Serial Communication
-- by Prof. M.K.Deshkar
A library is a big collection of procedures, where all
the procedures are related
Allows the Arduino to send data back to the
computer
The油Serial Library油to communicate from the
Arduino board back to the computer over the
USB port.
Serial Library
UART Serial Communication
The word油serial油means "one after
the other.
Serial data transfer is when we
transfer data one油bit油at a time, one
right after the other.
The transmit (TX) of the first has to
connect to the receive (RX) of the
second and the TX of the seconds to
the RX of the first.
The third wire is ground.
Common ground reference: -5V to 0V
The TX and RX pins of an Arduino
board are pins D0 and D1.油
Connection with COM3 This allows
the board to send and receive serial
data with a serial terminal on the
computer.
HARDWARE
Arduino IDE
Setup
Transmitting
Serial.write()
Serial.print()
Serial.println()
Receiving
Serial.read()
Serial.available()
Serial.peak()
Returns the first byte in the serial buffer, but does not remove it. If no data is
available, it will return -1.
油
Serial.flush()
Clears all bytes from the serial buffer.
油
Serial.parseInt()
Finds the next set of integers in the serial buffer and parses them together,
outputting an integer value.
油
Thank you
Ad

Recommended

Computer generations lecture
Computer generations lecture
Arti Maggo
Cluster
Cluster
srikanthk055
Arduino- Serial communication
Arduino- Serial communication
Jawaher Abdulwahab Fadhil
04 09-2018--internal networkconnection
04 09-2018--internal networkconnection
Alexander Bitar
Introduction to HSPICE
Introduction to HSPICE
Tsuyoshi Horigome
Computer System and Architecture
Computer System and Architecture
sarfraz1411
Serial Communication in Internet of Things .pptx
Serial Communication in Internet of Things .pptx
21BCM504AparnaMA
Device Operation using PC by Arduino (1).pdf
Device Operation using PC by Arduino (1).pdf
sampathiraopujitha
Lesson 9- NodeMCU with Arduino UNO (UART)
Lesson 9- NodeMCU with Arduino UNO (UART)
Elaf A.Saeed
Serial Communication & Embedded System Interface
Serial Communication & Embedded System Interface
KUET
Computer Interfaces
Computer Interfaces
Prasad Deshpande
Serial Communication Part-16
Serial Communication Part-16
Techvilla
divine garnica
divine garnica
flintrein
What is Motherboard?
What is Motherboard?
Affront Afreet
8251 USART
8251 USART
coolsdhanesh
8251 USART
8251 USART
coolsdhanesh
8251 USART
8251 USART
coolsdhanesh
ARDUINO AND ITS PIN CONFIGURATION
ARDUINO AND ITS PIN CONFIGURATION
soma saikiran
MPS W8-L2L3 Programming AVR Serial Port Ia (in C).pdf
MPS W8-L2L3 Programming AVR Serial Port Ia (in C).pdf
saadbutt43215
Physical prototyping lab3-serious_serial
Physical prototyping lab3-serious_serial
Tony Olsson.
Industrial Automation notes_unit2_part3_.pdf
Industrial Automation notes_unit2_part3_.pdf
DishendraJadhav1
I2c interfacing raspberry pi to arduino
I2c interfacing raspberry pi to arduino
Mike Ochtman
Serial Port Device Driver
Serial Port Device Driver
Emblogic
Hands On Data Communications, Networking and TCP/IP Troubleshooting
Hands On Data Communications, Networking and TCP/IP Troubleshooting
Living Online
Computer Organization and Architecture ppt .pptx
Computer Organization and Architecture ppt .pptx
SURESHKUMARMURK22DS4
Digital integrated circuits lecture notes
Digital integrated circuits lecture notes
AlvinHavinz
A guide to common automation terms
A guide to common automation terms
Pratap Chandra
ES UNIT3.pptx
ES UNIT3.pptx
ravibabukancharla1
LCD interfacing with arduino
LCD interfacing with arduino
Mrunal Deshkar
Arduino Interfacing LED
Arduino Interfacing LED
Mrunal Deshkar

More Related Content

Similar to Serial communication (20)

Lesson 9- NodeMCU with Arduino UNO (UART)
Lesson 9- NodeMCU with Arduino UNO (UART)
Elaf A.Saeed
Serial Communication & Embedded System Interface
Serial Communication & Embedded System Interface
KUET
Computer Interfaces
Computer Interfaces
Prasad Deshpande
Serial Communication Part-16
Serial Communication Part-16
Techvilla
divine garnica
divine garnica
flintrein
What is Motherboard?
What is Motherboard?
Affront Afreet
8251 USART
8251 USART
coolsdhanesh
8251 USART
8251 USART
coolsdhanesh
8251 USART
8251 USART
coolsdhanesh
ARDUINO AND ITS PIN CONFIGURATION
ARDUINO AND ITS PIN CONFIGURATION
soma saikiran
MPS W8-L2L3 Programming AVR Serial Port Ia (in C).pdf
MPS W8-L2L3 Programming AVR Serial Port Ia (in C).pdf
saadbutt43215
Physical prototyping lab3-serious_serial
Physical prototyping lab3-serious_serial
Tony Olsson.
Industrial Automation notes_unit2_part3_.pdf
Industrial Automation notes_unit2_part3_.pdf
DishendraJadhav1
I2c interfacing raspberry pi to arduino
I2c interfacing raspberry pi to arduino
Mike Ochtman
Serial Port Device Driver
Serial Port Device Driver
Emblogic
Hands On Data Communications, Networking and TCP/IP Troubleshooting
Hands On Data Communications, Networking and TCP/IP Troubleshooting
Living Online
Computer Organization and Architecture ppt .pptx
Computer Organization and Architecture ppt .pptx
SURESHKUMARMURK22DS4
Digital integrated circuits lecture notes
Digital integrated circuits lecture notes
AlvinHavinz
A guide to common automation terms
A guide to common automation terms
Pratap Chandra
ES UNIT3.pptx
ES UNIT3.pptx
ravibabukancharla1
Lesson 9- NodeMCU with Arduino UNO (UART)
Lesson 9- NodeMCU with Arduino UNO (UART)
Elaf A.Saeed
Serial Communication & Embedded System Interface
Serial Communication & Embedded System Interface
KUET
Serial Communication Part-16
Serial Communication Part-16
Techvilla
divine garnica
divine garnica
flintrein
What is Motherboard?
What is Motherboard?
Affront Afreet
ARDUINO AND ITS PIN CONFIGURATION
ARDUINO AND ITS PIN CONFIGURATION
soma saikiran
MPS W8-L2L3 Programming AVR Serial Port Ia (in C).pdf
MPS W8-L2L3 Programming AVR Serial Port Ia (in C).pdf
saadbutt43215
Physical prototyping lab3-serious_serial
Physical prototyping lab3-serious_serial
Tony Olsson.
Industrial Automation notes_unit2_part3_.pdf
Industrial Automation notes_unit2_part3_.pdf
DishendraJadhav1
I2c interfacing raspberry pi to arduino
I2c interfacing raspberry pi to arduino
Mike Ochtman
Serial Port Device Driver
Serial Port Device Driver
Emblogic
Hands On Data Communications, Networking and TCP/IP Troubleshooting
Hands On Data Communications, Networking and TCP/IP Troubleshooting
Living Online
Computer Organization and Architecture ppt .pptx
Computer Organization and Architecture ppt .pptx
SURESHKUMARMURK22DS4
Digital integrated circuits lecture notes
Digital integrated circuits lecture notes
AlvinHavinz
A guide to common automation terms
A guide to common automation terms
Pratap Chandra

More from Mrunal Deshkar (10)

LCD interfacing with arduino
LCD interfacing with arduino
Mrunal Deshkar
Arduino Interfacing LED
Arduino Interfacing LED
Mrunal Deshkar
Arduino IDE
Arduino IDE
Mrunal Deshkar
Atmega 328p
Atmega 328p
Mrunal Deshkar
Embedded system and its platforms
Embedded system and its platforms
Mrunal Deshkar
Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor
Mrunal Deshkar
Bode plot
Bode plot
Mrunal Deshkar
Nyquist plot
Nyquist plot
Mrunal Deshkar
Polar plot
Polar plot
Mrunal Deshkar
Frequency response analysis I
Frequency response analysis I
Mrunal Deshkar
LCD interfacing with arduino
LCD interfacing with arduino
Mrunal Deshkar
Arduino Interfacing LED
Arduino Interfacing LED
Mrunal Deshkar
Embedded system and its platforms
Embedded system and its platforms
Mrunal Deshkar
Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor
Mrunal Deshkar
Frequency response analysis I
Frequency response analysis I
Mrunal Deshkar
Ad

Recently uploaded (20)

Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
Intellectual Property Right (Jurisprudence).pptx
Intellectual Property Right (Jurisprudence).pptx
Vishal Chanalia
Paper 107 | From Watchdog to Lapdog: Ishiguros Fiction and the Rise of Godi...
Paper 107 | From Watchdog to Lapdog: Ishiguros Fiction and the Rise of Godi...
Rajdeep Bavaliya
English 3 Quarter 1_LEwithLAS_Week 1.pdf
English 3 Quarter 1_LEwithLAS_Week 1.pdf
DeAsisAlyanajaneH
Plate Tectonic Boundaries and Continental Drift Theory
Plate Tectonic Boundaries and Continental Drift Theory
Marie
Paper 108 | Thoreaus Influence on Gandhi: The Evolution of Civil Disobedience
Paper 108 | Thoreaus Influence on Gandhi: The Evolution of Civil Disobedience
Rajdeep Bavaliya
A Visual Introduction to the Prophet Jeremiah
A Visual Introduction to the Prophet Jeremiah
Steve Thomason
INDUCTIVE EFFECT slide for first prof pharamacy students
INDUCTIVE EFFECT slide for first prof pharamacy students
SHABNAM FAIZ
LDMMIA Yoga S10 Free Workshop Grad Level
LDMMIA Yoga S10 Free Workshop Grad Level
LDM & Mia eStudios
Photo chemistry Power Point Presentation
Photo chemistry Power Point Presentation
mprpgcwa2024
Code Profiling in Odoo 18 - Odoo 18 際際滷s
Code Profiling in Odoo 18 - Odoo 18 際際滷s
Celine George
June 2025 Progress Update With Board Call_In process.pptx
June 2025 Progress Update With Board Call_In process.pptx
International Society of Service Innovation Professionals
Peer Teaching Observations During School Internship
Peer Teaching Observations During School Internship
AjayaMohanty7
How to use search fetch method in Odoo 18
How to use search fetch method in Odoo 18
Celine George
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
jutaydeonne
VCE Literature Section A Exam Response Guide
VCE Literature Section A Exam Response Guide
jpinnuck
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT Kharagpur Quiz Club
NSUMD_M1 Library Orientation_June 11, 2025.pptx
NSUMD_M1 Library Orientation_June 11, 2025.pptx
Julie Sarpy
Vitamin and Nutritional Deficiencies.pptx
Vitamin and Nutritional Deficiencies.pptx
Vishal Chanalia
2025 June Year 9 Presentation: Subject selection.pptx
2025 June Year 9 Presentation: Subject selection.pptx
mansk2
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
Intellectual Property Right (Jurisprudence).pptx
Intellectual Property Right (Jurisprudence).pptx
Vishal Chanalia
Paper 107 | From Watchdog to Lapdog: Ishiguros Fiction and the Rise of Godi...
Paper 107 | From Watchdog to Lapdog: Ishiguros Fiction and the Rise of Godi...
Rajdeep Bavaliya
English 3 Quarter 1_LEwithLAS_Week 1.pdf
English 3 Quarter 1_LEwithLAS_Week 1.pdf
DeAsisAlyanajaneH
Plate Tectonic Boundaries and Continental Drift Theory
Plate Tectonic Boundaries and Continental Drift Theory
Marie
Paper 108 | Thoreaus Influence on Gandhi: The Evolution of Civil Disobedience
Paper 108 | Thoreaus Influence on Gandhi: The Evolution of Civil Disobedience
Rajdeep Bavaliya
A Visual Introduction to the Prophet Jeremiah
A Visual Introduction to the Prophet Jeremiah
Steve Thomason
INDUCTIVE EFFECT slide for first prof pharamacy students
INDUCTIVE EFFECT slide for first prof pharamacy students
SHABNAM FAIZ
LDMMIA Yoga S10 Free Workshop Grad Level
LDMMIA Yoga S10 Free Workshop Grad Level
LDM & Mia eStudios
Photo chemistry Power Point Presentation
Photo chemistry Power Point Presentation
mprpgcwa2024
Code Profiling in Odoo 18 - Odoo 18 際際滷s
Code Profiling in Odoo 18 - Odoo 18 際際滷s
Celine George
Peer Teaching Observations During School Internship
Peer Teaching Observations During School Internship
AjayaMohanty7
How to use search fetch method in Odoo 18
How to use search fetch method in Odoo 18
Celine George
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
jutaydeonne
VCE Literature Section A Exam Response Guide
VCE Literature Section A Exam Response Guide
jpinnuck
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT Kharagpur Quiz Club
NSUMD_M1 Library Orientation_June 11, 2025.pptx
NSUMD_M1 Library Orientation_June 11, 2025.pptx
Julie Sarpy
Vitamin and Nutritional Deficiencies.pptx
Vitamin and Nutritional Deficiencies.pptx
Vishal Chanalia
2025 June Year 9 Presentation: Subject selection.pptx
2025 June Year 9 Presentation: Subject selection.pptx
mansk2
Ad

Serial communication

  • 1. Intro to Arduino: UART Serial Communication -- by Prof. M.K.Deshkar
  • 2. A library is a big collection of procedures, where all the procedures are related Allows the Arduino to send data back to the computer The油Serial Library油to communicate from the Arduino board back to the computer over the USB port. Serial Library
  • 3. UART Serial Communication The word油serial油means "one after the other. Serial data transfer is when we transfer data one油bit油at a time, one right after the other.
  • 4. The transmit (TX) of the first has to connect to the receive (RX) of the second and the TX of the seconds to the RX of the first. The third wire is ground. Common ground reference: -5V to 0V The TX and RX pins of an Arduino board are pins D0 and D1.油 Connection with COM3 This allows the board to send and receive serial data with a serial terminal on the computer. HARDWARE
  • 7. Serial.available() Serial.peak() Returns the first byte in the serial buffer, but does not remove it. If no data is available, it will return -1. 油 Serial.flush() Clears all bytes from the serial buffer. 油 Serial.parseInt() Finds the next set of integers in the serial buffer and parses them together, outputting an integer value. 油