SlideShare a Scribd company logo
Serial Communication
&
Arduino Interface
Mohammed Innat 2k14
E.C.E
.
Content
1. Serial Communication in Embedded System
2. Up and Running with Arduino for Serial Communication
3. Hardware implementation for serial communication
4. Connect :: Arduino &
a. .. with C++ b. .. with Python
c. .. with Java d. .. with Matlab
Serial Communication
1
Process of sending data one bit a time sequentially over a
Communication channel
Variation of Serial Communication
● Asynchronous SC
● Synchronous SC
● RS 232 --
● RS 485 --
● USB --
● Ethernet --
● CAN --
● SPI --
● I2C --
Serial Communication
A . Transmitter and Receiver - TX & RX
C. Serial Type :
a) Simplex b) Half-Duplex
c) Duplex
B. Communication in : Serial Interfaces
a) Synchronous Communication - Ex : SPI , I2C
b) Asynchronous Communication - Ex : UART
D. Bit time - Bit Rate 2
Rules of Serial
Serial Data Communication
● Baud rate -
a. How fast data transmitted
b. Expressed in bps
c . Baud rate ~ Speed of TX / RX
● Framing the Data :
* Data chunk
* Synchronization bits
* Parity bits
3
Wiring & Hardware
A serial bus consists of just two wires - one for sending
data and another for receiving
Serial Communication in Embedded System
Hardware Implementation
● Microcontroller and other low-level ICs communicate serially at TTL level
.TTL serial signal exits between microcontroller ‘s voltage supply range
usually 0v to 3.3v / 5v
● RS 232 , found on computer , is like TTL serial flipped on its head. RS 232
signals usually range between -13v and 13v.
4
TTL Serial Signal - Passes data serially
A packet of Information or Frame of Data
5
Up & Running : Serial Port of Arduino
#. Initialize with ‘ begin()’ function
#. Bit per second or bps should be 9600 [ default ]
○ void setup() {
○ serial.begin(9600) ; // Open serial ports ; set data rate to 9600 bps
○ }
○ void loop() { }
#. Both side of the serial connection need to be set to use the same speed
6
The UART
● Universal Asynchronous Receiver / Transmitter
● The interface between microcontroller and serial port
Advanced UARTs provide some amount of buffering of data so that the computer
and serial devices data streams remain coordinated.
● UARTs do exist as stand-alone ICs, but they’re more commonly found inside
microcontrollers.
● ATmega328 - has just a single UART , one can found in Arduino Uno
7
Common Pitfalls
1. TX - to - RX ; RX - to - TX
Connect both devices properly .
2. Baud Rate Mismatch
The two devices must speak with
the same speed otherwise data
either misinterpreted or completely
missed.
8
Arduino Serial Port
Connect( ) with Many ..
1. Arduino & Matlab
a. connect with serial port
b. read and write
c. send instruction by .m code
1. Arduino & C++
a. serial communication on
windows based system
1. Arduino & Python
a. install PySerial
1. Arduino & Java
a. arduino can communicate
with serial port via RXTX
java library .
9
Conclusion
Let’s make a short summary for serial communication process :
1. Serial protocols separated between Synchronous and Asynchronous
2. Asynchronous is perfect but need to put some extra effort
3. Asynchronous protocols widely used in Embedded system
4. Rules of Serial ..
5. Microcontroller and other ICs communicate at TTL level [ 0v to 3.3v / 5v ]
6. UART is an interface between microcontroller and serial port
7. UART controls computer interface to its attached serial device.
10
Q & A
Ask any question related to this topic . Out of the topic question won’t be
answered.
THANK YOU ALL

More Related Content

What's hot

SPI Bus Protocol
SPI Bus ProtocolSPI Bus Protocol
SPI Bus Protocol
Sudhanshu Janwadkar
 
Verilog Tasks & Functions
Verilog Tasks & FunctionsVerilog Tasks & Functions
Verilog Tasks & Functions
anand hd
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
Abhijeet kapse
 
UART
UARTUART
AMBA Ahb 2.0
AMBA Ahb 2.0AMBA Ahb 2.0
AMBA Ahb 2.0
Akhil Srivastava
 
I2C
I2CI2C
The I2C Interface
The I2C InterfaceThe I2C Interface
The I2C Interface
Corrado Santoro
 
Contamination delay
Contamination delayContamination delay
Contamination delayNima Afraz
 
WirelessHART
WirelessHARTWirelessHART
WirelessHART
Jean M. Winter
 
STM32 MCU Family
STM32 MCU FamilySTM32 MCU Family
STM32 MCU Family
Premier Farnell
 
