Communication Interface
Communication Interface
Lecture 3
Dr. E Effah
Communication Interface
2.CSI (Camera Serial Interface) Camera Interface: it connects the Broadcom Processor and
Pi camera. This interface also connects two devices electrically.
3.DSI (Display Serial Interface): It is a fast High-resolution display interface specifically used
for sending video data directly from GPU to the LCD display via a 15-pin ribbon cable.
4.Composite Video and Audio Output: This port carries video along with audio signal to the
Audio/Video systems.
5.Power RED colored LED: It is a Power indicator that turns ON when a 5V Power is
connected to the RPi and starts to blink whenever the supply voltage drops below the 4.63V
threshold.
6. ACT PWR: ACT PWR is Green LED which shows the SD card activity.
The concept of the I2C bus was developed by „Philips Semiconductors‟ in the early
1980‟s.
The original intention of I2C was to provide an easy way of connection between a
microprocessor/microcontroller system and the peripheral chips in Television sets.
The I2C bus is comprised of two bus lines, namely; Serial Clock – SCL and Serial Data
– SDA.
I2C (Inter-Integrated Circuit) Bus:
I2C (Inter-Integrated Circuit) Bus:
• SCL line is responsible for generating synchronization clock pulses and SDA is responsible for
transmitting the serial data across devices.
• I2C bus is a shared bus system to which many numbers of I2C devices can be connected. Devices
• connected to the I2C bus can act as either Master device or Slave device.
• The Master device is responsible for controlling the communication by initiating/terminating data
transfer, sending data and generating necessary synchronization clock pulses.
Slave devices wait for the commands from the master and respond upon receiving the commands.
Master and Slave devices can act as either transmitter or receiver. Regardless whether a master is acting
as transmitter or receiver, the synchronization clock signal is generated by the Master device only. I2C
supports multi masters on the same bus.
The sequence of operation for communicating with an I2C slave device is shown in Lecture Notes.
The GPIO pins allow the RPi to connect with or control general purpose I/O devices, thus acting as the
physical interface between the RPi and the outside world. Any of these pins are programmed according
to the designer's decisions and need to interact with the external devices that are monitoring the event
of interest. The RPi 3 model B took out 26 GPIO pins on board.
Serial Peripheral Interface (SPI) Bus:
The Serial Peripheral Interface Bus (SPI) is a synchronous bi-directional full duplex four wire serial
interface bus. The concept of SPI is introduced by Motorola. SPI is a single master multi-slave system.
➢ It is possible to have a system where more than one SPI device can be master, provided the condition only one master device is active at any given point of
time, is satisfied.
➢ SPI is used to send data between Microcontrollers and small peripherals such as shift registers, sensors, and SD cards.
Serial Peripheral Interface (SPI) Bus:
SPI requires four signal lines for communication. They are:
Master Out Slave In (MOSI): Signal line carrying the data from master to slave device. It is also known as
Slave Input/Slave Data In (SI/SDI)
Master In Slave Out (MISO): Signal line carrying the data from slave to master device. It is also known as
Slave Output (SO/SDO)
Slave Select (SS): Signal line for slave device select. It is an active low signal.
Serial Peripheral Interface (SPI) Bus:
Master device selects the required slave device by asserting the corresponding slave devices slave select
signal LOW.
The data out line (MISO) of all the slave devices when not selected floats at high impedance state
The serial data transmission through SPI Bus is fully configurable.
SPI devices contain certain set of registers for holding these configurations.
The Serial Peripheral Control Register holds the various configuration parameters like
master/slave selection for the device, baud rate selection for communication, clock signal control, etc.
The status register holds the status of various conditions for transmission andreceptions works on the
principle of „Shift Register‟.
The master and slave devices contain a special shift register for the data to transmit or receive.
• Infrared
• Bluetooth/BLE
• Wi-Fi
• Zigbee
• GPRS
• LTE
• GSM
• NB-IoT
• Other Cellular Techs.
The frequencies from left to right:
• AM Radio: Around 10MHz
Wireless • FM Radio: Around 100MHz
communication • Television: Many frequencies from 470MHz to 800MHz, and
interface: Wireless others.
• Cellular phones: 850MHz, 1900MHz, and others
spectrum • Wi-Fi: 2.4GHz
• Satellite: 3.5GHz
• Wi-Fi: 5GHz
Wireless
communication
interface: Wireless
spectrum
INFRARED:
•
Infrared is a certain region in the light spectrum
Ranges from .7µ to 1000µ or .1mm
Broken into near, mid, and far infrared
One step up on the light spectrum from visible light
Measure of heat
• Most of the thermal radiation emitted by objects near room temperature is infrared. Infrared radiation is used
in industrial, scientific, and medical applications. Night-vision devices using active near-infrared illumination
allow people or animals to be observed without the observer being detected.
• IR transmission:
• The transmitter of an IR LED inside its circuit,
which emits infrared light for every electric pulse
INFRARED: given to it. This pulse is generated as a button on the
remote is pressed, thus completing the circuit, and
providing bias to the LED.
• The LED on being biased emits light of the wavelength of 940nm as a series of pulses, corresponding
INFRARED: to the button pressed. However, since along with the IR LED many other sources of infrared light
such as us human beings, light bulbs, sun, etc, the transmitted information can be interfered. A
solution to this problem is by modulation. The transmitted signal is modulated using a carrier
frequency of 38 KHz (or any other frequency between 36 to 46 KHz).
• The IR LED is made to oscillate at this frequency for the time duration of the pulse. The information
or the light signals are pulse width modulated and are contained in the 38 KHz frequency.
➢ The technology defined by the ZigBee specification is intended to be simpler and less expensive than other
wireless personal area networks (WPANs), such as Bluetooth or Wi-Fi .
➢ Applications include wireless light switches, electrical meters with in-home displays, traffic management
systems, and other consumer and industrial equipment that require short-range low-rate wireless data
transfer.
➢ Its low power consumption limits transmission distances to 10– 100 meters line-of-sight, depending on power
output and environmental characteristics. Zigbee devices can transmit data over long distances by passing
data through a mesh network of intermediate devices to reach more distant ones.
ZIGBEE
• Zigbee Coordinator: The ZigBee coordinator acts as the root of
the ZigBee network. The ZC is responsible for initiating the
Zigbee network and it has the capability to store information
about the network.