0% found this document useful (0 votes)
17 views14 pages

Sensor

Uploaded by

Omkar Kushwaha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views14 pages

Sensor

Uploaded by

Omkar Kushwaha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Sensor

A sensor is a device that detects and measures changes in environmental conditions or


physical properties. It converts these changes into signals that can be read or interpreted by
humans or machines. Sensors are widely used in various fields such as automation,
electronics, healthcare, transportation, and more.

Key functions of sensors:

• Detection: Sensors detect changes in their environment, such as temperature,


pressure, light, etc.
• Measurement: They quantify these changes, producing measurable outputs like
voltage, current, or resistance.
• Conversion: Sensors convert physical phenomena into electrical signals that can be
processed by a computer, microcontroller, or electronic circuit.

There are two categories of sensor used in various applications. Such as –

-Active Sensors:

• Function: Emit their own energy (such as electromagnetic waves or sound) to


interact with the environment and then measure the reflected or scattered energy.
• Examples: Radar, Lidar, Sonar.

-Passive Sensors:

• Function: Rely on detecting natural energy emitted or reflected by objects in the


environment, without emitting any energy of their own.
• Examples: Cameras (in the visible light spectrum), thermal infrared sensors,
radiometers.

Transducer

A transducer is a device that converts one form of energy into another. Unlike sensors,
which are typically focused on detecting and measuring physical quantities and converting
them into readable signals (usually electrical), transducers deal more broadly with energy
conversion.

In many cases, a sensor can be considered a type of transducer when it converts a physical
quantity into an electrical signal. However, transducers also include devices that convert
electrical energy back into physical energy, such as sound, light, or movement.

Types of Transducers:

1. Input Transducers (Sensors): Convert physical quantities like pressure, temperature,


or light into electrical signals.
2. Output Transducers (Actuators): Convert electrical signals into physical forms of
energy like sound, light, or motion.

Types of Sensors:

Based on the Type of Quantity Measured:

1. Temperature Sensors:
o Thermocouples: Detect temperature differences by generating a voltage.
Used in industries like HVAC and automotive.
o Thermistors: Change resistance with temperature. Used in medical devices,
home appliances, etc.
o RTDs (Resistance Temperature Detectors): Use the resistance of metals to
measure temperature changes.
2. Pressure Sensors:
o Measure pressure of gases or liquids.
o Applications: Barometers, automotive systems, and industrial machinery.
3. Proximity Sensors:
o Detect the presence of nearby objects without physical contact.
o Types: Inductive, capacitive, ultrasonic, and infrared sensors.
o Used in smartphones, manufacturing lines, and safety systems.
4. Light Sensors:
o Detect the intensity or presence of light.
o Examples: Photodiodes, LDR (Light Dependent Resistors), and
phototransistors.
o Applications: Cameras, outdoor lighting systems, and automotive headlights.
5. Motion Sensors:
o Detect movement or acceleration.
o Types: Accelerometers, gyroscopes, and PIR (Passive Infrared) sensors.
o Applications: Smartphones, gaming devices, and security systems.
6. Gas Sensors:
o Detect the presence of gases in an environment.
o Examples: CO2 sensors, methane sensors, and oxygen sensors.
o Applications: Industrial safety, HVAC, and environmental monitoring.
7. Humidity Sensors:
o Measure the amount of moisture in the air.
o Types: Capacitive, resistive, and thermal hygrometers.
o Applications: HVAC systems, weather stations, and industrial drying
processes.
8. Magnetic Sensors:
o Detect magnetic fields or magnetic changes.
o Types: Hall effect sensors, magnetometers.
o Applications: Automotive speed sensors, compass systems, and magnetic
field mapping.
9. Touch Sensors:
o Detect physical touch or proximity.
o Examples: Capacitive touch sensors (used in smartphones), resistive touch
sensors.
o Applications: Touchscreens, control panels, and interactive displays.
10. Ultrasonic Sensors:
o Emit ultrasonic waves and measure the time it takes for the echo to return.
o Applications: Object detection, distance measurement, and industrial
automation.
11. Image Sensors:
o Capture light to create digital images.
o Examples: CCD (Charge Coupled Device), CMOS sensors.
o Applications: Digital cameras, medical imaging, and barcode readers.
12. Force Sensors:
o Measure applied force or load.
o Examples: Strain gauges, piezoelectric sensors.
o Applications: Weighing scales, robotics, and industrial machinery.