Communication protocols
Communication protocolsCommunication protocols
Communication protocols
Piyush Bhardwaj
 
axi protocol
axi protocolaxi protocol
axi protocol
Azad Mishra
 
I2C And SPI Part-23
I2C And  SPI Part-23I2C And  SPI Part-23
I2C And SPI Part-23
Techvilla
 
I2C
I2CI2C
Serial Communication Interfaces
Serial Communication InterfacesSerial Communication Interfaces
Serial Communication Interfaces
anishgoel
 
I2C BUS PROTOCOL
I2C BUS PROTOCOLI2C BUS PROTOCOL
I2C BUS PROTOCOL
Kashyap Mandaliya
 
RS232-485_fundamental.ppt
RS232-485_fundamental.pptRS232-485_fundamental.ppt
RS232-485_fundamental.ppt
RenuJain58
 

What's hot (20)

SPI Bus Protocol
SPI Bus ProtocolSPI Bus Protocol
SPI Bus Protocol
 
Verilog Tasks & Functions
Verilog Tasks & FunctionsVerilog Tasks & Functions
Verilog Tasks & Functions
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
UART
UARTUART
UART
 
UART
UARTUART
UART
 
I2 c
I2 cI2 c
I2 c
 
AMBA Ahb 2.0
AMBA Ahb 2.0AMBA Ahb 2.0
AMBA Ahb 2.0
 
I2C
I2CI2C
I2C
 
The I2C Interface
The I2C InterfaceThe I2C Interface
The I2C Interface
 
Contamination delay
Contamination delayContamination delay
Contamination delay
 
WirelessHART
WirelessHARTWirelessHART
WirelessHART
 
STM32 MCU Family
STM32 MCU FamilySTM32 MCU Family
STM32 MCU Family
 
Communication protocols
Communication protocolsCommunication protocols
Communication protocols
 
axi protocol
axi protocolaxi protocol
axi protocol
 
I2C And SPI Part-23
I2C And  SPI Part-23I2C And  SPI Part-23
I2C And SPI Part-23
 
Uart
UartUart
Uart
 
I2C
I2CI2C
I2C
 
Serial Communication Interfaces
Serial Communication InterfacesSerial Communication Interfaces
Serial Communication Interfaces
 
I2C BUS PROTOCOL
I2C BUS PROTOCOLI2C BUS PROTOCOL
I2C BUS PROTOCOL
 
RS232-485_fundamental.ppt
RS232-485_fundamental.pptRS232-485_fundamental.ppt
RS232-485_fundamental.ppt
 

Viewers also liked

Up and running with Arduino
Up and running with Arduino Up and running with Arduino
Up and running with Arduino
KUET
 
مجموعه آموزش های برنامه نویسی آردوینو با محوریت پروژه های رباتیک
مجموعه آموزش های برنامه نویسی آردوینو با محوریت پروژه های رباتیکمجموعه آموزش های برنامه نویسی آردوینو با محوریت پروژه های رباتیک
مجموعه آموزش های برنامه نویسی آردوینو با محوریت پروژه های رباتیک
faradars
 
ATMEGA 328
ATMEGA 328ATMEGA 328
ATMEGA 328
ABHISHEK MAURYA
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
Rajanikanth U
 
Selection and Integration of Embedded Display Devices
Selection and Integration of Embedded Display DevicesSelection and Integration of Embedded Display Devices
Selection and Integration of Embedded Display Devices
VIA Embedded
 
Linux Timer device driver
Linux Timer device driverLinux Timer device driver
Linux Timer device driver
艾鍗科技
 
RFID embedded - MAGIC-PCB containing MAGICSTRAP
RFID embedded - MAGIC-PCB containing MAGICSTRAPRFID embedded - MAGIC-PCB containing MAGICSTRAP
RFID embedded - MAGIC-PCB containing MAGICSTRAP
Alexander M. Schmoldt
 
Embedded c
Embedded cEmbedded c
Embedded c
Nandan Desai
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
Manju Nathan
 
Linux watchdog timer
Linux watchdog timerLinux watchdog timer
Linux watchdog timer
RajKumar Rampelli
 
Serial peripheral Interface - Embedded System Protocol
Serial peripheral Interface - Embedded System ProtocolSerial peripheral Interface - Embedded System Protocol
Serial peripheral Interface - Embedded System Protocol
Aditya Porwal
 
AVR Micro controller Interfacing
AVR Micro controller Interfacing AVR Micro controller Interfacing
AVR Micro controller Interfacing
Raghav Shetty
 
