One-sentence summary
An actuator is the part that turns a system's decision into real movement or output in the world; so while a sensor listens to the world, an actuator responds to it.
Why does it matter?
In the previous lesson we learned about sensors. Sensors are like a robot's eyes, ears and skin; they measure temperature, distance or light and turn it into a number. But think about it: the robot measured the distance and said, "there is an obstacle in front of me." What happens next?
This is exactly where the actuator steps in. Measuring alone is not enough; the robot needs to actually do something. Stop, turn, light up, make a sound or lift an arm. Actuators handle all of these "doing" jobs.
If we compare a robot to a living creature:
- Sensors gather input (eyes, ears).
- The brain makes decisions (microcontroller, code).
- Actuators carry out the action (muscles, vocal cords).
A robot with no sensors is blind. A robot with no actuators is paralysed; it can see the world but cannot do anything. When the two work together, the robot becomes a machine that truly "gets things done."
What exactly does an actuator do?
An actuator is a part that turns an electrical signal into a physical effect. It takes electrical energy as input; it produces movement, light, sound or heat as output.
The word comes from "act." So you can think of an actuator as the part of the system that "takes action."
The difference between a sensor and an actuator
Not mixing these two up is very important. The most basic difference is the direction the energy flows.
| Feature | Sensor | Actuator |
|---|---|---|
| Job | Measures | Acts |
| Direction | World to system (input) | System to world (output) |
| Example | Distance sensor, light sensor | Motor, LED, buzzer |
| Analogy | Eye, ear | Muscle, vocal cord |
In short: a sensor is input, an actuator is output. A thermometer is a sensor because it reads the temperature. A heater is an actuator because it warms the room.
Everyday example: an automatic door
Think about the automatic door of a shopping centre. When you get close, it opens. Two parts work together here:
- A sensor detects you (a motion or distance sensor).
- An actuator is the motor that pushes the door.
Without the sensor, the door would not know when to open. Without the actuator, even a correct decision could not move the door.
Everyday example: phone vibration
Your phone buzzes when it is on silent mode. That vibration is made by a tiny motor with an unbalanced weight on its shaft, a small actuator. The phone makes the decision "a message arrived," then turns that decision into a vibration you feel in your hand. The decision is digital, the vibration is physical. The actuator is the bridge between them.
Common types of actuators
DC motor
This is the simplest motor. When you give it electricity it spins one way, and if you reverse the polarity it spins the other way. It is used in wheeled robots, fans and toy cars. To control its speed, the code usually uses a method called PWM (pulse-width modulation); we send very fast on-off signals to the motor to set its average speed.
Servo motor
A servo is a special motor that can turn to a specific angle. For example, if you say "go to 90 degrees," it turns exactly there and holds. It is widely used in robot arms, steering mechanisms and camera-angle adjustments because its position control is very precise.
LED
An LED is a small actuator that turns electricity into light. It has no moving parts, but it still produces an output: light. It is perfect for showing a robot's states, such as "ready," "stop" or "error."
Buzzer (speaker)
A buzzer is an actuator that turns electricity into sound. It is used for warning tones, simple melodies or alarms. A microphone is a sensor (it listens to sound); a buzzer is an actuator (it produces sound). They make a nice comparison pair.
How does code drive an actuator?
Controlling an actuator with code usually has three steps: read the sensor, make a decision, run the actuator.
Below is pseudocode that combines a distance sensor with a motor. The sensor (input) and the actuator (output) work together:
repeat forever:
distance = read_distance_sensor()
if distance < 10 centimetres:
stop_motor() # actuator: movement
turn_on_red_LED() # actuator: light
play_buzzer() # actuator: sound
else:
drive_motor_forward() # actuator: movement
Let's see the same idea with a very simple servo example on a micro:bit. When the button is pressed, the servo turns to an angle:
when button A is pressed:
servo_write(pin0, 90) # move the servo to 90 degrees
wait 2 seconds
servo_write(pin0, 0) # return the servo to its start
Notice that in both examples the decision part of the code is separate from the action part. The information from the sensor is checked inside an "if," then a command goes to the actuator. In the world of robotics this loop is always the same from start to finish: read, decide, act.
Mini practice
Draw the table below on paper and fill it in. Your goal is to tell whether each part in a device is a sensor or an actuator.
| Device | Input (sensor) | Output (actuator) |
|---|---|---|
| Automatic door | ? | ? |
| Air conditioner | ? | ? |
| Washing machine | ? | ? |
| Game controller (with rumble) | ? | ? |
Then design a robot idea: a night light that turns on automatically when it gets dark. Answer these three questions:
- Which sensor measures the darkness?
- Which actuator gives the light?
- Which sentence describes the decision in between? (Hint: "If … then …")
Write your idea as pseudocode. There is no single correct answer; what matters is that the input, the decision and the output each appear separately.
Common mistakes
Confusing sensor and actuator
A sensor measures, an actuator acts. A thermometer is a sensor, a heater is an actuator. Remember the direction: sensor goes in, actuator goes out.
Powering a motor directly from the board
DC motors and servos can draw far more current than a micro:bit or Arduino pin can handle. If you connect a motor straight to the board, you can damage it. Instead, use a motor driver and a separate battery.
Forgetting the decision and only wiring the actuator
An actuator is not smart on its own. It needs a decision (code) that tells it "when" to act, and usually a sensor too. Just attaching a motor and waiting does nothing.
Starting an actuator at full power
Starting a servo or motor at top speed creates a sudden, uncontrolled movement. Begin at low speed, watch the behaviour, then increase it.
Safety note
Actuators create a real effect in the outside world, so you need to be careful.
- Moving parts are dangerous. Keep your fingers, hair and loose cables away while a motor or servo is turning. Tie back long hair.
- Never power a motor directly from a board pin. Always use a motor driver and a proper power source.
- Use only low-voltage, educational sources: a battery, USB, micro:bit or Arduino. Never touch mains electricity (the wall socket).
- Start at low speed. When you run a robot for the first time, test it in an open area away from the edge of the table.
- Motors can get hot. Check with your hand before touching a motor that has been running a long time; if it is hot, wait.
- Do all of these activities under adult supervision.
Lesson summary
- An actuator is the part that turns a decision into physical movement or output.
- A sensor is input (it measures), an actuator is output (it acts); their directions are opposite.
- Motors, servos, LEDs and buzzers are the most common actuator examples.
- The robotics loop is always the same: read, decide, act.
- Because motors involve moving parts and current, they need a motor driver, separate power and adult supervision.
Check questions
- What is the basic difference between an actuator and a sensor?
- Is a buzzer a sensor or an actuator? Why?
- What is the most important feature that separates a servo motor from a DC motor?
- Why should we not power a DC motor directly from a micro:bit pin?
- In the "read, decide, act" loop, which step does an LED belong to?
Answers
- A sensor measures the outside world and gives the information to the system (input); an actuator turns the system's decision into an action in the world (output).
- It is an actuator, because it turns electricity into sound and so produces an output to the world. (A microphone that listens would be a sensor.)
- A servo can turn to a specific angle and hold there; that is, its position is controlled precisely. A DC motor spins continuously.
- Motors draw far more current than a pin can provide; connecting one directly can damage the board. A motor driver and a separate power source are needed.
- It belongs to the "act" step; an LED is an output, so it is an actuator.
Source and verification note
For “What Is an Actuator?”, verification focuses on whether the relationship between What exactly does an actuator do? and Everyday example: an automatic door remains consistent across examples. Sensor readings can change with the model, supply voltage and environment. Thresholds in the lessons are therefore examples; a real project should use a measurement table and calibration.
Next lesson
Digital and Analog Signals: We learn the two different signal languages that sensors and actuators speak.