Lakshya Polytechnic Plan. Execute. Achieve: Unit - 03 Sensors and Hardware For Iot Sensors
Lakshya Polytechnic Plan. Execute. Achieve: Unit - 03 Sensors and Hardware For Iot Sensors
LAKSHYA POLYTECHNIC
PLAN. EXECUTE. ACHIEVE
UNIT – 03
Sensors and Hardware for IoT
Sensors
• Sensors are devices that convert a physical quantity into corresponding
voltage.
• Sensors are devices that when exposed to a physical phenomenon
(temperature, displacement, force etc.) produces a proportional output
signal (electrical, mechanical, magnetic etc.).
• The term transducer is often used with sensors. Sensor is a device that
responds to the change in the physical phenomenon whereas the
transducer is a device that converts one form to energy into another.
Characteristics of Sensors
[1]. Range:
It is the minimum and maximum value of physical variable that the sensor
can sense or measure. For example, a Resistance Temperature
Detector (RTD) for the measurement of temperature has a range of -200 to
800oC.
[2]. Span:
It is the difference between the maximum and minimum values of input. In
above example, the span of RTD is 800 – (-200) = 1000oC.
1
Unit – 03 (Sensors and Hardware for IoT)
[3]. Accuracy:
The error in measurement is specified in terms of accuracy. It is defined as
the difference between measured value and true value. It is defined in terms
of % of full scale or % of reading.
[4]. Precision:
It is defined as the closeness among a set of values. It is different from
accuracy.
Let Xt be the true value of the variable X and a random experiment measures
X1, X2, …. Xi as the value of X.
We will say our measurements X1, X2,… Xi are precise when they are very near
to each other but not necessarily close to true value Xt.
However, if we say X1, X2,… Xi are accurate, it means that they are close to
true value Xt and hence they are also close to each other. Hence accurate
measurements are always precise.
2
Unit – 03 (Sensors and Hardware for IoT)
[5]. Sensitivity:
It is the ratio of change in output to change in input. If Y be the output
quantity in response to input X, then sensitivity S can be expressed as
[6]. Linearity:
Linearity is the maximum deviation between the measured values of a
sensor from ideal curve.
[7]. Hysteresis:
It is the difference in output when input is varied in two ways- increasing and
decreasing. 3
[8]. Resolution:
Unit – 03 (Sensors and Hardware for IoT)
Classification of sensors
Sensors can be ranked into various classification systems, but for the sake of
simplification, we have divided them into 5 core classifications.
o Active Sensors (also known as parametric sensors) are sensors that require
an external power source to operate. Examples of active sensors include GPS
sensors and radar sensors.
o Contact Sensors are those that require physical contact with their stimulus.
Familiar examples of contact sensors are temperature and strain gauge
sensors.
• One of the most common and most popular sensors is the Temperature
Sensor. A Temperature Sensor, as the name suggests, senses the
temperature i.e., it measures the changes in the temperature.
2) Proximity Sensors
6
Unit – 03 (Sensors and Hardware for IoT)
• IR Sensors or Infrared Sensor are light based sensor that are used in
various applications like Proximity and Object Detection. IR Sensors are
used as proximity sensors in almost all mobile phones.
4) Ultrasonic Sensor
• Using the time of flight of the sound wave, an Ultrasonic Sensor can
measure the distance of the object (similar to SONAR). The Doppler Shift
property of the sound wave is used to measure the velocity of an object.
5) Light Sensor
8
Unit – 03 (Sensors and Hardware for IoT)
• Sometimes also known as Photo Sensors, Light Sensors are one of the
important sensors.
• There are two other Light Sensors (or Photo Sensors) which are often used
in complex electronic system design. They are Photo Diode and Photo
Transistor. All these are Analog Sensors.
• There are also Digital Light Sensors like BH1750, TSL2561, etc., which can
calculate intensity of light and provide a digital equivalent value.
• One of the very useful sensors in safety related applications are Smoke
and Gas Sensors. Almost all offices and industries are equipped with
several smoke detectors, which detect any smoke (due to fire) and sound
an alarm.
9
Unit – 03 (Sensors and Hardware for IoT)
• Gas Sensors are more common in laboratories, large scale kitchens and
industries. They can detect different gases like LPG, Propane, Butane,
Methane (CH4), etc.
• Now-a-days, smoke sensors (which often can detect smoke as well gas)
are also installed in most homes as a safety measure.
• The “MQ” series of sensors are a bunch of cheap sensors for detecting CO,
CO2, CH4, Alcohol, Propane, Butane, LPG etc. You can use these sensors
to build your own Smoke Sensor Application.
7) Alcohol Sensor
8) Touch Sensor
• Almost all modern touch sensors are of Capacitive Types as they are more
accurate and have better signal to noise ratio.
9) Colour Sensor
• The TCS3200 is a simple Colour Sensor, which can detect any colour and
output a square wave proportional to the wavelength of the detected
colour.
• Humidity Sensors are classified into Capacitive Type, Resistive Type and
Thermal Conductive Type. DHT11 and DHT22 are two of the frequently
used Humidity Sensors in DIY Community (the former is a resistive type
while the latter is capacitive type).
• Often used to detect inclination or orientation, Tilt Sensors are one of the
simplest and inexpensive sensors out there. Previously, tilt sensors are
made up of Mercury (and hence they are sometimes called as Mercury
Switches) but most modern tilt sensors contain a roller ball.
12
Unit – 03 (Sensors and Hardware for IoT)
Development Boards
A development board is a printed circuit board with circuitry and hardware
designed to assist experimentation with a certain microcontroller.
• IoT development boards allow for easy integration of the IoT device into
tech stack.
• IoT development boards allow for tinkering and easy access to I/O pins to
build custom circuitry and easily develop firmware.
• In short, to make the engineers’ life easier and more efficient with
prototyping development boards are constructed.
• I/O pins– Used for motors, temperature sensors, LCD screens, etc.
13
Unit – 03 (Sensors and Hardware for IoT)
Any development board you consider for an IoT project must include a few
important features. Those are:
Processing power.
Wireless capabilities.
Scalability.
This particular feature allows one to add more functionality to the development
board? You may verify if the board communicates via GPIO, UART, SPI, or some
other protocol; As this will determine how the board interacts with other
devices.
Memory.
Board memory is important. To store much data, you need built-in Flash
memory. A decent board allows connecting a MiniSD or MicroSD card to
enhance data storage.
14
Unit – 03 (Sensors and Hardware for IoT)
1. Raspberry Pi
Features :
• Bluetooth 4.1
Unit – 03 (Sensors and Hardware for IoT)
• 1GB RAM
• 4 USB ports
• 40 GPIO pins
2. Jetson Nano
➢ Additionally, it has the ability for heavy workload applications like image
16
Features:
• Video: 4K @ 30 fps
4. ESP 32
➢ Because of this, it’s easy to build and test circuits as well as making
17
Features :
• 8 independent LED.
4. Banana Pi
Features :
• 1 GB DDR3 memory.
• 1x Gigabit LAN
• 1x SATA interface.
• 1X MIC
• HDMI out
• 26 PIN GPIO
➢ It offers a practical and low-cost solution for inventors seeking to add Wi-
Fi connectivity to their projects with minimal previous experience in
networking.
➢ The board is compatible with the Arduino IoT Cloud, where you can create
IoT applications in a few simple steps
Features :
20
Unit – 03 (Sensors and Hardware for IoT)
networks
Unit – 03 (Sensors and Hardware for IoT)
Wireless Network
• The difference between wired and wireless is the physical layer and the
data link layer Wired network technology is based on wires or fibres
• Data transmission in wireless networks take place using electromagnetic
waves which propagates through space (scattered, reflected, attenuated)
• Data are modulated onto carrier frequencies (amplitude, frequency)
• The data link layer (accessing the medium, multiplexing, error correction,
synchronization) requires more complex mechanisms.
IEEE standard 802.11
CSMA/CA
22
Unit – 03 (Sensors and Hardware for IoT)
CSMA/CD
23
Unit – 03 (Sensors and Hardware for IoT)
Node MCU
➢ NodeMCU is an open-source LUA (A light weight programming language)
based firmware developed for the ESP8266 wifi chip.
➢ There is Version2 (V2) available for NodeMCU Dev Kit i.e., NodeMCU
Development Board v1.0 (Version2), which usually comes in black
coloured PCB.
24
Unit – 03 (Sensors and Hardware for IoT)
Features of NodeMCU
• Microcontroller: Tensilica 32-bit RISC CPU Xtensa LX106
• Operating Voltage: 3.3V
• Input Voltage: 7-12V
• Digital I/O Pins (DIO): 16
• Analog Input Pins (ADC): 1
• UARTs: 1
• SPIs: 1
• I2Cs: 1
• Flash Memory: 4 MB
• SRAM: 64 KB
• Clock Speed: 80 MHz
• USB-TTL based on CP2102 is included onboard, Enabling Plug n Play
• PCB Antenna
• Small Sized module to fit smartly inside your IoT projects
25
Unit – 03 (Sensors and Hardware for IoT)
27