Based on Sensing Technology:

1. Optical Sensors:
o Detect light or electromagnetic waves.
o Examples: Fiber optic sensors, photodiodes, and laser-based sensors.
2. Capacitive Sensors:
o Measure changes in capacitance due to object presence or distance.
o Used in touchscreens, position sensing, and fluid level monitoring.
3. Inductive Sensors:
o Detect metallic objects by generating and sensing electromagnetic fields.
o Common in proximity detection for metal objects.
4. Resistive Sensors:
o Measure changes in resistance due to physical factors like pressure, light, or
temperature.
o Examples: Thermistors, strain gauges, and photoresistors.
5. Piezoelectric Sensors:
o Generate an electric charge in response to mechanical stress.
o Used in pressure sensors, vibration monitoring, and accelerometers.
6. MEMS Sensors (Micro-Electro-Mechanical Systems):
o Tiny sensors with mechanical and electrical components integrated on a chip.
o Common in smartphones, wearables, and medical devices (e.g.,
accelerometers, gyroscopes).

Based on Output Signal:

1. Analog Sensors:
o Produce a continuous signal that varies with the quantity being measured.
o Examples: Thermistors, potentiometers, and strain gauges.
2. Digital Sensors:
o Provide discrete digital signals (binary states or specific values).
o Examples: Encoders, digital temperature sensors, and digital proximity
sensors.

Based on Contact with the Object:

1. Contact Sensors:
o Require direct contact with the object to detect and measure.
o Examples: Temperature probes, load cells.
2. Non-Contact Sensors:
o Measure changes without physical contact with the object.
o Examples: Infrared sensors, ultrasonic sensors, and optical sensors.

Actuator

An actuator is a device that converts energy (typically electrical, hydraulic, or pneumatic)


into mechanical motion. It is commonly used in control systems, robotics, and automation
to manipulate a system or control a mechanism, such as opening a valve, moving an arm, or
rotating an object.

Types of Actuators:

1. Electric Actuators

• Description: Convert electrical energy into mechanical movement. These are precise
and easy to control, often used in automation systems and robotics.
• Example:
o Linear Electric Actuator: A screw-type linear actuator used to open or close a
window remotely.
o Rotary Electric Actuator: A DC motor used in electric fans or conveyor belts.

2. Hydraulic Actuators

• Description: Use hydraulic fluid under pressure to produce motion. These are known
for delivering high force and are commonly used in heavy-duty applications.
• Example:
o Linear Hydraulic Actuator: The hydraulic piston in a bulldozer that raises and
lowers the blade.
o Rotary Hydraulic Actuator: A hydraulic motor that rotates the platform on a
crane.

3. Pneumatic Actuators

• Description: Use compressed air or gas to create motion. They are fast and efficient,
but less precise than electric or hydraulic actuators.
• Example:
o Linear Pneumatic Actuator: A pneumatic cylinder used in automated
systems for opening and closing doors (e.g., in buses or trains).
o Rotary Pneumatic Actuator: A pneumatic vane motor used to rotate a valve
in an industrial gas pipeline.

4. Thermal or Shape Memory Actuators

• Description: Use heat or temperature changes to generate movement. These


actuators are often found in specialized applications.
• Example:
o A shape memory alloy (SMA) actuator used in medical stents that expand
when exposed to body heat, allowing the stent to open inside a blood vessel.

5. Magnetic Actuators

• Description: Operate using electromagnetic fields to induce motion. They are


commonly used in small, precise applications.
• Example:
o A voice coil actuator used in speakers, where a magnetic field moves the coil
to produce sound.
o A solenoid actuator used to operate a car door lock mechanism or in printers
to move the print head.

Microcontroller

A microcontroller is a compact integrated circuit (IC) designed to govern a specific operation


in an embedded system. It is a small computing device that contains a processor core,
memory (both RAM and ROM), and programmable input/output peripherals. Unlike a
microprocessor, which is used in general-purpose computers, microcontrollers are designed
for specific control tasks such as managing systems in household appliances, cars, medical
devices, industrial machinery, etc.

Key Components of a Microcontroller:

• Central Processing Unit (CPU): The brain that executes instructions.


