Professional Documents
Culture Documents
Sensor: A sensor is a device that detects and responds to a physical stimulus in the
environment, such as temperature, pressure, or light. The sensor converts the physical
stimulus into an electrical signal that can be processed and analyzed by other components in a
system.
Some common types of sensors include:
1. Temperature sensors, which measure the temperature of a system.
2. Pressure sensors, which measure the pressure of a fluid or gas.
3. Accelerometers, which measure acceleration or vibration.
4. Light sensors, which detect the intensity of light.
5. Infrared sensors, which detect the presence of infrared radiation.
2. Actuator: An actuator is a device that produces a physical effect or action in response to
an electrical signal, such as producing motion or generating heat. The actuator receives an
electrical signal from a controller or other system component and converts that signal into a
physical action or effect.
Some common types of actuators include:
1. Motors, which convert electrical energy into mechanical energy to produce motion.
2. Solenoids, which use electromagnetism to produce linear motion.
3. Heating elements, which convert electrical energy into heat.
4. LEDs, which convert electrical energy into light.
Sensor Actuator
It is a device that senses and measures changes It is a device that converts an electrical signal
in physical quantities. into mechanical movement.
Its input is a physical quantity. Its input is an electrical signal.
Its output is an electrical signal. Its output is mechanical work.
It takes input from the system or signal
It takes input from the environment.
conditioning unit.
It provides output to a system. It provides output to the environment.
It is connected at the input of a system. It is connected at the output of a system.
A sensor may or may not require extra power
Actuator require extra power source to operate.
source to operate.
4. Some sensors and actuators:
i. LED is an important output device used for visual indication in embedded systems.
ii. LED is a p-n junction diode with an anode and a cathode.
iii. To properly function, the anode of the LED should be connected to the positive
terminal of the power supply and the cathode to the negative terminal of the power
supply. A current limiting resistor is used in series with the LED to limit the current
flow through it.
iv. LED can be interfaced with a processor/controller in two ways: directly connecting
the anode to the port pin and driving the LED with the port pin at logic high, or
connecting the cathode to the port pin and turning on the LED when the port pin is at
logic low.
v. The second approach is preferred as it allows the power supply to directly source the
current, resulting in the desired brightness level for the LED.
LEDs are commonly used as indicators for power conditions, battery status, and other
situations in embedded systems. With the proper circuit design and interfacing, LED can be
an efficient and effective output device for visual indication.
4.2. 7-segment LED display
Figure 2: 7-Segment LED Display Figure 3: Common anode & cathode configurations
Figure 6: 2-Phase unipolar stepper motor Figure 7: Stator Winding details for a 2 Phase unipolar stepper motor
The stepping of stepper motor can be implemented in different ways by changing the
sequence of activation of the stator windings. The different stepping modes supported by
stepper motor are explained below:
Full Step: In the full step mode both the phases are energised simultaneously. The coils A,
B, C and D are energised in the following order:
It should be noted that out of the two windings, only one winding of a phase is energised at a
time.
Wave Step: In the wave step mode only one phase is energised at a time and each coils of
the phase is energised alternatively. The coils A, B, C, and D are energised in the following
order:
Half Step: It uses the combination of wave and full step. It has the highest torque and
stability. The coil energising sequence for half step is given below
The following circuit diagram illustrates the interfacing of a stepper motor through a driver
circuit connected to the port pins of a microcontroller/processor.