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.

Motor Max tests the movement and safe stop of a motorized vent.
iotclass.org

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.

I begin with the vent that stays shut despite an open command. I trace the driver and supply before checking movement and safe stop.

iotclass.org

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.

I follow the stuck vent from the screen to the mechanism. I check each boundary, then interrupt power and record where the output settles.

iotclass.org

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.

I see the dashboard request water, but I still check the result. I trace the valve supply and look for evidence that water actually moved.

iotclass.org

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.
Correct actuator driver boundary showing an ESP32 sending a low-current GPIO signal to a motor driver while external power supplies the DC motor.
Correct actuator driver boundary showing an ESP32 sending a low-current GPIO signal to a motor driver while external power supplies the DC motor.
iotclass.org

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

Your answer
iotclass.org

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.

I compare a warning LED with the greenhouse fan. I choose each driver from its load and required behavior before treating them as interchangeable outputs.

iotclass.org

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.

I compare the robot arm's position with the angle requested. I check whether it holds under load and what happens after a reset.

iotclass.org

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.

I mark 3.3 V on the command side and 12 V on the valve supply. I trace the source of the valve's 6 W.

iotclass.org

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.

I write down the irrigation valve's job before choosing parts. I then decide what flow evidence and safe stop the consequences require.

iotclass.org

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.

I review the greenhouse fan and valve as separate loads. I reset the controller and check each required resting state before trusting the installation.

iotclass.org

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.

I follow the energized coil just as its switch opens. I check where the stored energy can go before trusting repeated switching.

iotclass.org

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.

I compare the spinning motor with the same motor held at stall. I use both current values when checking the driver and supply.

iotclass.org

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

Your answer
iotclass.org

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.

I return to the stuck vent and check the observed movement. I keep its electrical evidence and safe-stop test beside the command record.

iotclass.org

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.

I finish the Motion Check by interrupting communication and power. I record the output state and verify recovery before accepting the action.

iotclass.org

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?

AThe GPIO is a logic boundary; the load needs its own power path and driver.
BA low-current motor can share the GPIO path if firmware limits how long it stays on.
CA relay module is the normal driver choice as long as its logic input accepts the microcontroller voltage.
DAn external load supply removes the GPIO current limit because the microcontroller provides just the control voltage.
Show answer

Answer: A A driver stage lets a low-power logic signal command the higher-current load while protecting the controller.

iotclass.org

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?

ASupply, driver, flyback path, duty cycle, safe state, timeout, and flow feedback.
BSupply, driver, flyback path, and a command log, with physical valve movement inferred from the command.
CSupply, coil rating, enclosure label, and manual wiring inspection, without a timeout or defined power-loss state.
DNominal coil voltage, a generic flyback diode, and a bench-open test, without duty-cycle or installed-flow evidence.
Show answer

Answer: A A valve decision needs electrical, protection, control, safe-state, and action-verification evidence.

iotclass.org

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?

AA voltage spike from stored coil energy when switching changes.
BMissing software requirements for actuator selection records.
CThe general decision of which actuator role to choose.
DAll mechanical jams even when no feedback sensor is present.
Show answer

Answer: A Inductive loads store energy in a magnetic field, and that energy needs a safe path when switching changes.

iotclass.org

Print reference

Answers

Answer key.

  1. A · A driver stage lets a low-power logic signal command the higher-current load while protecting the controller.
  2. A · A valve decision needs electrical, protection, control, safe-state, and action-verification evidence.
  3. A · Inductive loads store energy in a magnetic field, and that energy needs a safe path when switching changes.
iotclass.org

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.

iotclass.org

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.

iotclass.org