FSK , FM DEMODULATOR & VOLTAGE REGULATOR ICS
FSK , FM DEMODULATOR & VOLTAGE REGULATOR ICS  FSK , FM DEMODULATOR & VOLTAGE REGULATOR ICS
FSK , FM DEMODULATOR & VOLTAGE REGULATOR ICS
vishalgohel12195
 
Programmable Logic Devices Plds
Programmable Logic Devices PldsProgrammable Logic Devices Plds
Programmable Logic Devices Plds
Gaditek
 
Embedded system
Embedded systemEmbedded system
Embedded system
mangal das
 
Risc and cisc eugene clewlow
Risc and cisc   eugene clewlowRisc and cisc   eugene clewlow
Risc and cisc eugene clewlow
Manish Prajapati
 
Prerna sharma
Prerna sharmaPrerna sharma
Prerna sharma
RCET
 
SysTick, Timer & Watchdog
SysTick, Timer & WatchdogSysTick, Timer & Watchdog
SysTick, Timer & Watchdog
Giovanni Panice
 
Chapter 19 - Real Time Systems
Chapter 19 - Real Time SystemsChapter 19 - Real Time Systems
Chapter 19 - Real Time Systems
Wayne Jones Jnr
 
Microprocessor and Microcontroller lec1
Microprocessor and Microcontroller lec1Microprocessor and Microcontroller lec1
Microprocessor and Microcontroller lec1
Ameen San
 

Viewers also liked (20)

Up and running with Arduino
Up and running with Arduino Up and running with Arduino
Up and running with Arduino
 
مجموعه آموزش های برنامه نویسی آردوینو با محوریت پروژه های رباتیک
مجموعه آموزش های برنامه نویسی آردوینو با محوریت پروژه های رباتیکمجموعه آموزش های برنامه نویسی آردوینو با محوریت پروژه های رباتیک
مجموعه آموزش های برنامه نویسی آردوینو با محوریت پروژه های رباتیک
 
ATMEGA 328
ATMEGA 328ATMEGA 328
ATMEGA 328
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
Selection and Integration of Embedded Display Devices
Selection and Integration of Embedded Display DevicesSelection and Integration of Embedded Display Devices
Selection and Integration of Embedded Display Devices
 
Linux Timer device driver
Linux Timer device driverLinux Timer device driver
Linux Timer device driver
 
RFID embedded - MAGIC-PCB containing MAGICSTRAP
RFID embedded - MAGIC-PCB containing MAGICSTRAPRFID embedded - MAGIC-PCB containing MAGICSTRAP
RFID embedded - MAGIC-PCB containing MAGICSTRAP
 
Embedded c
Embedded cEmbedded c
Embedded c
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
Linux watchdog timer
Linux watchdog timerLinux watchdog timer
Linux watchdog timer
 
Serial peripheral Interface - Embedded System Protocol
Serial peripheral Interface - Embedded System ProtocolSerial peripheral Interface - Embedded System Protocol
Serial peripheral Interface - Embedded System Protocol
 
AVR Micro controller Interfacing
AVR Micro controller Interfacing AVR Micro controller Interfacing
AVR Micro controller Interfacing
 
FSK , FM DEMODULATOR & VOLTAGE REGULATOR ICS
FSK , FM DEMODULATOR & VOLTAGE REGULATOR ICS  FSK , FM DEMODULATOR & VOLTAGE REGULATOR ICS
FSK , FM DEMODULATOR & VOLTAGE REGULATOR ICS
 
Programmable Logic Devices Plds
Programmable Logic Devices PldsProgrammable Logic Devices Plds
Programmable Logic Devices Plds
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Risc and cisc eugene clewlow
Risc and cisc   eugene clewlowRisc and cisc   eugene clewlow
Risc and cisc eugene clewlow
 
Prerna sharma
Prerna sharmaPrerna sharma
Prerna sharma
 
SysTick, Timer & Watchdog
SysTick, Timer & WatchdogSysTick, Timer & Watchdog
SysTick, Timer & Watchdog
 
Chapter 19 - Real Time Systems
Chapter 19 - Real Time SystemsChapter 19 - Real Time Systems
Chapter 19 - Real Time Systems
 
Microprocessor and Microcontroller lec1
Microprocessor and Microcontroller lec1Microprocessor and Microcontroller lec1
Microprocessor and Microcontroller lec1
 

Similar to Serial Communication & Embedded System Interface

Chapter 3 esy
Chapter 3 esy Chapter 3 esy
Chapter 3 esy
Yogesh Mashalkar
 
Serial Communication Interface with Error Detection
Serial Communication Interface with Error DetectionSerial Communication Interface with Error Detection
Serial Communication Interface with Error Detection
iosrjce
 
