Professional Documents
Culture Documents
Chapter 5c - Sensor and Actuator (Autosaved)
Chapter 5c - Sensor and Actuator (Autosaved)
ACTUATOR
Where do we use sensor and actuator?
SENSORS
SENSORS
Transducers
Micro-sensors 10-6m
TYPE OF SENSORS
Analog sensors:
• Output a voltage or current
• 0-5V is typical
• 4-20 mA is typical
Pros:
• Usually a bit cheaper
• Easy to use with MCU (microcontroller unit)
ADCs
Cons:
• Vulnerable to noise
• Must be careful with routing signals
ELE 551 FKE - HH/2012
ANALOG SENSOR
For example:
• The voltage output is non-linearly proportional to
the amount of reflected infrared light received by
the infrared phototransistor.
Digital sensors:
• PWM output
– Duty cycle
– Pulse Width
• Quadrature
Pros:
• Usually less vulnerable to noise
• Easy to use with MCU Input Capture Pin
• No complicated protocol
Cons:
• Strong noise can still malformed signal
ELE 551 FKE - HH/2012
DIGITAL SENSOR
For example:
• Ambient Light Sensor
• Frequency output
– Fixed 50% duty cycle
– Frequency changes
ACTIV
E
PASSI
VE
ACTIVE SENSORS
An electronic
integrated circuit
Analog signals are
which transforms a
directly measurable
signal from analog
quantities.
(continuous) to digital
(discrete) form.
Why we
When signals are in digital
need form they are less
susceptible to the
ADC? deleterious effects of
additive noise.
Holding signal
benefits the
accuracy of the A/D
conversion
Minimum sampling
rate should be at
least twice the
highest data
frequency of the
analog signal
ADC PROCESS – Quantizing and
Encoding
ADC PROCESS – Quantizing and Encoding
Quantizing:
• Partitioning the reference
signal range into a
number of discrete
quanta, then matching
the input signal to the
correct quantum.
Encoding:
• Assigning a unique
digital code to each
quantum, then allocating
the digital code to the
input signal.
ADC OVERVIEW for ARDUINO
ACTUATORS
Actuators
• Servo Motor
• H-Bridge Motor
• Pulse-Width-Modulation (PWM)
Drive forward:
• Close 1 and 4
Drive backward:
• Close 2 and 3
Acknowledgement:
Thank you to Fadzliana Saad and Norhazlin Khairudin from FKE for the teaching
materials