Actuators & Control · Study deck
The Output Side of IoT
An actuator is a part that turns an electrical command into a physical change.
Motor Max is your guide for this deck.

After studying this chapter
Learning objectives
Build an output path that proves both useful action and a safe stop.
- A logic pin requests action without supplying the load energy.The driver and external supply carry the current needed by the actuator.
- Select the output from the physical change required.Motion, switching, feedback, and process control need different interfaces and evidence.
- Protection must handle switching stress and abnormal current.Startup, stall, and inductive energy can exceed assumptions based on normal operation.
- Feedback tests whether the output reaches its required state.A successful command leaves movement, safe stop, and recovery to be observed.
Major section
The command arrives but the vent sticks
Follow the stuck vent from its command through power and movement to the observed result.
- An open command can appear while the vent stays stuck.The chapter room still overheats if the physical mechanism does not move.
- The driver, supply, and mechanism can fail separately.Each boundary needs an observation instead of relying on the screen's command message.
- Verify the power path before trusting the command log.The driver must switch the load using a supply that supports its demand.
- Failure tests establish the output's actual resting state.Remove communication, reset the controller, and interrupt power to observe where the vent settles.
Major section
Prove that watering happened
The watering example connects electrical operation with evidence that water actually moved.
- The controller decides when watering is needed.It requests valve activation after the soil-moisture node identifies a need for water.
- A suitable driver switches the externally powered valve.The supply and switching device must support the valve's electrical load.
- Protection and feedback answer different questions.The protection path handles electrical stress; flow or process evidence checks whether water moved.
- The safe stop follows the consequence of a wrong action.Watering that could cause damage may need a timeout, flow sensor, or manual shutoff.
Major section
Separate command and load energy
This driver diagram separates command and load energy; start at the ESP32 GPIO, then follow external power.
- Follow the GPIO signal into the driver input.The ESP32 requests movement through a low-current control path.
- External power flows through the driver into the motor.That separate path carries the load current instead of drawing it through the GPIO.
- Find the common ground between controller and driver.Their control signal needs a shared reference to be interpreted reliably.
- Follow the protection path during switching.Stored inductive energy needs a safe route when the switch turns off.
Activity 1 · Draw it
✎ Separate signal and power

I want you to show which path requests movement and which path supplies its energy.
Sketch controller, driver, external supply, and motor. Label the control signal, load-current path, common reference, and protection path. Add one observation that would prove movement.
3 minutes · Pen and paper · Answer: Activity 1
Major section
Match the driver to the output
Match the switching interface to the output behaviour.
- A warning LED can use a resistor and small current path.The interface limits current while turning software status into a visible signal.
- A fan can need a MOSFET and suitable supply.The power path must tolerate startup current as well as normal operation.
- Reversing a motor requires an arrangement such as an H-bridge.The selection record must include load direction alongside current and switching requirements.
- A stepper uses a current-limited driver for its windings.Position work also needs review of missed steps, overload, and mechanical stops.
Major section
Positioning and process control
Positioning and process control need more than a simple switching command.
- A servo needs control pulses and a separate power rail.That rail must support holding or stall current under the expected load.
- A robot arm must reach and hold its requested position.Load, holding force, repeatability, and mechanical stops belong in its selection record.
- A thermostat commands cooling through an appropriate driver stage.The physical output may be a fan or relay, with its own supply needs.
- A valve or heater failure can have serious consequences.The design needs stronger action and safe-state evidence than a failed status indicator.
Major section
Work through the valve power boundary
The valve example makes the difference between logic voltage and load power concrete.
- The controller supplies a 3.3 V logic signal.That signal commands the switching interface instead of providing the valve's operating energy.
- The example valve draws 0.5 A at 12 V.Its external supply must support the load through a suitable driver.
- The valve's 6 W belongs on the power path.The GPIO drives a transistor or MOSFET gate while the solenoid draws external power.
- A flyback path handles coil energy at turn-off.Opening the switch leaves stored energy that could otherwise stress the switching device.
Major section
Build the actuator selection record
A selection record connects the required action with reviewable electrical and mechanical evidence.
- Define the physical action before comparing candidate actuators.Rotation, airflow, fluid flow, and positioning place different demands on the output.
- Record the load and its electrical path together.Supply, driver, protection, and duty cycle need to suit the same installed load.
- Choose feedback from the consequence of a failed action.Position, flow, current, or process measurements can establish what a command alone cannot.
- Potentially damaging watering needs safeguards beyond command logging.The chapter examples include a normally closed valve, timeout, leak sensor, and manual shutoff.
Major section
Review the greenhouse outputs
Review the greenhouse outputs as installed loads with defined failure behaviour.
- The fan, valve, grow lighting, and latch perform different jobs.Cooling, irrigation, lighting, and access control each need their own output review.
- Each installed load needs current and switching evidence.Protection, duty cycle, and enclosure heat belong beside the supply and driver details.
- Define the output state after restart or network loss.A command history does not establish whether the physical load stops safely.
- Record the changes that trigger another review.New wiring, supply, load, temperature, duty cycle, or startup behavior can alter the result.
Major section
Give coil energy a switching path
Stored coil energy needs a controlled path when switching interrupts current.
- A coil stores magnetic energy while current flows.The chapter's 20 mH coil at 0.5 A stores 0.0025 J.
- Opening the switch does not remove the stored energy.The coil tries to keep current flowing as the switching path changes.
- A flyback diode, TVS, or snubber provides a safer path.Suitable protection lets the stored energy leave without an uncontrolled voltage rise.
- Uncontrolled switching voltage can damage nearby electronics.The transistor can fail or the controller can reset without suitable protection.
Major section
Compare running current with stall
Compare normal running current with the startup and stall cases before sizing the driver.
- The example motor can draw 6 A at stall.Its 12 V supply drives current through 2 ohms before back-EMF builds.
- At 9 V back-EMF the winding carries only 1.5 A of current.The spinning motor leaves less of the supply voltage across the winding resistance.
- A driver sized only for running current can overheat.A jam removes the normal running assumption and may also brown out the supply.
- Current sensing and a fallback state help contain failed motion.Critical outputs need independent confirmation and a defined response when the action fails.
Activity 2 · Predict
✎ The motor stops turning