M010617376
M010617376M010617376
M010617376
IOSR Journals
 
Micro c lab8(serial communication)
Micro c lab8(serial communication)Micro c lab8(serial communication)
Micro c lab8(serial communication)
Mashood
 
Internet of things laboratory
Internet of things laboratoryInternet of things laboratory
Internet of things laboratory
Soumee Maschatak
 
ARDUINO AND ITS PIN CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION ARDUINO AND ITS PIN  CONFIGURATION
ARDUINO AND ITS PIN CONFIGURATION
soma saikiran
 
I2c interfacing raspberry pi to arduino
I2c interfacing raspberry pi to arduinoI2c interfacing raspberry pi to arduino
I2c interfacing raspberry pi to arduino
Mike Ochtman
 
Embedded real time-systems communication
Embedded real time-systems communicationEmbedded real time-systems communication
Embedded real time-systems communicationVijay Kumar
 
Rs 232 & usb ieee1394 communication
Rs 232 & usb  ieee1394 communicationRs 232 & usb  ieee1394 communication
Rs 232 & usb ieee1394 communicationVijay Kumar
 
FPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLERFPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLER
Varun Kambrath
 
Embedded systems and robotics by scmandota
Embedded systems and robotics by scmandotaEmbedded systems and robotics by scmandota
Embedded systems and robotics by scmandota
scmandota
 
Computer Interfaces
Computer Interfaces Computer Interfaces
Computer Interfaces
Prasad Deshpande
 
ES UNIT3.pptx
ES UNIT3.pptxES UNIT3.pptx
ES UNIT3.pptx
ravibabukancharla1
 
Wireless data transmission through uart port using arm & rf transceiver
Wireless data transmission through uart port using arm & rf transceiverWireless data transmission through uart port using arm & rf transceiver
Wireless data transmission through uart port using arm & rf transceiver
eSAT Publishing House
 
Raspberry Pi - Lecture 3 Embedded Communication Protocols
Raspberry Pi - Lecture 3 Embedded Communication ProtocolsRaspberry Pi - Lecture 3 Embedded Communication Protocols
Raspberry Pi - Lecture 3 Embedded Communication Protocols
Mohamed Abdallah
 
Lesson 9- NodeMCU with Arduino UNO (UART)
Lesson 9- NodeMCU with Arduino UNO (UART)Lesson 9- NodeMCU with Arduino UNO (UART)
Lesson 9- NodeMCU with Arduino UNO (UART)
Elaf A.Saeed
 
Unit 3 devices&buses
Unit 3 devices&busesUnit 3 devices&buses
Unit 3 devices&buses
Pavithra S
 
Universal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP coreUniversal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP core
Aneesh Raveendran
 

Similar to Serial Communication & Embedded System Interface (20)

Chapter 3 esy
Chapter 3 esy Chapter 3 esy
Chapter 3 esy
 
Serial Communication Interface with Error Detection
Serial Communication Interface with Error DetectionSerial Communication Interface with Error Detection
Serial Communication Interface with Error Detection
 
M010617376
M010617376M010617376
M010617376
 
Micro c lab8(serial communication)
Micro c lab8(serial communication)Micro c lab8(serial communication)
Micro c lab8(serial communication)
 
Tutorial
TutorialTutorial
Tutorial
 
Internet of things laboratory
Internet of things laboratoryInternet of things laboratory
Internet of things laboratory
 
ARDUINO AND ITS PIN CONFIGURATION
 ARDUINO AND ITS PIN  CONFIGURATION ARDUINO AND ITS PIN  CONFIGURATION
ARDUINO AND ITS PIN CONFIGURATION
 
I2c interfacing raspberry pi to arduino
I2c interfacing raspberry pi to arduinoI2c interfacing raspberry pi to arduino
I2c interfacing raspberry pi to arduino
 
Embedded real time-systems communication
Embedded real time-systems communicationEmbedded real time-systems communication
Embedded real time-systems communication
 
Rs 232 & usb ieee1394 communication
Rs 232 & usb  ieee1394 communicationRs 232 & usb  ieee1394 communication
Rs 232 & usb ieee1394 communication
 
FPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLERFPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLER
 
Embedded systems and robotics by scmandota
Embedded systems and robotics by scmandotaEmbedded systems and robotics by scmandota
Embedded systems and robotics by scmandota
 
Computer Interfaces
Computer Interfaces Computer Interfaces
Computer Interfaces
 
ES UNIT3.pptx
ES UNIT3.pptxES UNIT3.pptx
ES UNIT3.pptx
 
