You are on page 1of 23

Course No.

ME 3215
Course Title: Mechatronic Systems

Presented by
Dr. Md. Rokunuzzaman

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 1
Outline
§ Learning Objectives
§ Serial Communication Protocols
§ Digital Communication
§ Networks
§ Protocols of Communications
§ References/Resources

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 2
Learning Objectives

At the End of the class you will be able to

§ Identify the SPI and I2C connection protocols in AVR


§ Make a circuit to interface a LCD with an AVR
§ Program a LCD

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 3
Digital Communication

Elements of a Communication System

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 4
Networks

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 5
Types of Networks

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 6
Types of Wireless Networks

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 7
Communication Protocols

 Protocol: A set of rules and regulations is called a protocol.


 Communication: Exchange of information from one system to another system
with a medium is called communication.
 Communication Protocol: A set of rules and regulations that allow two
electronic devices to connect to exchange the data with one and another.
Communication protocols are applicable in telecommunication & computer
networks where suitable rules are executed to transmit information from source
t o d es t i na t i on . T h e m o s t v i t a l p ro t o c o l s w i t h i n n e t wo rk i n g a re T C P
(Transmission Control Protocol) & User datagram protocol (UDP).

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 8
Types of Communication Protocols
q Inter System Protocol
q Intra System Protocol
Inter System Protocol
§ communicate the two different devices
§ communication between computer to microcontroller kit. The communication is
done through an inter bus system
.
different categories of intersystem
protocol mainly include the following.
 UART Protocol: Ex. Emails, SMS, Walkie-
talkie
 USART Protocol: Ex. Telecommunications
 USB Protocol: Ex. Mouse, Keyboard, Hubs,
switches, pen drive

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 9
Intra System Protocol
communicate the two devices within the circuit board

The different categories of intrasystem protocol mainly include the


following.
 I2C Protocol
 SPI Protocol
 CAN Protocol

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 10
I2C Protocol
§ I2C stands for the inter-integrated circuit and it requires only two wires
connecting all peripherals to the microcontroller.
§ I2C requires two wires SDA (serial data line) and SCL (serial clock line) to carry
information between devices.
§ It is a master to a slave communication protocol. Each slave has a unique address.
The master device sends the address of the target slave device and reads/writes
the flag. The address matches any slave device that the device is ON, the
remaining slave devices are disabled mode.
O n c e t h e a d d re s s i s m a t c h
communication proceed
between the master and that
slave device and transmitting
a n d re c e iv i n g t h e d a t a . T h e
transmitter sends 8-bit data, the
re c e ive r re p l i e s 1 - b i t o f
a c k n ow l e d g m e n t . W h e n t h e
communication is completed
master issues the stop condition.

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 11
SPI Protocol
SPI stands for the serial peripheral interface. It is one of the serial communication
protocol developed by Motorola. Sometimes SPI protocol is also called a 4-wire
protocol. It requires four wires MOSI, MISO, SS, and SCLK.
It has two pins for data transfer called SDI
(Serial Data Input) and SDO (Serial Data
Output). SCLK (Serial Clock) pin is used to
synchronize data transfer and Master provides
this clock. CS (Chip Select) pin is used by the
master to select the slave device

•MISO (Master In Slave Out)


•MOSI (Master Out Slave In)
•SCK (Shift Clock)
•SS (Slave Select)

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 12
CAN Protocol
CAN stands for the controller area network. It is a serial communication protocol. It
requires two wires CAN High (H+) and CAN low (H-). It was developed by the Robert
bosch company in 1985 for in-vehicle networks. It is based on a message-oriented
transmission protocol.

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 13
Communication Protocols in IoT

IoT protocols are available in two types mainly IoT network protocols and IoT data
protocols.
10 IoT Communication Protocols:

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 14
ZigBee Network

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 15
Industrial Communication Protocols

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 16
Department of Mechanical Engineering
Rajshahi University of Engineering & Technology 17
Communication Protocols in Cloud Computing
§ The cloud supports two communication protocols for communication as well as
connection like MQTT and HTTP. The communication of these devices can be
done through Cloud IoT Core across a bridge either the HTTP or the MQTT.
§ The standard protocol like MQTT is used frequently and it is supported through
embedded devices. This protocol is common in the interactions of the machine
to machine.
§ Some cloud computing protocols include:
§ Gossip Protocol MQTT stands for Message Queuing
§ MTP (Media Transfer Protocol) Telemetry Transport.
§ CLNP (Connection Less Network
Protocol)
§ CEE (Coverage Enhanced
Ethernet Protocol)
§ SRP (State Routing Protocol)
§ SSHP (Secure Shell Protocol)
§ IGMP (Internet Group
Management Protocol)

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 18
Department of Mechanical Engineering
Rajshahi University of Engineering & Technology
Department of Mechanical Engineering
Rajshahi University of Engineering & Technology
Department of Mechanical Engineering
Rajshahi University of Engineering & Technology
References/Resources
§ Books:
§ Thomas Grace, Programming and Interfacing ATMEL® AVR® Microcontrollers,
Cengage Learning PTR, 2016

§ Tutorials/Online resources/Data Sheet Etc:


§ Microcontroller Tutorials, TECHSHOP, Bangladesh
§ https://www.elprocus.com/communication-protocols/
§ Atmel Datasheet, ATMEL Corporation

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 22
Appreciation to

Thank you for your patience

Department of Mechanical Engineering


Rajshahi University of Engineering & Technology 23

You might also like