Professional Documents
Culture Documents
Unit 1 - Learning Materail
Unit 1 - Learning Materail
Unit 1 - Learning Materail
Unit -1
LESSON 1. ACTIVE AND PASSIVE SENSORS, DIFFERENT TYPES
OF SENSORS SUCH AS CAPACITIVE, RESISTIVE
SENSORS
Another unique definition: It 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.
Source: : https://technologystudent.com/
When a light level of 10 lux (very low light level) is directed towards it, the
resistance has risen dramatically to 10.43M(10430000ohms).
In the first classification of the sensors, they are divided in to Active and Passive.
Active Sensors, on the other hand, do not require any external power signal and directly
generates output response.
Passive Sensors are those which require an external excitation signal or a power signal.
Source: https://realpars.com/
The other type of classification is based on the means of detection used in the sensor.
Some of the means of detection are Electric, Biological, Chemical, Radioactive etc.
The final classification of the sensors are Analog and Digital Sensors. Analog
Sensors 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 Sensors, in contrast to Analog Sensors, work with discrete or digital data.
The data in digital sensors, which is used for conversion and transmission, is digital in
nature.
The following diagram illustrates the different types of sensors that are commonly used in
various applications.
All these sensors are used for measuring one of the physical properties like
Temperature, Resistance, Capacitance, Conduction, Heat Transfer etc.
Source: https://www.electronicshub.org/
Proximity Sensor (IR Sensor)
A Proximity Sensor is a non-contact type sensor that detects the presence of an object.
Proximity Sensors can be implemented using different techniques like Optical (like Infrared
or Laser), Sound (Ultrasonic), Magnetic (Hall Effect), Capacitive, etc.Some of the
applications of Proximity Sensors are Mobile Phones, Cars (Parking Sensors), industries
(object alignment), Ground Proximity in Aircrafts, etc.
Source: https://www.electronicshub.org/
Figure 8. IR Sensor
Source: https://www.electronicshub.org/
There are two types of Infrared or IR Sensors: Transmissive Type and Reflective Type. In
Transmissive Type IR Sensor, the IR Transmitter (usually an IR LED) and the IR detector
(usually a Photo Diode) are positioned facing each other so that when an object passes
between them, the sensor detects the object. The other type of IR Sensor is a Reflective
Type IR Sensor. In this, the transmitter and the detector are positioned adjacent to each
other facing the object. When an object comes in front of the sensor, the infrared light from
the IR Transmitter is reflected from the object and is detected by the IR Receiver and thus
the sensor detects the object.
Ultrasonic Sensor
Source: https://www.electronicshub.org/
An Ultrasonic Sensor is a non-contact type device that can be used to measure distance as
well as velocity of an object. An Ultrasonic Sensor works based on the properties of the
sound waves with frequency greater than that of the human audible range.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.
Source: iknowvations.in
Light Sensor
Sometimes also known as Photo Sensors, Light Sensors are one of the important sensors.
A simple Light Sensor available today is the Light Dependent Resistor or LDR. The
property of LDR is that its resistance is inversely proportional to the intensity of the ambient
light i.e., when the intensity of light increases, its resistance decreases and vise-versa.
By using LDR is a circuit, we can calibrate the changes in its resistance to measure
the intensity of Light. 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.
Source : http://electronicsgurukulam.blogspot.com/
Smoke and Gas Sensors
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.
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.
Source: https://create.arduino.cc/
Alcohol Sensor
As the name suggests, an Alcohol Sensor detects alcohol. Usually, alcohol sensors are used
in breathalyzer devices, which determine whether a person is drunk or not. Law
enforcement personnel uses breathalysers to catch drunk-and-drive culprits.
Touch Sensors, as the name suggests, detect touch of a finger or a stylus. Often touch
sensors are classified into Resistive and Capacitive type. Almost all modern touch sensors
are of Capacitive Types as they are more accurate and have better signal to noise ratio.
Source: http://www.touchsemi.com/
Color Sensor
A Color Sensor is an useful device in building color sensing applications in the field
of image processing, color identification, industrial object tracking etc. The TCS3200 is a
simple Color Sensor, which can detect any color and output a square wave proportional to
the wavelength of the detected color.
Humidity Sensor
All humidity sensors measure relative humidity (a ratio of water content in air to
maximum potential of air to hold water). Since relative humidity is dependent on
temperature of air, almost all Humidity Sensors can also measure Temperature.
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).
Source: https://lastminuteengineers.com/
Tilt Sensor
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.
Source: https://www.electronicshub.org/
Figure 25. Tilt Sensor – Example
Source: https://instrumentationtools.com/
RCIM sensor
Resistive, Capacitive, Inductive, and Magnetic (RCIM) sensors are the most widely
used sensors, comprising more than 70% of the sensor market.RCIM sensors can measure
Pressure, Humidity, Acceleration, Flow rate, Radiation, Electrical Current, Electric and
Magnetic fields, or Chemical and Biological substances.They are used in a variety of
applications, including Homeland security, Environmental protection, Home Automation,
Health Care, Aviation, as well as Food, Chemical, and Medical Industries.
Resistive sensors
Resistive, Capacitive, Inductive, and Magnetic (RCIM) sensors are the most widely
used sensors, comprising more than 70% of the sensor market. RCIM sensors can measure
Pressure, Humidity, Acceleration, Flow rate, Radiation, Electrical Current, Electric and
Magnetic fields, or Chemical and Biological substances. They are used in a variety of
applications, including Homeland security, Environmental protection, Home Automation,
Health Care, Aviation, as well as Food, Chemical, and Medical Industries.
Source. https://en.wikipedia.org/
are the most precise of all electrical sensors. Most capacitive sensors are immune to
humidity, temperature, target material, and stray electric field variations. Some can be
integrated into a printed circuit board (PCB) or embedded into a microchip or a nanodevice
to provide excellent accuracy and nearly infinite resolution, higher reliability, less weight,
Source: https://www.analog.com/
Spherical Capacitive Sensors: Spherical capacitive sensors are not seen nearly as often as
Review Questions
1. What are sensor and its types?
4. Write short notes about the Humidity sensor, Light sensor, and IR sensor.
5. Write short notes about the Smoke sensor, Colour Alcohol sensor and IR sensor.
6. What is RCIM sensor? Discuss in detail about it.
7. Compare capacitive sensor working principles with resistive sensor.
LESSON-2 : SURFACE ACOUSTIC WAVE SENSORS
Source: https://upload.wikimedia.org/wikipedia/commons/c/c8/
Device Layout
The basic surface acoustic wave device consists of a piezoelectric substrate with an
input interdigitated transducer (IDT) on one side of the surface of the substrate, and an
output IDT on the other side of the substrate. The space between the IDTs across which the
surface acoustic wave propagates is known as the delay line.
Inherent Functionality
The structure of the basic surface acoustic wave sensor allows for the phenomena
of pressure, strain, torque and temperature to be sensed. These phenomena can be sensed
by the basic device, consisting of two IDTs separated by some distance on the surface of a
piezoelectric substrate. These phenomena can all cause a change in length along the surface
of the device.
Extended Functionality
Chemical Vapors - Chemical vapor sensors use the application of a thin film
polymer across the delay line which selectively absorbs the gas or gases of interest.
Biological Matter - A biologically-active layer can be placed between the interdigitated
electrodes which contains immobilized antibodies. Humidity - Surface acoustic wave
humidity sensors require a thermoelectric cooler in addition to a surface acoustic wave
device.
Ultraviolet Radiation - Ultraviolet radiation sensors use a thin layer of zinc oxide across
the delay line.
Magnetic Fields - Ferromagnetic materials (such as iron, nickel, and cobalt) change their
physical dimensions in the presence of an applied magnetic field, a property called
magnetostriction.
Viscosity - Surface acoustic wave devices can be used to measure changes in viscosity of
a liquid placed upon it.
Review Question
1. Briefly discuss abut the working principle of Surface Acoustic wave sensor.
LESSON 3. SENSORS FOR WATER (PH) QUALITY,
ACCELEROMETER, GYROSCOPE, MOISTURE, HALL EFFECT
AND HUMIDITY
A pH sensor is one of the most essential tools that's typically used for water
measurements. This type of sensor is able to measure the amount of alkalinity and acidity
in water and other solutions. With the glass electrode, a glass membrane is fused on as a
pH sensor. This membrane is filled with a buffer solution of known pH (typically pH = 7).
The difference in H+ ions creates a potential that is read versus the stable potential of the
reference electrode.
Source : https://store.arduino.cc/
Arduino pH Meter
pH scale is used to measure the acidity and basicity of a liquid. It can have readings
ranging from 1-14 where 1 shows the most acidic liquid and 14 shows the most basic
liquid.7 pH is for neutral substances that are neither acidic nor basic.
Usage
To use it, just connect the pH sensor with BNC connector, and plug the PH2.0
interface into the Analog input port of any Arduino controller. If pre-programmed, you will
get the pH value easily.
Use an external switching power supply, and the voltage as close as possible to the
+5.0V. More accurate the voltage, more higher the accuracy. If the electrode is in
continuous use every time, you need to calibrate it by the standard solution, in order to
obtain more accurate results. The best environment temperature is about 25 ℃,and the pH
value is known and reliable, close to the measured value.
Source : https://circuits4you.com/
1. Connect equipment's according to the graphic, that is, the pH electrode is connected
to the BNC connector on the pH meter board and then use the connection lines, the
pH meter board is connected to the Analog port 0 of the Arduino controller.
2. When the Arduino controller gets power, you will see the blue LED on board is on.
3. Upload the sample code to the Arduino controller.Record the pH value printed, then
compared with 7.00, and the difference should be changed into the "Offset" in the
sample code.
4. Put the pH electrode into the standard solution whose pH value is 7.00,or directly
shorted the input of the BNC connector.
5. Open the serial monitor of the Arduino IDE, you can see the pH value printed on it
and the error does not exceed 0.3.
6. For example, the pH value printed is 6.88,so the difference is 0.12.
7. You should change the "# define Offset 0.00" into "# define Offset 0.12" in your
program.
8. Put the pH electrode into the pH standard solution whose value is 4.00.
9. Then wait about one minute, adjust the gain potential device, let the value stabilise
at around 4.00.
10. At this time, the acidic calibration has been completed and you can measure the
pH value of an acidic solution.
11. According to the linear characteristics of pH electrode itself, after the above
calibration, you can directly measure the pH value of the alkaline solution, but if
you want to get better accuracy, you can recalibrate it. Alkaline calibration use the
standard solution whose pH value is 9.18.Also adjust the gain potential device, let
the value stabilise at around 9.18. After this calibration, you can measure the pH
value of the alkaline solution.
Source: https://bestengineeringprojects.com/
Applications
pH measurement is used in a wide variety of applications:
• Agriculture.
• Wastewater treatment.
• Industrial processes.
• Environmental monitoring.
• Research and development.
ACCELEROMETER
1. Detection of Earthquake.
2. For the protection of hard drive of the laptop.
3. Uphill movement of the object.
4. Any customized project.
GYROSCOPE
The gyroscope measures rotational velocity or rate of change of the angular position
over time, along the X, Y and Z axis.The outputs of the gyroscope are in degrees per second,
so in order to get the angular position, we just need to integrate the angular velocity.
Briefly, it can measure gravitational acceleration along the 3 axes and using some
trigonometry math we can calculate the angle at which the sensor is positioned.
Working Principle
The accelerometer measures the acceleration along one direction, while the
gyroscope measures the angular acceleration on one axis. The analogic pins are not set on
INPUT because it's their default setting. The values read by the analogic pins will be sent
to the serial port. Open the Serial Monitor, move the sensor and try to see how the values
change. Accelerometers can be used for fun projects, for example, to realize a game
controller.
Source : https://www.circuitstoday.com/
To operate with a gyroscope sensor, you need to connect four wires to your Arduino.
You need wires to be connected to the ground (Gnd) from the gyroscope's Gnd pin and a
second wire from the VCC pin of the gyroscope to the 5v pin of the Arduino.
Then, you need another two wires to be connected to two analog inputs of the Arduino.
The first one of these wires goes from the SCL pin of the gyroscope, and the second wire
Source : https://www.circuitstoday.com/
MOISTURE
The Soil Moisture Sensor measures soil moisture grace to the changes in electrical
conductivity of the earth (soil resistance increases with drought ).The electrical resistance
is measured between the two electrodes of the sensor. A comparator activates a digital
Working Principle
The fork-shaped probe with two exposed conductors, acts as a variable resistor (just
like a potentiometer) whose resistance varies according to the water content in the soil.
1. The more water in the soil means better conductivity and will result in a
lower resistance.
2. The less water in the soil means poor conductivity and will result in a higher
resistance.
Figure 40. Moisture sensor example
Source: https://lastminuteengineers.com/
The Probe: The sensor contains a fork-shaped probe with two exposed conductors that
goes into the soil or anywhere else where the water content is to be measured.
The Module: The sensor also contains an electronic module that connects the probe to the
Arduino. The module produces an output voltage according to the resistance of the probe
and is made available at an Analog Output (AO) pin.
Calibration: To get accurate readings out of your soil moisture sensor, it is recommended
that you first calibrate it for the particular type of soil that you plan to monitor.
Different types of soil can affect the sensor, so your sensor may be more or less sensitive
depending on the type of soil you use.
The Hall effect sensor works on the principle of the Hall effect, which states that
whenever a magnetic field is applied in a direction perpendicular to the flow of electric
current in a conductor, a potential difference is induced.
This voltage can be used to detect whether the sensor is in the proximity of a magnet
or not. The Arduino can detect this voltage change through its interrupt pin and determine
whether the magnet is near the sensor or not.
Figure 42. Hall effect
Source: https://maker.pro.com/
Types
There are many types of Hall effect sensors, and certain types are better for certain
applications. For applications where the speed of detection is not crucial, ordinary Hall
effect sensors like 44E can be used. However, for applications that involve high-speed
detection, like in the case of speedometers, high-frequency Hall effect sensors like US5881
There are two main types of Hall effect sensors: latching and non-latching.
The US1881 is a latching Hall effect sensor. The sensor gives out an output HIGH
(5V) voltage whenever the north pole of a magnet is brought close to it.Even when the
magnet is removed, the sensor still outputs a HIGH voltage and does not go LOW (0V)
until the south pole of the magnet is brought close to it. These sensors that latch on to a
The US5881 is a non-latching Hall effect sensor. The sensor gives an output HIGH
voltage whenever the north pole of a magnet is brought close to it, and switches LOW
Source: https://maker.pro.com/
Source: https://www.circuitbasics.com///
Before you can use the DHT11 on the Arduino, you’ll need to install the DHTLib
library. It has all the functions needed to get the humidity and temperature readings from
the sensor. It’s easy to install, just download the DHTLib.zip file below and open up the
Arduino IDE. Then go to Sketch>Include Library>Add .ZIP Library and select the
DHTLib.zip file.
Important Arduino Programming concepts
Arduino C data types
Simple Keywords
Operators
Built in functions.
For loop
1. How to check the PH quality of the water write short notes on it.
2. List the applications of PH sensor.