I want you to compare the jammed motor with the motor already spinning.
The chapter motor runs from 12 V with 2 ohms winding resistance. On paper, compare current at stall with current when back-EMF is 9 V. Predict why a driver sized only for running current is risky.
3 minutes · Pen and paper · Answer: Activity 2
Major section
Summary
Trust an output only after its electrical path and physical result have been verified.
- The action and its failure consequences determine the output design.A warning light and a water valve require different evidence of success and safe failure.
- Match the supply, driver, wiring, and protection to the load.Startup current, switching energy, duty cycle, and enclosure heat belong in that check.
- Feedback establishes success when a command leaves the result uncertain.Flow, position, current, or process measurements can reveal a stuck or disconnected mechanism.
- Retest after relevant conditions or safety requirements change.Hardware, firmware startup behavior, wiring, and environment can all invalidate an earlier result.
Deck summary
Key takeaways
Actuation commits the system to a physical result that needs observable limits.
- The controller requests action through a driver.The load draws its energy from the supply along a separate power path.
- Startup demand and switching energy belong in the design.A motor jam or interrupted coil current can stress an otherwise working output.
- Independent feedback can reveal a stuck mechanism.A command may succeed in software while the physical output stays unchanged.
- Critical outputs need a defined failure state and recovery path.Communication loss, reset, and power interruption tests show whether those requirements hold.
Retrieval practice
Recall check 1 of 3

Motor Max says: answer from memory, then check your reasoning.
Q1Why should an IoT design avoid connecting a motor or solenoid directly to a microcontroller GPIO pin?
Show answer
Answer: A A driver stage lets a low-power logic signal command the higher-current load while protecting the controller.
Retrieval practice
Recall check 2 of 3

Motor Max says: answer from memory, then check your reasoning.
Q2A controller opens a water valve with a solenoid. Which evidence belongs in the actuator selection record before release?
Show answer
Answer: A A valve decision needs electrical, protection, control, safe-state, and action-verification evidence.
Retrieval practice
Recall check 3 of 3

Motor Max says: answer from memory, then check your reasoning.
Q3What does a flyback path protect against in a motor, relay, or solenoid circuit?
Show answer
Answer: A Inductive loads store energy in a magnetic field, and that energy needs a safe path when switching changes.
Print reference
Answers
Answer key.
- A · A driver stage lets a low-power logic signal command the higher-current load while protecting the controller.
- A · A valve decision needs electrical, protection, control, safe-state, and action-verification evidence.
- A · Inductive loads store energy in a magnetic field, and that energy needs a safe path when switching changes.
Print reference
Activity 1 answer
Model answer.
Draw it: The controller signal enters the driver; the external supply powers the driver and motor. A common reference connects control and driver grounds. Protection gives inductive energy a safe switching path. Position feedback or an appropriate process measurement verifies the action.
Print reference
Activity 2 answer
Model answer.
Predict: At stall, 12 V / 2 ohms = 6 A. With 9 V back-EMF, the current is (12 V - 9 V) / 2 ohms = 1.5 A. A jam removes the running-current assumption and can overheat the driver or brown out the supply.