Wireless data transmission through uart port using arm & rf transceiver
Wireless data transmission through uart port using arm & rf transceiverWireless data transmission through uart port using arm & rf transceiver
Wireless data transmission through uart port using arm & rf transceiver
 
Raspberry Pi - Lecture 3 Embedded Communication Protocols
Raspberry Pi - Lecture 3 Embedded Communication ProtocolsRaspberry Pi - Lecture 3 Embedded Communication Protocols
Raspberry Pi - Lecture 3 Embedded Communication Protocols
 
Batch 25(a)
Batch 25(a)Batch 25(a)
Batch 25(a)
 
Lesson 9- NodeMCU with Arduino UNO (UART)
Lesson 9- NodeMCU with Arduino UNO (UART)Lesson 9- NodeMCU with Arduino UNO (UART)
Lesson 9- NodeMCU with Arduino UNO (UART)
 
Unit 3 devices&buses
Unit 3 devices&busesUnit 3 devices&buses
Unit 3 devices&buses
 
Universal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP coreUniversal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP core
 

Recently uploaded

Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 

Recently uploaded (20)

Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 

Serial Communication & Embedded System Interface

  • 2. Content 1. Serial Communication in Embedded System 2. Up and Running with Arduino for Serial Communication 3. Hardware implementation for serial communication 4. Connect :: Arduino & a. .. with C++ b. .. with Python c. .. with Java d. .. with Matlab
  • 3. Serial Communication 1 Process of sending data one bit a time sequentially over a Communication channel Variation of Serial Communication ● Asynchronous SC ● Synchronous SC ● RS 232 -- ● RS 485 -- ● USB -- ● Ethernet -- ● CAN -- ● SPI -- ● I2C --
  • 4. Serial Communication A . Transmitter and Receiver - TX & RX C. Serial Type : a) Simplex b) Half-Duplex c) Duplex B. Communication in : Serial Interfaces a) Synchronous Communication - Ex : SPI , I2C b) Asynchronous Communication - Ex : UART D. Bit time - Bit Rate 2
  • 5. Rules of Serial Serial Data Communication ● Baud rate - a. How fast data transmitted b. Expressed in bps c . Baud rate ~ Speed of TX / RX ● Framing the Data : * Data chunk * Synchronization bits * Parity bits 3
  • 6. Wiring & Hardware A serial bus consists of just two wires - one for sending data and another for receiving Serial Communication in Embedded System Hardware Implementation ● Microcontroller and other low-level ICs communicate serially at TTL level .TTL serial signal exits between microcontroller ‘s voltage supply range usually 0v to 3.3v / 5v ● RS 232 , found on computer , is like TTL serial flipped on its head. RS 232 signals usually range between -13v and 13v. 4
  • 7. TTL Serial Signal - Passes data serially A packet of Information or Frame of Data 5
  • 8. Up & Running : Serial Port of Arduino #. Initialize with ‘ begin()’ function #. Bit per second or bps should be 9600 [ default ] ○ void setup() { ○ serial.begin(9600) ; // Open serial ports ; set data rate to 9600 bps ○ } ○ void loop() { } #. Both side of the serial connection need to be set to use the same speed 6
  • 9. The UART ● Universal Asynchronous Receiver / Transmitter ● The interface between microcontroller and serial port Advanced UARTs provide some amount of buffering of data so that the computer and serial devices data streams remain coordinated. ● UARTs do exist as stand-alone ICs, but they’re more commonly found inside microcontrollers. ● ATmega328 - has just a single UART , one can found in Arduino Uno 7
  • 10. Common Pitfalls 1. TX - to - RX ; RX - to - TX Connect both devices properly . 2. Baud Rate Mismatch The two devices must speak with the same speed otherwise data either misinterpreted or completely missed. 8
  • 11. Arduino Serial Port Connect( ) with Many .. 1. Arduino & Matlab a. connect with serial port b. read and write c. send instruction by .m code 1. Arduino & C++ a. serial communication on windows based system 1. Arduino & Python a. install PySerial 1. Arduino & Java a. arduino can communicate with serial port via RXTX java library . 9
  • 12. Conclusion Let’s make a short summary for serial communication process : 1. Serial protocols separated between Synchronous and Asynchronous 2. Asynchronous is perfect but need to put some extra effort 3. Asynchronous protocols widely used in Embedded system 4. Rules of Serial .. 5. Microcontroller and other ICs communicate at TTL level [ 0v to 3.3v / 5v ] 6. UART is an interface between microcontroller and serial port 7. UART controls computer interface to its attached serial device. 10
  • 13. Q & A Ask any question related to this topic . Out of the topic question won’t be answered. THANK YOU ALL