• Memory:
o RAM (Random Access Memory): Used for temporary data storage during
program execution.
o ROM (Read-Only Memory): Stores the program (firmware) that runs the
microcontroller.
• I/O Ports: For interfacing with external devices, sensors, and other peripherals.
• Timers and Counters: Manage time-related operations, like generating delays.
• Analog-to-Digital Converters (ADC): Convert analog signals from sensors into digital
form.
• Digital-to-Analog Converters (DAC): Convert digital signals into analog form.
• Serial Communication Interfaces: For communication with other devices (e.g.,
UART, SPI, I2C).

Role of microcontroller as a gateway of to interfacing sensor and actuators


• Interfacing Sensors: Sensors detect physical parameters like temperature, pressure,
or light and convert them into electrical signals (analog or digital). Microcontrollers
read these signals through their input pins, usually via Analog-to-Digital Converters
(ADC) if the signal is analog. The microcontroller processes this data based on the
system's logic, allowing the system to react or display the information.
• Interfacing Actuators: Actuators convert electrical signals into physical action, such
as moving a motor or turning on an LED. Microcontrollers control actuators through
their output pins by generating signals that activate the actuators. They often use
Pulse Width Modulation (PWM) to control devices like motors with precision.

Example of a Gateway

Consider a smart home system where a microcontroller reads data from a


temperature sensor and activates a fan when the temperature crosses a threshold.
Here, the microcontroller processes data from the sensor and sends control signals
to the fan motor (actuator).

Classification of Microcontrollers

1. Based on Bit Width:

Bit width indicates the number of bits the microcontroller can process in one operation or
transfer through its data bus.

• 8-bit Microcontrollers:

o These microcontrollers process 8 bits of data at a time, which means their


registers, buses, and ALU (Arithmetic Logic Unit) are 8 bits wide.

o Use Case: Simple applications like controlling household appliances, simple


industrial automation, and toys.

o Example: PIC16F84, Atmel ATmega328 (used in Arduino Uno), 8051.

• 16-bit Microcontrollers:

o With a 16-bit data bus, these microcontrollers offer better performance and
precision than 8-bit systems.

o Use Case: More complex embedded systems, like advanced automotive


controllers, medical devices, and industrial automation.

o Example: MSP430 (Texas Instruments), PIC24.

• 32-bit Microcontrollers:

o These have a 32-bit data bus, allowing them to process more data in a single
clock cycle. They are faster and more powerful.
o Use Case: High-performance applications such as advanced robotics, complex
industrial control systems, and communication devices.

o Example: ARM Cortex-M series, STM32 (STMicroelectronics).

2. Based on Architecture:

Architecture refers to the design of the microcontroller’s internal structure, particularly how
it handles memory and data flow.

• Harvard Architecture:

o In Harvard architecture, the program memory (where instructions are stored)


and data memory are separate. This allows instructions and data to be
fetched simultaneously, improving speed and performance.

o Use Case: Applications that need higher speed and efficiency.

o Example: PIC Microcontrollers.

• Von Neumann Architecture:

o In this architecture, both instructions and data share the same memory and
buses. Although simpler in design, it can be slower than Harvard architecture
because instructions and data are fetched sequentially.

o Use Case: Systems where cost and simplicity are prioritized over speed.

o Example: 8051 Microcontroller.

3. Based on Application:

Microcontrollers can be classified based on the specific applications they are designed for.

• General-Purpose Microcontrollers:

o These are versatile microcontrollers that can be programmed for a wide range
of applications. They are widely used in educational, industrial, and
commercial systems.

o Example: Arduino (ATmega328), STM32.

• Specialized Microcontrollers:

o These are microcontrollers designed for specific applications like automotive


control (e.g., airbags, anti-lock braking systems), medical devices (e.g.,
pacemakers), and more.
o Example: Microcontrollers in automotive applications, medical device
controllers.

4. Based on Instruction Set:

The instruction set determines the complexity and number of instructions the
microcontroller can execute.

• CISC (Complex Instruction Set Computer):

o CISC microcontrollers have a large set of complex instructions, each capable


of performing multiple operations. This reduces the number of instructions
per program but increases the time it takes to execute them.

o Example: Intel 8051, PIC Microcontrollers.

• RISC (Reduced Instruction Set Computer):

o RISC microcontrollers have fewer, simpler instructions, which allow them to


execute instructions faster because they are completed in fewer cycles.

o Example: ARM Cortex-M series, AVR (Atmel).

Some common microcontroller

