Unit4 Arduino
Unit4 Arduino
UNIT-4
Lecture Prepared by Dr. Krishan Kumar
INFORMATION (CA2 and CA3)
•CA-2(Assignment) based on Porteous Software,
assignment, last date 8th November to upload
solution/snapshot only on UMS
-INTRODUCTION
-CIRCUIT DIAGRAM/Flowchart/Alogorithm
-WORKING PRINCIPAL
-APPLICATIONS
-ADVENTAGE/DISADVENTAGES
-CONCLUSION
Note-Submit report- each project group during project
presentation in month of November(15th November to 20th
November)
Arduino UNO is a low-cost, flexible, and easy-to-use
programmable open-source microcontroller board that can
be integrated into a variety of electronic projects.
This board can be interfaced with other Arduino boards,
Arduino shields, Raspberry Pi boards and can control
relays, LEDs, servos, and motors as an output.
HOW TO WRITE THE CODE FOR LED BLINKING
void setup() {
// put your setup code here, to run once:
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(500); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000);
}
Ultrasonic Sensors
• Ultrasonic sensors emit short, high-frequency sound pulses at regular intervals. These
propagate in the air at the velocity of sound. If they strike an object, then they are
reflected back as echo signals to the sensor, which itself computes the distance to the
target based on the time-span between emitting the signal and receiving the echo.
• In industrial applications, an ultrasonic detection used to detect hidden tracks,
discontinuities in metals, composites, plastics, ceramics, and for water level detection.
For this purpose, the laws of physics which are indicating the propagation of sound
waves through solid materials have been used since ultrasonic sensors using sound
instead of light for detection.
• Thermistors:
Thermistors are extremely small devices. It consists of a sensing element that
can be glass or epoxy coated, as well as two wires that link to an electric circuit.
Temperature is determined by measuring the change in resistance of an electric
current.
Non-Contact Type Temperature Sensors
Pyrometer
A pyrometer, often known as a radiation thermometer, is a non-contact device.
The main purpose of a pyrometer is to determine an item’s surface
temperature by measuring the temperature of electromagnetic radiation
emitted by the object. As a result, this non-conductive device can be used to
measure thermal radiation. We may use this to determine the temperature of the
object’s surface. There are two types of pyrometers available on the market.
They are
Infrared Temperature Sensor
Optical pyrometers
Infrared (IR) Temperature Sensors
IR temperature sensor is used to detect the temperature of a moving object. We
cannot use a contact-based temperature sensor on a moving object. IR sensors
are used to detect the temperature of moving objects such as tires, brakes, etc.
Optical Pyrometer
It is a temperature measurement sensor used to detect the temperature of
molten metals, furnaces, and in some cases liquids too. It is a prime example of
• Temperature meters are mostly used in hazardous environments such
as thermal power plants or nuclear power plants.
• One area where they are commonly used is in curing concrete since
the concrete has to be relatively warm to properly set and cure.
• The variations of seasons causes expansion or contraction of
structures, bringing an overall change to their volume.
Temperature Sensor Components
There are three types of components in temperature sensors.
• There are also associated components that are necessary in the use of
sensors like converters and controllers.
Applications of Temperature Sensors
• Industrial Applications
Temperature sensors are utilized to monitor various environments and machinery, power
plants, and manufacturing. Temperature sensors are used to measure water temperatures
in reservoirs and boreholes. They can also be used to interpret temperature-related stress
and changes in volume in dams. Temperature sensors are also utilized in the study of the
temperature effect on other installed instruments.
• Scientific and Laboratory applications
Temperature sensors are utilized in science and biotech monitoring.
• Medical Applications
Temperature sensors are utilized in the monitoring of patients, in medical devices, in
thermodilution, in humidifiers, gas analysis, cardiac catheters, ventilator flow tubes, and
dialysis fluid temperature.
• Uses in Motorsports
Temperature sensors are used for measuring inlet air temperature, exhaust gas, engine
temperature, and oil temperature.
• Domestic Appliances
Temperature sensors are used in kitchen appliances (ovens, kettles, etc.) and also in white
goods.
Benefits of Temperature Sensors
There are some factors that must be considered when selecting a temperature sensor for a certain
application. The following are factors that must be considered when opting for a temperature sensor:
Temperature Range
Different types of temperature sensors are capable of measuring different ranges and might be more
accurate within a certain range
Accuracy and Stability
An application may require a certain degree of accuracy; be aware that the variance of thermocouples in
long term stability is higher than that of thermistors and RTDs.
Size and Package
The type of temperature sensor selected is determined by the space available within the application. If
there is limited space, a smaller device is required. How the temperature sensor will be connected to the
application and how the temperature is going to be measured is determined by package style; therefore,
package style is an important consideration.
Environmental Conditions
A critical factor in the placement and choice of a temperature sensor is the conditions where it will be
used. Humidity, vibrations, and other environmental factors radically affect the stability and accuracy of a
temperature sensor. In addition, electrical noise affects its readings especially if the temperature changes
are minute and small. Attention to the noise level where a temperature sensor is used ensures accurate
measurements.
IR Technology
• An infrared sensor includes two parts namely the emitter & the receiver
(transmitter & receiver), so this is jointly called an optocoupler or a
photo-coupler. Here, IR LED is used as an emitter whereas the IR
photodiode is used as a receiver.
• The photodiode used in this is very sensitive to the infrared light
generated through an infrared LED. The resistance of photodiode & output
voltage can be changed in proportion to the infrared light obtained. This is
the fundamental IR sensor working principle.
• The type of incident that occurred is the direct otherwise indirect type
where indirect type, the arrangement of an infrared LED can be done
ahead of a photodiode without obstacle. In indirect type, both the diodes
are arranged side by side through a solid object ahead of the sensor. The
generated light from the infrared LED strikes the solid surface & returns
back toward the photodiode.
IR Sensor Module
The IR sensor module includes five essential parts like IR Tx, Rx, Operational amplifier,
trimmer pot (variable resistor) & output LED. The pin configuration of the IR sensor module
is discussed below.
he main specifications and features of the
IR sensor module include the following.
Active IR Sensor
This type of sensor includes both the emitter & the receiver which are also known as
transmitter & receiver. In most situations, a laser diode or LED is used as a source. The
working of an infrared sensor can be done through radiating energy, detected and received
through the detector. Further, it is processed through a signal processor to fetch the required
data. The best examples of active infrared sensors are reflectance & break beam sensors.
Passive Infrared Sensor (PIR) includes detectors only and this kind of sensor uses targets
like infrared transmitters or sources. Here, the object will radiate the energy & detects it
through infrared receivers. After that, a signal processor is used to understand the signal to
obtain the required data.
The best examples of PIR sensors are bolometer, Pyro-Electric Detector, Thermocouple-
Thermopile, etc.
PIR sensors are available in two types
like thermal IR sensor and quantum IR sensor.
It is often used as a light sensor, light meter, Automatic street light, and in
areas where we need to have light sensitivity. LDR is also known as a
Light Sensor. LDR are usually available in 5mm, 8mm, 12mm, and
25mm dimensions.
LDR Working Principle
• Also, the energy in incident light should be greater than the bandgap gap
energy so that the electrons from the valence band got excited and go to
the conduction band.
• The LDR has the highest resistance in dark around 1012 Ohm and this
resistance decreases with the increase in Light.
Difference Between Photodiode and LDR
• Photodiodes give quick responses and are used where needed to detect
quick responses on and off like in optical communication, and opto
isolators. The photodiodes are semiconductor devices and work on PN
junctions.
• The photodiode works on the principle of converting the light energy into
electric energy while the LDR is resistance and its resistance decreases
with the increase in light intensity. They are generally used in automatic
security lights.
1. Intrinsic Photoresistor
This type of photoresistor is made with pure semiconductors without any
doping. This kind of photoresistor uses pure semiconductors like silicon and
germanium. when the incident light with an adequate amount of energy falls
on this, electrons gain that energy and get excited, and a few of them go to
the conduction band.
2. Extrinsic Photoresistor
This type of photoresistor uses a doped semiconductor; this means some
impurities are mixed with the semiconductor such as phosphorus to make
this photoresistor.
Extrinsic light-dependent resistors are generally designed for longer
wavelengths of light, with a tendency towards infrared (IR).
Any Queries