Contents
Young makers, we previously equipped the development board with its "sensory organs" — sensors, enabling it to perceive environmental changes such as flames, light, and temperature.
But perception alone is not enough; a smart development board also needs to "take action": for example, displaying the detected value on a digital tube, playing a prompt tone through a speaker, or driving a car to move with a motor. .. The "hands and feet" that help the development board complete these actions are exactly the actuators we will learn about in this chapter.
- 8.1 Want to make a flashing night light? Light up the colorful indicator! —— Piranha LED light module
- 8.2 What to Do When the Development Board Overheats? Install a Small Fan to Cool It Down! —— MOSFET-Based Cooling Fan Module
- 8.3 Want an Ultra-Bright Desk Lamp? Drive High-Power LEDs to Emit Light! —— High-Power Single-Die LED Module Based on OC7140
- 8.4 How to indicate dice rolls? Build a small vibration feedback device! —— Vibration motor module based on MOSFET
- 8.5 Want to display a digital counter? Let the 4-digit numeric tube light up! —— 4-digit Nixie Tube Driver Module Based on TM1637 Chip
- 8.6 How to Make Program Alarms Sound? Create a Loud Prompt Tone! —— Power Amplifier Speaker Module Based on LM386 Chip
- 8.7 Want to create colorful pixel art? Light up a cool LED matrix! ——WS2812 Matrix Module
- 8.8 Control Home Appliances with a Development Board? Safely Switch Table Lamps and Fans! —— A General Relay Module Based on the HF46F
- 8.9 Want to Get Your Car Moving? Let the Drive Motor Spin! —— Optocoupler-Isolated MOSFET Single-Motor Driver Module
- 8.10 Want to build an ultraviolet germicidal lamp? Control the switching of the UV lamp array! —— MOSFET-based UV ultraviolet lamp matrix module
- 8.11 Want to build a robotic arm gimbal? Precisely control multiple servos! ——I2C Bus 16-Channel PWM Servo Driver Module
- 8.12 Want to control a device with a remote? Receive infrared remote control signals! —— Infrared receiving module based on TSOP34138
The actuator is the "action performer" of the development board, which can turn the cold numbers and instructions in the program into tangible, audible and visible practical effects:
- The nixie tube makes the data "pop out" for clear visibility at a glance;
- The speaker enables the program to "speak out loud" to alert you to abnormal conditions in the environment;
- Motors enable the development board to "come alive", turning it into a small robot that can move and rotate.
- Relays help development boards "control home appliances", using small signals to operate large electrical devices. ..
In this chapter, we will teach the program to do another equally important thing: alter the real world based on the result of a judgment.
1. What is an actuator?
Actuators in a nutshell: An actuator is the "hands, mouth and tools" of a program, responsible for translating computational results into tangible actions.
- The program determines "it's too hot" → the fan starts running
- The program determines that "it's dark" → the lamp turns on
- The program determines that "someone is coming" → the buzzer sounds and the screen displays a prompt
All these "light emission, sound production, rotation, and power on/off" actions are entirely performed by actuators.
2. Actuators are not the same as sensors, as they have distinct respective responsibilities
To avoid confusion, let's use another very intuitive comparison:
Module Type | Which part of the human body does it resemble? | Function |
Sensors | Eyes / Skin / Ears | Perceive external information |
Actuators | Hands / Mouth / Muscles | react to the outside world |
📌 A complete intelligent system is bound to have both types of modules at the same time.
Sensors are responsible for "input", actuators take charge of "output", and the program in between handles judgment and decision-making.
For every actuator you learn, we pair it with simple yet fun mini-experiments — ranging from "digital scrolling display" to "infrared remote-controlled motor". You’ll find that once you equip the development board with "hands and feet", the creative possibilities you can play around with are far more than you imagined!
3. What You Will Learn in This Chapter
In this chapter, we will introduce you to a variety of common and practical output devices, ranging from the most intuitive display and audio modules to those that can actually control the on-off status of devices and the operation of motors.
The learning sequence will follow a principle:
From "being visible and audible" → to "being able to control real devices"
You will learn the following in sequence:
- 🔢 Display the number (4-digit nixie tube)
- 🔊 Make the program produce sound (power amplifier speaker)
- 🌈 Control cool lighting effects (WS2812 matrix)
- 🔌 Safely control high-power devices (relays, MOSFETs)
- 🤖 Control multiple actuators simultaneously via a single bus (I2C 16-channel PWM)
- 🎮 Control everything with the remote (infrared receiving module)
4. Core Idea of Actuator Learning
When learning each actuator module, always keep the following "universal formula" in mind:
Input → Judgment → Output
That is:
- Acquire data from sensors or control signals
- Use conditional judgment to decide whether to execute an action
- Present the results via the actuator
📌 Almost all the comprehensive projects you will see later follow this exact logic repeatedly.
5. Study Reminder
- Most actuators in this chapter only require output control and involve no complex computation;
- Some components (such as relays, UV lamps, and motors) have high power ratings, so please operate strictly in accordance with the wiring instructions;
- Graphical programming has already encapsulated the underlying details for you, so what you need to focus on is:
- When is it triggered
- What effect will be output
- How long does it last