1. 8051 Microcontroller (Intel)

• Type: 8-bit CISC microcontroller

• Description: One of the oldest and most widely used microcontrollers, especially in
embedded systems.

• Key Features:

o 8-bit data processing

o 4KB ROM, 128 bytes of RAM, and 2 timers

o Supports serial communication

• Use Case: Simple embedded applications, consumer electronics, automotive


systems.

• Example: Home appliances, keyboards, washing machines.

2. AVR Microcontrollers (Atmel)

• Type: 8-bit and 32-bit microcontrollers (RISC architecture)


• Description: Known for its role in Arduino boards, AVR microcontrollers are widely
used in hobbyist, academic, and small-scale industrial projects.

• Key Features:

o Simple, efficient RISC architecture

o Supports I/O, timers, ADC, and serial communication

o Flash memory for program storage

• Use Case: IoT projects, robotics, home automation, educational tools.

• Example: ATmega328 (Used in Arduino Uno), ATtiny85.

3. Arduino (Based on Atmel AVR and ARM Cortex-M)

• Type: 8-bit and 32-bit microcontrollers (based on AVR and ARM)

• Description: Arduino is an open-source platform that uses a variety of


microcontroller families (mainly AVR and ARM). It's widely used for educational
projects, prototyping, and DIY electronics.

• Key Features:

o Plug-and-play development boards with an easy-to-use IDE

o Large library and community support

o Supports a wide range of sensors, displays, and other modules

• Use Case: DIY electronics, educational purposes, rapid prototyping.

• Example: Arduino Uno (ATmega328), Arduino Nano (ATmega328), Arduino Due


(ARM Cortex-M3).

. .. . . .. . . . .. . . . .. or many more.

Microprocessor

A microprocessor is a programmable, multi-purpose, clock-driven device that reads binary


instructions from memory, processes data according to those instructions, and outputs
results. It is commonly referred to as the "brain" of a computer or an embedded system.

Characteristics of a Microprocessor:

1. CPU Core: It contains the central processing unit (CPU), which performs arithmetic,
logic, control, and input/output (I/O) operations.
2. External Components: Unlike a microcontroller, a microprocessor requires external
components like RAM, ROM, and peripherals (I/O devices) to function.
3. General Purpose: Microprocessors are general-purpose devices, meaning they can
execute a wide variety of instructions to perform complex tasks.
4. Multitasking: They can run multiple applications simultaneously by managing system
resources (e.g., memory, input/output).

Key Components of a Microprocessor:

1. ALU (Arithmetic Logic Unit): Executes arithmetic and logic operations (e.g., addition,
subtraction, logical AND/OR).
2. Control Unit: Directs the operations of the processor, telling the system how to
interact with memory and I/O devices.
3. Registers: Small, fast storage locations within the CPU that hold data and
instructions for quick access.
4. Cache Memory: Fast, small memory located close to the processor that stores
frequently accessed data and instructions to speed up processing.

Examples of Microprocessors:

• Intel Core i7/i9: Used in personal computers for high-performance computing.


• AMD Ryzen: Another powerful processor series used in desktop and laptop systems.
• ARM Cortex-A series: Found in smartphones, tablets, and other mobile devices.
• Apple M1/M2 chips: Apple’s own ARM-based processors used in its latest Mac
computers and iPads.

Applications of Microprocessors:

• Personal Computers: The core component for running operating systems (Windows,
Linux, macOS) and applications.
• Smartphones and Tablets: ARM-based processors manage tasks like browsing,
gaming, and media playback.
• Servers: Used in high-end computing environments to handle vast amounts of data,
such as in data centers or cloud computing.
• Gaming Consoles: Microprocessors handle real-time rendering and user interaction
in gaming systems like PlayStation or Xbox.

Microprocessor Architecture:

1. CISC (Complex Instruction Set Computing): Microprocessors like Intel’s x86 family,
where each instruction can execute multiple low-level operations. More complex but
flexible.
2. RISC (Reduced Instruction Set Computing): Microprocessors like ARM processors
use a simplified instruction set, designed for efficiency and speed in executing simple
instructions. ARM processors dominate mobile devices because of their power
efficiency.
Microcontroller vs Microprocessor

Feature Microcontroller Microprocessor

Definition A microcontroller is a compact IC that A microprocessor is a CPU that


