Professional Documents
Culture Documents
Iot QB
Iot QB
CH2. Sensor
2.1 Actuators and Protocols
Interfacing Protocols: I2C, SPI, and Serial.
Communication Protocol: RFID, NFC, Bluetooth, WIFI, ZigBee.
2.3 Actuators - Connecting LED, Buzzer, Switching High Power Devices with
Transistors, Controlling AC
Power Devices with Relays, Controlling Servo Motor, Speed Control of DC
Motor, Unipolar and Bipolar
Stepper Motors.
CH3. Arduino
MODULE 1: -
ANS: - all complete IoT systems are the same in that they represent the
integration of four distinct components: sensors/devices, connectivity, data
processing, and a user interface.
1) Sensors/Devices
First, sensors or devices collect data from their environment. This data could be
as simple as a temperature reading or as complex as a full video feed.
However, whether it’s a standalone sensor or a full device, in this first step data
is being collected from the environment by something.
2) Connectivity
Next, that data is sent to the cloud, but it needs a way to get there!
Each option has trade-offs between power consumption, range, and bandwidth.
Choosing which connectivity option is best comes down to the specific IoT
application, but they all accomplish the same task: getting data to the cloud.
3) Data Processing
Once the data gets to the cloud (we’ll cover what the cloud means in our data
processing section)), software performs some kind of processing on it.
This could be very simple, such as checking that the temperature reading is
within an acceptable range. Or it could also be very complex, such as using
computer vision on video to identify objects (such as intruders on a property).
But what happens when the temperature is too high or if there is an intruder on
property? That’s where the user comes in.
4) User Interface
Next, the information is made useful to the end-user in some way. This could be
via an alert to the user (email, text, notification, etc). For example, a text alert
when the temperature is too high in the company’s cold storage.
A user might have an interface that allows them to proactively check in on the
system. For example, a user might want to check the video feeds on various
properties via a phone app or a web browser.
However, it’s not always a one-way street. Depending on the IoT application,
the user may also be able to perform an action and affect the system. For
example, the user might remotely adjust the temperature in the cold storage via
an app on their phone.
And some actions are performed automatically. Rather than waiting for you to
adjust the temperature, the system could do it automatically via predefined
rules. Rather than just call you to alert you of an intruder, the IoT system could
also automatically notify security teams or relevant authorities.
ANS: -
Perception Layer:
This is the first layer of IoT architecture. In the perception layer, number of
sensors and actuators are used to gather useful information like temperature,
moisture content, intruder detection, sounds, etc. The main function of this
layer is to get information from surroundings and to pass data to another layer
so that some actions can be done based on that information.
Network Layer:
As the name suggests, it is the connecting layer between perception and
middleware layer. It gets data from perception layer and passes data to
middleware layer using networking technologies like 3G, 4G, UTMS, WIFI,
infrared, etc. This is also called communication layer because it is responsible
for communication between perception and middleware layer. All the transfer
of data done securely keeping the obtained data confidential.
Middleware Layer:
Middleware Layer has some advanced features like storage, computation,
processing, action taking capabilities. It stores all data-set and based on the
device address and name it gives appropriate data to that device. It can also
take decisions based on calculations done on data-set obtained from sensors.
Application Layer:
The application layer manages all application process based on information
obtained from middleware layer. This application involves sending emails,
activating alarm, security system, turn on or off a device, smartwatch, smart
agriculture, etc.
Business Layer:
The success of any device does not depend only on technologies used in it but
also how it is being delivered to its consumers. Business layer does these tasks
for the device. It involves making flowcharts, graphs, analysis of results, and
how device can be improved, etc.
Q3.IOT PLATFORM
Q4. REAL-TIME EXAMPLES IN IOT
IoT is a network of electronic devices that are interconnected in order to
exchange information. The main purpose of IoT is to access and operate
the gadgets from a distance with little or no human assistance. IoT-
equipped gadgets are connected to each other via the internet and are
designed to exchange data with each other to perform remote operations.
These interconnected devices or electronic gadgets are often referred to as
‘things. Most of the electronic devices consist of embedded sensors. These
sensors are used to emit data and talk about the status of the device.
Examples of IoT in Real Life
1. Home Automation
Home automation is one of the best examples of IoT. Smart homes or IoT-based
home automation systems are becoming popular day by day. In a smart home,
consumer electronic gadgets such as lights, fans, air-conditioners, etc. can be
connected to each other via the internet. This interconnection enables the user to
operate these devices from a distance. A smart home is capable of lighting
control, energy management, expansion, and remote access. Currently, this
application of IoT is not utilized at a large scale because the installation cost is
too high, which makes it difficult for a majority of people to afford it. However,
home automation holds quite a promising future.
2. Wearable Health Monitors
Wearable health monitors are both captivating and useful. They include smart
clothes, smart wristwear, and medical wearables that provide us with high-
quality health services. They are designed to track activities such as pulse rate,
step count, heart rate, etc. This data is recorded and can be sent to the doctors
for detailed fitness analysis. These IoT based smart wearable devices are
influencing our lifestyles a lot. Apart from performing these basic operations,
they can also raise an alarm and send an alert in case of a medical emergency
such as an asthma attack, seizures, etc.
3. Disaster Management
IoT helps in the prediction and management of natural disasters. For instance,
take the example of forest fires. To avoid the chaos and destruction caused by a
forest fire, various sensors can be installed around the boundaries of the forests.
These sensors continuously monitor the temperature and carbon content in the
region. A detailed report is regularly sent to a common monitoring hub. In case
of a forest fire, an alert is sent to the control room, police station, and fire
brigade. Therefore, IoT helps in staying prepared and respond swiftly in case of
emergency.
6. Process Automation
In the manufacturing industry, performing reoccurring tasks, such as label
wrapping, packaging, etc., manually is difficult and is prone to human errors;
therefore, automation comes into play. For instance, take the example of a cold
drink manufacturing industry. Here, manufacturing machines and conveyor
belts are required to be interconnected in order to share information, status, and
data. This interconnection is IoT dependent. The status of the manufactured
product and the machine health report is sent to the manufacturer at regular
intervals in order to identify the faults in advance. An IoT equipped industry is
advantageous as it elevates the production speed and maintains the uniform
quality of the product throughout the production. It also helps to make the
workplace more efficient and safer by reducing human error.
7. Farming
Due to climate change and water crisis, farmers go through a lot of troubles
such as crop flattening, soil erosion, drought, etc. These problems can be easily
suppressed by using IoT based farming system. For example, the IoT based
irrigation system makes use of a number of sensors to monitor the moisture
content of the soil. If the moisture level drops below a certain range, it
automatically turns on the irrigation pump. Other than this, IoT also helps
farmers to examine soil health. Before planning to farm a new batch of crops, a
farmer needs to recover the soil nutrients. The IoT enriched software allows the
user or the farmer to select the best nutrient restoring crops. It also helps in
sensing the requirement of fertilizer and numerous other farming needs
8. shopping malls
IoT finds its major application in shopping malls. In most of the malls, a
barcode scanner is used to scan the barcode present on every product. After
scanning, it extracts the necessary information and sends the data to the host
computer. The computer is further connected to a billing machine that hands
over the bill to the customer after proper processing. All these devices are
connected together with the help of the Internet of Things.
ANS: - A protocol is an agreement between two parties about how the two
parties should behave. A communication protocol is a protocol about how two
parties should speak to each other. There are different types of data transfer
available in digital electronics such as serial communication and parallel
communication. Similarly, the protocols are divided into two types Serial
Communication Protocol and Parallel Communication Protocols. Examples
of Parallel Communication Protocols are ISA, ATA, SCSI, PCI, and IEEE-488.
Similarly, there are several examples of Serial Communication Protocols such as
CAN, ETHERNET, I2C, SPI, RS232, USB, 1-Wire, SATA, etc.
Serial communication can be defined as the method of sending one bit of data at
one point of time in succession through a bus. Take an example of a Bow and
arrow. How does an arrow shoot from the bow? One at a time, isn’t it? The same
is the case with Serial Communication.
Serial communication takes place by using only a single wire or line. Hence, for
two-way digital communication, we will only need two wires between the
transmitter and receiver. As the cost of establishing a parallel communication is
very high and its configuration is lengthy and complex, Serial communication is
preferred for all major communication/computer networks.
At small distances, serial buses are becoming more common and popular because
the disadvantages of parallel buses prevail over their advantage of simplicity.
Improved technology to ensure the integrity of signal as well as increased
transmission and receiving speed of data per channel has made the serial ports a
close competitor to parallel ports.
The cost of integrated circuits is a lot because of the large number of pins. It is,
therefore, that many integrated circuits utilize serial buses when the importance
of speed does not exist. Examples of these low-cost serial buses are SPI, I²C, and
1-Wire.
• CAN Protocol
• I2C Protocol
• SPI Protocol
• USB Protocol
• eSPI Protocol
According to I2C protocols, the data line cannot change when the clock line is
high, it can change only when the clock line is low. The 2 lines are open drain;
hence a pull-up resistor is required so that the lines are high since the devices
on the I2C bus are active low. The data is transmitted in the form of packets
which comprises 9 bits. The sequence of these bits is –
Start Condition – 1 bit
Slave Address – 8 bits
Acknowledge – 1 bit
Start and Stop Conditions:
START and STOP can be generated by keeping the SCL line high and changing
the level of SDA. To generate START condition the SDA is changed from high
to low while keeping the SCL high. To generate STOP condition SDA goes
from low to high while keeping the SCL high, as shown in the figure below.
The main advantage of the SPI is to transfer the data without any interruption.
Many bits can be sent or received at a time in this protocol.
SPI Interface
The SPI protocol uses the four wires for the communication. There are shown in
the figure.
1. MOSI: MOSI stands for Master Output Slave Input. It is used to send data
from the master to the slave.
2. MISO: MISO stands for Master Input Slave Output. It is used to send data
from the slave to the master.
3. SCK or SCLK (Serial Clock): It is used to the clock signal.
4. SS/CS (Slave Select / Chip Select): It is used by the master to send data
by selecting a slave.
Note: If the single slave is present in the communication, that required only
three wires. The SS (slave select) is not required in it.
Advantages of SPI
1. The main advantage of the SPI is to transfer the data without any
interruption.
2. It is simple hardware.
3. It provides full-duplex communication.
4. There is no need for a unique address of the slave in this protocol.
5. This protocol does not require precise oscillation of slave devices because
it uses the master's clock.
6. In this, software implementation is very simple.
7. It provides high transfer speed.
8. Signals are unidirectional.
9. It has separate lines of MISO and MOSI, so the data can be sent and
received at the same time.
Disadvantages of SPI
Applications of SPI
ANS: -
Q4. EXPLAIN WORKING OF ZIGBEE?
ANS: -
What is ZigBee Protocol?
Sensor Features: -
It is only sensitive to the measured property (e.g., A temperature sensor senses
the ambient temperature of a room.)
It is insensitive to any other property likely to be encountered in its application
(e.g., A temperature sensor does not bother about light or pressure while sensing
the temperature.)
It does not influence the measured property (e.g., measuring the temperature
does not reduce or increase the temperature).
Analog Sensors
Digital Sensors
Digital Sensors produce discrete digital output signals or voltages that are a
digital representation of the quantity being measured.
Digital sensors produce a binary output signal in the form of a logic
“1” or a logic “0”, (“ON” or “OFF”).
Digital signal only produces discrete (non‐continuous) values, which may be
output as a single “bit” (serial transmission), or by combining the bits to produce
a single “byte” output (parallel transmission).
Scalar Sensors
Vector Sensors
• Actuators: -
For example, a smart home system consists of many sensors and actuators. The
actuators are used to lock/unlock the doors, switch on/off the lights or other
electrical appliances, alert users of any threats through alarms or notifications,
and control the temperature of a home (via a thermostat). A sophisticated example
of an actuator used in lot is a digital finger, which is used to turn on/off the
switches (or anything that requires small motion) and is controlled wirelessly.
The function of the actuator is opposite of the sensor. It behaves like a tool. By
interpreting the electrical impulses sent from the control system and converting
them into mechanical motion, it actually introduces changes to its physical
surroundings by means of a variety of simple actions, including but not limited
to opening and closing valves, changing other devices' position or angle,
activating them or emitting sounds or light. In simple words, the actuator work
like a 'mover'. This consists of a digital-to-analogy converter, an output filter, and
some sort of amplifier. Increasingly, digital techniques like digital signal
processors (DSPs) and class-D amplifiers are being employed in actuators to
make them more accurate, responsive, and energy-efficient.
For example, car breaks convert mechanical energy to heat energy. For systems,
nearly all sensors take some physical parameters and turn them into electrical
signals. Similarly, nearly all actuators in IoT systems take electrical signals and
convert them into some sort of physical output. Physical parameters include
electrical (voltage, current, power, resistance, capacitance, inductance,
frequency, phase, etc.), mechanical (position, speed, acceleration, weight,
compass heading, gravity, force, tension, pressure, flow, torque, magnetic field,
etc.), acoustic (sound, vibration, seismic, etc.), image (light intensity, cameras,
displays, infrared (IR), Light Detection and Ranging (LIDAR, etc.), chemical
(potential hydrogen (pH)concentrations, composition, purity, etc.), medical (heart
rate, respiration, blood pressure, temperature, electroencephalogram (EEG), etc.)
and many more.
Types of Actuators
Actuators are small and rarely visible during operation, but the effects of their
work can be felt in vehicles, industrial machines, or any other electronic
equipment involving automation technologies. They can be separated into four
main categories based on their construction pattern and the role they play in a
specific IoT environment:
ANS: - Temperature sensors are a simple instrument that measures the degree of
hotness or coolness and converts it into a readable unit. But, have you ever
wondered how the temperature of the soil, boreholes, huge concrete dams or
buildings is measured? Well, this is accomplished through some of the specialised
temperature sensors.
The resistance across the diode is measured and converted into readable units of
temperature (Fahrenheit, Celsius, Centigrade, etc.) and, displayed in numeric
form over readout units. In geotechnical monitoring field, these temperature
sensors are used to measure the internal temperature of structures like bridges,
dams, buildings, power plants, etc.
What is a temperature sensor used for? | What are the functions of a
temperature sensor?
Well, there are many types of temperature sensors, but, the most common way to
categorise them is based upon the mode of connection which includes, contact
and non-contact temperature sensors.
Contact sensors include thermocouples and thermistors because they are in direct
contact with the object they are to measure. Whereas, the non-contact temperature
sensors measure the thermal radiation released by the heat source. Such
temperature meters are often used in hazardous environments like nuclear power
plants or thermal power plants.
MOTION SENSOR: -
There are two types of motion sensors: active motion sensors and passive motion
sensors. (Getty Images)
A motion sensor (or motion detector) is an electronic device that is designed to
detect and measure movement. Motion sensors are used primarily in home and
business security systems, but they can also be found in phones, paper towel
dispensers, game consoles, and virtual reality systems. Unlike many other types
of sensors (which can be handheld and isolated), motion sensors are typically
embedded systems with three major components: a sensor unit, an embedded
computer, and hardware (or the mechanical component). These three parts vary
in size and configuration, as motion sensors can be customized to perform highly
specific functions. For example, motion sensors can be used to activate
floodlights, trigger audible alarms, activate switches, and even alert the police.
There are two types of motion sensors: active motion sensors and passive motion
sensors. Active sensors have both a transmitter and a receiver. This type of sensor
detects motion by measuring changes in the amount of sound or radiation
reflecting back into the receiver. When an object interrupts or alters the sensor’s
field, an electric pulse is sent to the embedded computer, which in turn interacts
with the mechanical component. The most common type of active motion
detector uses ultrasonic sensor technology; these motion sensors emit sound
waves to detect the presence of objects. There are also microwave sensors (which
emit microwave radiation), and tomographic sensors (which transmit and receive
radio waves).
LEVEL SENSOR: -
There are two main classifications for level sensors: point level
sensors and continuous level sensors. Point level sensors are designed to indicate
whether a liquid has reached a specific point in a container. Continuous level
sensors, on the other hand, are used to render precise liquid level measurements.
Level sensors can be divided further into invasive and non-contact
sensors. Invasive sensors make direct contact with the substance they are
measuring, while non-contact sensors use sound or microwaves.
Optical level sensor. (SMD Fluid Controls)
There are many different types of point level sensors, but they are all
invasive. One of the most basic point level sensors is the “float switch.” When a
liquid level rises or falls in a container, it forces the switch to open or close a
circuit. Optical level sensors are comprised of an infrared (IR) emitter and a
photodiode. As photoelectric proximity sensors, they detect the presence of liquid
by measuring the amount of infrared light that is reflected back into the
photodiode. Capacitance level sensors measure change in capacitance (the ability
to store electric charge) to determine liquid levels in tanks. “Tuning fork” sensors
use differences in pressure and vibration to measure liquid level.
Unlike point level sensors, the two main types of continuous level sensors
(ultrasonic and microwave) are non-contact. Ultrasonic level sensors emit sound
waves, while “radar” sensors emit microwaves. The time interval between wave
emission and reflection is directly proportional to the liquid level.
RTC-DS3231
ANS: - Ultrasonic sensors are used around the world, indoors and outdoors in the
harshest conditions, for a variety of applications.
• Loop control
• Roll diameter, tension control, winding and unwind
• Liquid level control
• Thru beam detection for high-speed counting
• Full detection
• Thread or wire break detection
• Robotic sensing
• Stacking height control
• 45° Deflection; inkwell level detection; hard to get at places
• People detection for counting
• Contouring or profiling using ultrasonic systems
• Vehicle detection for car wash and automotive assembly
• Irregular parts detection for hoppers and feeder bowls
• Presence detection
• Box sorting using multi-transducer ultrasonic monitoring system
Thus, this is all about voltage sensor which can be used to detect the range of
voltage in any device. It decides the electrical charge within any device. The
working principle of this sensor mainly depends on the principle of either
capacitive or resistive.
ANS: -
➢ LED: -
IoT smart lighting uses wireless switches, eliminating the need to wire light
switches directly to fixtures. Those bulbs are then connected to a network,
allowing them to be monitored and controlled from the cloud. Via the web or a
mobile app, you can manage individual lights or groups of lights based on things
like occupancy, external light levels, and times of day; you can also control
dimming and colour-changing. And smart fixtures like these can also convey
information about broken and burnt-out lighting, all in real-time.
And since lights are ubiquitous in buildings, these connected bulbs are also an
excellent conduit for gathering additional data about a building. Sensors can be
embedded into the fixtures for the purpose of accumulating and transmitting
information about a facility, including room occupancy, air quality, and
temperature, among other things. The more information you have about how your
building is used, the better equipped you are to manage it more efficiently.
Some interesting potential uses for IoT lighting in commercial facilities are:
• Asset tracking: For critical assets tagged with sensors, IoT lighting can be
used to locate them based on the signals they give off.
Buzzer is a kind of voice device that converts audio model into sound signal. It is
mainly used to prompt or alarm. According to different design and application, it
can produce music sound, flute sound, buzzer, alarm sound, electric bell and other
different sounds.
Typical applications include siren, alarm device, fire alarm, air defence alarm,
burglar alarm, timer, etc. It is widely used in household appliances, alarm system,
automatic production line, low-voltage electrical equipment, electronic toys,
game machines and other products and industries.
An audio signalling device like a beeper or buzzer may electromechanically
or piezoelectric or mechanical type
The working principle of a buzzer depends on the theory that, once the voltage
is given across a piezoelectric material, then a pressure difference is produced.
A piezo type includes piezo crystals among two conductors.
Once a potential disparity is given across these crystals, then they thrust
one conductor & drag the additional conductor through their internal property.
So, this continuous action will produce a sharp sound signal.
➢ SERVO MOTOR: -
A servo motor, or simply, a servo, is a device that is used to rotate or push parts
of a machine to which it is connected with precision. Unlike DC motors, they
generally rotate to a particular angle and then stop.
If you pull apart a servo motor, you’ll find the following inside it:
1. A DC Motor
2. A Potentiometer
3. A gear train i.e., a series of gears that are connected such that their
teeth are engaged/interconnected.
4. A control circuit: This circuit is the actual brain behind the precise
working of the servo. It controls how much the servo should move
or rotate depending upon the input it receives.
.
Also, we will know, why they are one of the basic devices in robotics and
industrial sectors that require highly precise motions.
Servo motor is a rotary actuator or linear actuator . It allows for precise control of
angular or linear position, velocity and acceleration. It consists of a suitable
motor coupled to a sensor for position feedback. It also requires a relatively
sophisticated controller. Often a dedicated module designed specifically for use
with servo motors.
It is an electrical device which can push or rotate an object with great precision. If
you want to rotate an object at some specific angles or distance, then you have to
use servo motor. It is just a simple motor which run through servo mechanism.
If the motor uses the DC power as supply, then it is the DC servo motor. If the
motor uses an AC power as supply, then it is an AC servo motor. We can get a
very high torque servo motor in a small and light weight package. Due to these
features, they use in many applications like toy car, RC helicopters and planes,
Robotics, Machines etc
It is connected to the central shaft, and informs at all times the angle in which the
motor’s shaft is available
From the gear box or gear reduction unit, the output of the motor delivers via
servo spline to the servo arm. the gear box is formed by gears which may
increase or decrease the speed and torque.
The standard servo motor uses the plastic gear whereas the high-power servo
motor uses the metal gear.
A control circuit allows for control over the motor’s motion by sending electric
pulses
• If a heavy load places on the motor, the driver will increase the current to
the motor coil as it attempts to rotate the motor. Basically, there is no out-
of-step condition.
• High-speed operation is possible.
• Since the motor tries to rotate according to the command pulses, but lags
behind. it is not suitable for precision control of rotation.
• Higher cost.
• When stopped, the motor’s rotor continues to move back and forth one
pulse. So that, it is not suitable if you need to prevent vibration
Applications of Servo-Motor
It uses in the applications requiring rapid variations in speed without the motor
getting overheated.
• Industries, they use in the machine tools, packaging, factory automation,
material handling, printing converting, assembly lines. In many other
demanding applications robotics, CNC machinery or automated
manufacturing.
• uses in radio-controlled airplanes to control the positioning and movement
of elevators.
• In robots because of their smooth switching on and off and accurate
positioning.
• In the aerospace industry to maintain hydraulic fluid in their hydraulic
systems.
• uses in many radio-controlled toys.
• used in electronic devices such as DVDs or Blue ray Disc players to
extend or replay the disc trays.
• used in automobiles to maintain the speed of vehicles
Q9. RELAYS:
Think of a relay as an electronic light switch. To turn the light on, flick the
switch up. To turn the light off, flick the switch down. A light switch simply
closes (or completes) an electrical circuit to turn on a light and opens (or breaks)
a circuit to turn off the light. A relay does this same exact thing except that the
switch is powered not by hand but by a low-power signal. There are different
types of relays and they differ by the types of poles and throws, as explained in
the following two diagrams.
1. Electromagnet
2. Mechanically movable contact
3. Switching points and
4. Spring
Electromagnet is constructed by wounding a copper coil on a metal core. The
two ends of the coil are connected to two pins of the relay as shown. These two
are used as DC supply pins.
Generally, two more contacts will be present, called as switching points to
connect high ampere load. Another contact called common contact is present in
order to connect the switching points.
Types of Relays
• Electromagnetic
• Latching
• Electronic
• Non-Latching
• Reed
• High-Voltage
• Small Signal
• Time Delay
• Multi-Dimensional
• Thermal
• Differential
• Distance
• Automotive
• Frequency
• Polarized
• Rotary
• Sequence
• Moving Coil
• Buchholz
• Safety
• Supervision
• Ground Fault