FSIoT Chapter1
FSIoT Chapter1
OVERVIEW OF SENSORS
Introduction to
Sensor
What Is A Sensor, Different Types Of Sensors
And Their Uses
• In our daily lives, sensors are everywhere, quietly working behind the scenes.
• They’re in our homes, offices, or cars, these clever devices help simplify our
routines.
• Imagine walking into a room and the lights automatically turn on, or your garage
door opening by itself as you pull up the driveway—these are just a few examples
of sensors at work.
• They not only make life easier but can also keep us safe by detecting dangers like
smoke or fire.
• Now, let’s take a moment to think about what sensors are, the different types we
use, and how they fit into various applications.
What Is A Sensor?
• There are numerous definitions as to what a sensor is, but I would like to define a
Sensor as an input device which provides an output (signal) with respect to a
specific physical quantity (input).
• A Sensor is a device that converts signals from one energy domain to electrical
domain.
• The definition of the Sensor can be better understood if we take an example into
consideration.
• The term “input device” in the definition of a Sensor means that it is part of a
bigger system which provides input to a main control system (like a Processor or
a Microcontroller).
• The simplest example of a sensor is an LDR or a Light Dependent Resistor.
• It is a device, whose resistance varies according to intensity of light it is subjected
to.
• When the light falling on an LDR is more, its resistance becomes very less and
when the light is less, well, the resistance of the LDR becomes very high.
• We can connect this LDR in a voltage divider (along with other resistor) and
check the voltage drop across the LDR.
• This voltage can be calibrated to the amount of light falling on the LDR.
• Hence, a Light Sensor.
Now that we have seen what is a sensor, we will proceed further with the
classification of Sensors.
Different Types Of Sensors And Their Uses
• The following is a list of different types of sensors that are commonly used in
various applications with examples.
• All these types are used for measuring one of the physical properties like
Temperature, Resistance, Capacitance, Conduction, Heat Transfer etc.
FOLLOWING POINTS SHOULD
CONSIDER BEFORE SELECTING ANY
SENSOR
Different Types Of Sensors And Their Uses
Heartbeat Sensor
GPS sensor
Color sensor
Ph sensor
Temperature Sensor
• 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.
• There are different types of Temperature Sensors like Temperature Sensor ICs (like
LM35, DS18B20), Thermistors, Thermocouples, RTD (Resistive Temperature
Devices), etc.
• Temperature Sensors can be analog or digital.
• In an Analog Temperature Sensor, the changes in the Temperature correspond to
change in its physical property like resistance or voltage.
Temperature Sensor
DS18B20
Temperature Sensor
Proximity Sensors
• Angle sensing:
• Senses angular velocity produced by the sensor’s own movements.
• Angle are detected via integration operations by CPU
• Example: car navigation, game controllers and cellular systems
• Control mechanism:
• senses vibration produced by external factors and transmits vibration
data as electrical signal is to a CPU.
• Used in correcting the orientation or balance of an object
• Example: camera shake correction and vehicle controls.
Global positioning system (gps)
sensor
• (Gps) sensor is Used for acquiring the location
data of the place
• In this sensor gps device with antenna for
communications acts as an input and returns
latitude and longitude as output for tracking
location.
• Examples
• Ola, uber
color sensor
• This sensor used to detect the rgb coordinates of a
particular colour.
• The colour sensor works by shining a white light
on an object and then recording the reflected
colour.
ph sensor
• A pH sensor sensor used to detect the hydrogen
ion (h+) concentration of liquid.
• This sensor is one of the most essential tools that's
typically used for water measurements.
• This type of sensor can measure the amount of
alkalinity and acidity in water and other solutions
DHT 11 (Temperature
and humidity)
• Working voltage 3.3 v-5 v
• Humidity measurement range 20 percent -95
percent, humidity measurement error +-5
percent
• Temperature measurement range 0 -50,
measurement error +-2 degrees
• Same code for analog read, same method!!
• You should read the datasheet to interpret
the output.
Temperature Sensor - interface
Autopilot System in aircrafts.
Sensor
Classifications
Sensor Classification
• Based on output:
• Analog and Digital
• The next classification is based on conversion phenomenon i.e., the input and the output.
Some of the common conversion phenomena are Photoelectric, Thermoelectric,
Electrochemical, Electromagnetic, Thermo-optic, etc.
• The final classification of the sensors are Analog and Digital, these produce an analog
output i.e., a continuous output signal (usually voltage but sometimes other quantities
like Resistance etc.) with respect to the quantity being measured.
• Digital, in contrast to Analog, work with discrete or digital data. The data in digital
sensors, which is used for conversion and transmission, is digital in nature.
Analog Sensor
• The response or output of the sensor is some continuous
function of its input parameter
• example: temperature sensor, LDR, analog pressure sensor and
analog hall effect/magnetic sensor
• A LDR shows continuous variation in its resistance as a function
of intensity of light falling on it.
• Temperature sensor continuously changes in the temperature
are going to be sensed, measured and the output is going to be
an analog signal.
Digital Sensor
• Responses in binary nature.
• Actuators are the outputs for the device—the motors, lights, and so
on, which let your device do something to the outside world.
• It is the degree of closeness with which an instrument reading approaches the true
value of the quantity to be measured --- ability of an instrument to show the exact
reading
• Higher the accuracy, lower the error
89
Accuracy
90
Problem on finding accuracy
Q1) The expected value of the voltage across a resistor is 80V. However, the measurement gives a
value of 79V. Calculate (a) absolute error (b) % error (c) relative accuracy (d) % accuracy
• Ans) Absolute error (e) = Yn – Xn = 80-79 = 1V
• %error = (e/Yn) * 100 = 1/ 80 *100 = 1.25%
• Relative Accuracy A = 1- = 1- = 0.9875
• %accuracy a = 100% - % error = A * 100% = 98.75%
91
Precision
93
Problem on finding precision
= 0.995
94
Sensitivity of sensor
measurements
Sensitivity refers to the minimum change in the
measured quantity that a sensor can detect, determining
its ability to capture small variations in the environment
High sensitivity allows a sensor to respond to subtle
changes, which is important for tasks requiring precise
measurements or detection of small features
However, overly sensitive sensors may be more
susceptible to noise and interference, requiring careful
calibration and signal processing techniques
Sensitivity
• The sensitivity denotes the smallest change in the measured variable to which the instrument
responds. It is defined as the ratio of the changes in the output of an instrument to a change in
the value of the quantity to be measured.
Qn) An ammeter requires a change of 2A in its coil to produce a change in deflection of pointer
by 5mm. Determine sensitivity and deflection factor
Ans)
100
Problems on Resolution
• A 0- 100V voltmeter has 200 scale divisions which can be read to ½ division.
Determine the resolution of the meter.
Ans) 1 scale division = FSD/ no. of divisions = 100/200 = 0.5V
Resolution = ½ x scale division = ½ x 0.5 = 0.25
101
Calibration
•There are many sensors available but to get the best possible sensor with
optimal value of accuracy, the sensor needs to be calibrated in the device
where it will be used.
•It is an adjustment or set of adjustments made on a sensor or device to
make that device function accurately and error free.
•For instance, we must measure the pressure with an accuracy ± 5 pa, and a
given sensor is rated with an accuracy of ± 10 pa.
•Can we use this pressure sensor? Yes, we can, but the given sensor needs to
be calibrated, and we must find out its initial transfer function during
calibration.
•In the calibration method, we must find out its variables.
•These variables describe the complete transfer function and should be
identified before calibration.
•Calibration of linear devices is calculated by equation (1.1) and variable 'a'
Calibration
•To get constant values in the equation with good accuracy, the linear transfer
function is calculated as v=a+b(p).
•To find constants 'a' and 'b', a sensor can be exposed with two pressure values
(p1 and p2) with respect to their corresponding output voltages (v1 and v2)