Sensors_communication (1)
Sensors_communication (1)
Also, the output produced by the sensor may be small or may suffer from the presence of
noise (i.e. unwanted signals)
further signal conditioning will be required before
◦ the signal will be at an acceptable level and in an acceptable form
◦ for signal processing, display and recording.
the signal processing may use digital rather than analogue signals
◦ an additional stage of analogue-to-analogue conversion may be required.
Control System
Fig. shows the arrangement of a control system.
This uses negative feedback in order to regulate and stabilize the output.
It thus becomes possible to set the input or demand (i.e. what we desire the output to be)
& leave the system to regulate itself by comparing it with a signal derived from the output (via
a sensor and appropriate signal conditioning).
A comparator is used to sense the difference in these two signals and where any discrepancy
is detected the input to the power amplifier is adjusted accordingly.
This signal is referred to as an error signal (it should be zero when the output exactly matches
the demand).
The input (demand) is often derived from a simple potentiometer connected across a stable
d.c. voltage source while the
controlled device can take many forms (e.g. a d.c. motor, linear actuator, heater, etc.).
Transducers
Transducers are devices that convert energy in the form of sound, light, heat, etc.,
into an equivalent electrical signal, or vice versa.
Examples:
A loudspeaker is a transducer that converts low frequency electric current into
audible sounds.
A microphone, is a transducer that performs the reverse function, i.e. that of converting
sound pressure variations into voltage or current.
Loudspeakers and microphones can thus be considered as complementary transducers.
Transducers may be used both as inputs to electronic circuits & outputs from them.
a loudspeaker is an output transducer designed for use in conjunction with an audio system.
A microphone is an input transducer designed for use with a recording or sound reinforcing
system.
Some Examples of Input Transducers
The signals returned from a sensor, together with control inputs from the user or
controller (as appropriate) will subsequently be used to determine the output from
the system.
Relay Coil
Relay Coil
Relay Coil
Relay Configurations
Relay Coil
Relay Coil
Relay Coil
Single Pole Single Single Pole Single Single Pole Double
Throw Normally Throw Normally Throw
Open Closed
Relay Driver Circuit
Vcc
The Relay is normally controlled using a relay
Freewheeling Diode
driver circuit connected to the port pin of the
processor/controller
Relay Coil
Load
A transistor can be used as the relay driver. The Port Pin
Serial interfaces like I2C, SPI, UART, 1-Wire etc and Parallel bus
interface are examples of ‘Onboard Communication Interface’
Communication Interface
The ‘Product level communication interface’ (External Communication
Interface) is responsible for data transfer between the embedded system and
other devices or modules
The external communication interface can be either wired media or wireless
media and it can be a serial or parallel interface. Infrared (IR), Bluetooth (BT),
Wireless LAN (Wi-Fi), Radio Frequency waves (RF), GPRS etc are examples for
wireless communication interface
RS-232C/RS-422/RS 485, USB, Ethernet (TCP-IP), IEEE 1394 port, Parallel port,
CF-II Slot, SDIO, PCMCIA etc are examples for wired interfaces
Mobile Communication Equipment – an example of an embedded system
with external communication interface
On-board Communication Interface –
Universal Asynchronous Receiver Transmitter (UART)
UART based data transmission is an asynchronous form of serial data
transmission
The serial communication settings (Baudrate, No. of bits per byte, parity, No. of
start bits and stop bit and flow control) for both transmitter and receiver should
be set as identical
The start and stop of communication is indicated through inserting special bits
in the data stream
While sending a byte of data, a start bit is added first and a stop bit is added at
the end of the bit stream. The least significant bit of the data byte follows the
start bit.
The ‘Start’ bit informs the receiver that a data byte is about to arrive. The
receiver device starts polling its ‘receive line’ as per the baudrate settings
On-board Communication Interface – Universal Asynchronous Receiver Transmitter (UART)
If parity is enabled for communication, the UART of the transmitting device adds a
parity bit .
The UART of the receiving device calculates the parity of the bits received and
compares it with the received parity bit for error checking.
The UART of the receiving device discards the ‘Start’, ‘Stop’ and ‘Parity’ bit from the
received bit stream and converts the received serial bit data to a word.
TXD TXD
UART UART
RXD RXD
D0 to Data Bus
Dx-1 Peripheral Device
RD\ RD\ (Eg: ADC)
WR\ WR\
Host Control Signals CS\
(Microprocessor/
Controller) Chip Select
Wi-Fi Router
Device 1
Device 2 Device 3
Wi-Fi enabled devices contain a wireless adaptor for transmitting and
receiving data in the form of radio signals through an antenna.
Wi-Fi operates at 2.4GHZ or 5GHZ of radio spectrum and they co-exist with
other ISM band devices like Bluetooth.
A Wi-Fi network is identified with a Service Set Identifier (SSID). A Wi-Fi
device can connect to a network by selecting the SSID of the network
Wi-Fi networks implements different security mechanisms for
authentication and data transfer.
Wireless Equivalency Protocol (WEP), Wireless Protected Access (WPA) etc
are some of the security mechanisms supported by Wi-Fi networks in data
communication
• For communicating with devices over a Wi-Fi network,
• the device when its Wi-Fi radio is turned ON,
• searches the available Wi Fi network in its vicinity and
• lists out the Service Set Identifier (SSID) of the available networks.
• If the network is security enabled,
• a password may be required to connect to a particular SSID.
• for securing the data communication, Wi-Fi employs different security
mechanisms like
• Wired Equivalency Privacy (WEP)
• Wireless Protected Access (WPA), etc.
• Wi-Fi supports data rates ranging from 1 Mbps to 1300Mbps (Growing
towards higher rates as technology progresses), depending on the standards
(802.11a/b/g/n/ac) and access / modulation method.
• Depending on the type of antenna and usage location (indoor / outdoor),
Wi-Fi offers a range of 100 to 1000 feet
External Communication Interface –
General Packet Radio Service (GPRS), 3G, 4G, LTE
A communication technique for transferring data over a mobile communication
network like GSM & CDMA
Data is sent as packets. The transmitting device splits the data into several
related packets. At the receiving end the data is re-constructed by combining the
received data packets
GPRS supports a theoretical maximum transfer rate of 171.2kbps
In GPRS communication, the radio channel is concurrently shared between
several users instead of dedicating a radio channel to a cell phone user. The GPRS
communication divides the channel into 8 timeslots and transmits data over the
available channel
GPRS supports Internet Protocol (IP), Point to Point Protocol (PPP) and X.25
protocols for communication.
GPRS is mainly used by mobile enabled embedded devices for
data communication. The device should support the necessary
GPRS hardware like GPRS modem and GPRS radio. Also, the carrier
network should support GPRS communication.
GPRS is an old technology and it is being replaced by new
generation data communication techniques like 3G, High Speed
Downlink Packet Access (HSDPA), 4G, LTE, etc which offers higher
bandwidths for communication
3G – data rates – 144Kbps to 2Mbps or higher
4G – 2 to 100+ Mbps depending on network & underlying
technology.