ES Unit-4
ES Unit-4
NITESH SIR
Ultrasonic Sensor
An ultrasonic sensor is a device that uses sound waves to measure the
distance to an object. It emits high-frequency ultrasonic waves (usually
above 20 kHz) and measures the time it takes for the sound to bounce
back from an object.
One of the most common ultrasonic sensors used in projects is the HC-
SR04.
1
EMBEDDED SYSTEM PROF. NITESH SIR
Temperature Sensor
A temperature sensor is a device that detects temperature changes and
converts them into an electrical signal.
One of the most commonly used analog temperature sensors is the
LM35 or TMP36, which provides a voltage output proportional to the
temperature.
2
EMBEDDED SYSTEM PROF. NITESH SIR
Photoresistor (LDR)
1. Resistance Change:
o When light intensity increases, the resistance of the LDR decreases.
o When light intensity decreases (darkness), the resistance increases.
2. Analog Voltage Output:
o The LDR is often connected in a voltage divider circuit with a fixed
resistor.
o The output voltage is read by an Arduino or microcontroller using
analogRead().
3. Conversion to Light Intensity:
o The raw ADC value can be mapped to a brightness level using
calibration.
Advantages of Photoresistors
3
EMBEDDED SYSTEM PROF. NITESH SIR
Disadvantages of Photoresistors
Applications of Photoresistors
A digital infrared (IR) sensor is a device that detects infrared radiation and
provides a HIGH or LOW signal based on the presence or absence of an
object. These sensors are widely used in motion detection, obstacle avoidance,
and remote control systems.
1. Infrared Emission: The sensor has an IR LED that emits infrared light.
2. Reflection Detection: A photodiode or IR receiver detects the reflected
light.
3. Signal Processing: The sensor processes the received signal.
4. Digital Output:
o HIGH (1) – No object detected.
o LOW (0) – Object detected (IR light reflected back).
4
EMBEDDED SYSTEM PROF. NITESH SIR
Joystick Sensor
5
EMBEDDED SYSTEM PROF. NITESH SIR
Servo Motor
6
EMBEDDED SYSTEM PROF. NITESH SIR
7
EMBEDDED SYSTEM PROF. NITESH SIR
Gas Sensor
A gas sensor is a device used to detect the presence and concentration of gases in the
environment. It is widely used in safety systems, air quality monitoring, and industrial
applications. Gas sensors can detect different gases such as carbon monoxide (CO), methane
(CH₄), LPG, hydrogen (H₂), and air pollutants like CO₂ and NH₃.
Sensing Mechanism
o The sensor contains a material (e.g., tin dioxide in MQ sensors) that reacts
with gases.
o When the target gas is present, the sensor's resistance changes.
🔹 Safety Systems – Used in gas leak detection for homes and industries.
🔹 Air Quality Monitoring – Measures pollution levels in smart cities.
🔹 Automotive Industry – Detects harmful gases in vehicle exhaust systems.
8
EMBEDDED SYSTEM PROF. NITESH SIR
A Hall sensor is a device that detects the presence of a magnetic field. It works based on the
Hall effect, which generates a voltage when a magnetic field is applied to a conductor. Hall
sensors are used in speed detection, proximity sensing, and motor control.
1. Digital Hall Sensor (e.g., A3144) – Outputs HIGH (1) or LOW (0) when a magnetic
field is detected.
2. Analog Hall Sensor (e.g., SS49E) – Provides a continuous voltage output proportional
to the magnetic field strength.
A color sensor is a device that detects and identifies colors by measuring the intensity of red
(R), green (G), and blue (B) components in light. It is commonly used in robotics,
industrial automation, and sorting systems.
9
EMBEDDED SYSTEM PROF. NITESH SIR
🔹Color Sorting Machines – Used in industrial automation for sorting objects by color.
🔹Smart Agriculture – Detects fruit ripeness based on color.
🔹Robotics & Automation – Helps robots recognize and react to different colors.
🎤 Working Principle
1. Microphone captures sound vibrations and converts them into small voltage
variations.
2. The amplifier boosts the weak signal to a detectable range.
10
EMBEDDED SYSTEM PROF. NITESH SIR
11
EMBEDDED SYSTEM PROF. NITESH SIR
🎤Working Principle
1. Default State – When there are no vibrations, the sensor output remains HIGH (1).
2. Vibration Detected – If the sensor detects a vibration beyond the set threshold, the output
switches to LOW (0).
3. Arduino Reads the Output – The microcontroller processes this digital signal and can
activate LEDs, buzzers, motors, or alarms based on vibration intensity.
12