integrates a CPU, memory (RAM, ROM), requires external components
and peripherals like I/O ports, timers, like memory, I/O ports, and
and ADCs on a single chip. timers to function.

Integration Highly integrated (CPU, memory, I/O Less integrated; requires


ports on the same chip). external peripherals like memory
and I/O.
Memory Has built-in RAM, ROM/Flash. Needs external RAM and
ROM/Flash.
Use Case Used in specific applications (embedded Used in general-purpose
systems like washing machines, cars, computing (PCs, laptops,
etc.). servers).
Cost Generally cheaper due to integration. Typically more expensive due to
needing external components.
Power Lower power consumption; designed for Higher power consumption.
Consumption energy-efficient, continuous operations.

Speed Operates at lower clock speeds (usually Operates at higher clock speeds
up to a few hundred MHz). (usually in GHz).
Architecture Usually 8-bit, 16-bit, or 32-bit. Typically 32-bit or 64-bit.

Applications IoT devices, home automation, PCs, smartphones, servers, and


appliances, automotive systems. high-performance systems.

Embedded System
An embedded system is a specialized computing system designed to perform specific tasks
or functions within a larger system. Unlike general-purpose computers, which can run
various applications and perform a wide range of tasks, embedded systems are typically
optimized for particular applications and are often part of a more extensive device or
machine.

Key Characteristics of Embedded Systems:


1. Specific Purpose: Embedded systems are designed to perform a particular function,
such as controlling a microwave, managing the engine in a car, or operating a
washing machine.

2. Real-Time Operation: Many embedded systems are real-time systems, meaning they
need to respond to inputs or changes within a specific time frame to operate
correctly. For example, an airbag deployment system in a car must react in real-time
during a collision.

3. Limited Resources: They are typically designed to use minimal resources (power,
memory, etc.) and are optimized for efficiency. This is due to cost, size, and energy
constraints.

4. Low Power Consumption: Many embedded systems are optimized to use as little
power as possible, especially those running on batteries or within energy-constrained
environments.

5. Tightly Integrated with Hardware: Embedded systems are often designed to work
closely with hardware, and the software is usually written with specific hardware
components in mind.

Components of Embedded Systems:

1. Microcontroller/Microprocessor: The core processing unit that runs the software or


firmware to control the hardware. Microcontrollers are often preferred in embedded
systems due to their integrated peripherals.

2. Memory: Embedded systems typically have limited memory, both for storage
(ROM/Flash) and for executing programs (RAM).

3. Sensors and Actuators: Sensors collect data from the environment, while actuators
perform actions, such as moving parts of the system.

4. Communication Interfaces: Protocols like I2C, SPI, UART, and CAN bus are often used
to enable communication between the embedded system and other parts of the
device or external systems.

5. Firmware/Software: The software running on embedded systems is often referred to


as firmware. It is usually designed to be highly reliable, small, and efficient.

Examples of Embedded Systems:

• Consumer electronics: Smart TVs, washing machines, and microwave ovens.

• Automotive systems: Engine control units (ECUs), airbags, and infotainment systems.

• Medical devices: Pacemakers, infusion pumps, and diagnostic equipment.


• Industrial automation: Robotic arms, sensors, and control systems in factories.

Applications of Embedded Systems:

• IoT (Internet of Things): Embedded systems are a core component of IoT devices,
which are connected to the internet to perform specific functions like monitoring or
controlling devices remotely.

• Automotive: Modern vehicles use numerous embedded systems for safety features,
engine management, and infotainment systems.

• Healthcare: Medical devices like insulin pumps and imaging systems rely on
embedded systems for precise operation.

• Aerospace and Defense: Aircraft navigation, missile guidance, and satellite systems
are all controlled by embedded systems.

Basic Structure of embedded system

The following illustration shows the basic structure of an embedded system −

• Sensor − It measures the physical quantity and converts it to an electrical


signal which can be read by an observer or by any electronic instrument like an
A2D converter. A sensor stores the measured quantity to the memory.

• A-D Converter − An analog-to-digital converter converts the analog signal sent


by the sensor into a digital signal.

• Processor & ASICs − Processors process the data to measure the output and
store it to the memory.

• D-A Converter − A digital-to-analog converter converts the digital data fed by


the processor to analog data

• Actuator − An actuator compares the output given by the D-A Converter to the
actual (expected) output stored in it and stores the approved output.

You might also like