Skip to content
Tactiverge

School/△ Builder/Week 24

Choosing an actuator, and why pins need help

Your microcontroller pin can light an LED. Can it run a 6 W motor on its own?

About 30 min · 3 goals · Checked by automated tests

1.Why should I care?

Microcontrollers decide; drivers deliver. Understanding the gap between a pin's milliamps and a motor's amps keeps chips alive, and a quick trade-off comparison turns 'I like servos' into a decision you can defend.

  • ◇ Calculate a motor's current from its power and voltage, and compare it with what a pin can supply.
  • ◇ Explain why motors need a driver and a separate supply.
  • ◇ Choose an actuator for a task using a simple trade-off comparison.

Safety: Simulation only. Real motors can pinch fingers and their supplies can deliver large currents; work with low-voltage kits under supervision.

2.Predict

A 6 V motor uses 6 W. A typical pin can supply about 0.012 A in this course's model. How does the motor's current compare?

Guess first. Being wrong here is how the surprise works.

3.Discover

Use the trade-offs lab as an actuator chooser: imagine the options are a DC motor, a servo and a stepper. Set what matters most for a greenhouse vent (precision, cost, power use, simplicity) and see whether the winner changes when you change your priorities.

Explorer 04 — Engineering constraints

No design wins on everything

Choosing a robot's perception and compute stack means trading cost, power and capability. Set your priorities and limits, then see which options survive and which are simply worse than another.

EST. ACCURACY (%) vs COST (CU)406080050100150BUDGET 100AMICROCONTROLLER ONLYBMICROCONTROLLER + LOW-RES CAMERACSINGLE-BOARD COMPUTERDSBC + CAMERAE✕ SBC + CAMERA + ACCELERATORF✕ SBC + DEPTH CAMERACIRCLE AREA ∝ POWER
  • Meets limits
  • ✕ Violates a limit
  • Pareto frontier
  • Outside a limit

Limits

100 CU
8.0 W

Priorities (weights 0–10)

5

Cheaper is better

3

Lower draw means a smaller battery or longer run time

2

Headroom for heavier algorithms later

6

Estimated task success

0 %
Horizontal axis

Illustrative figures for teaching, not measured specifications

  1. BMicrocontroller + low-res cameraRank 1

    Microcontroller reading a small low-resolution camera for colour blobs.

    Cost
    30 CU
    Power
    0.9 W
    Compute
    3×
    Est. accuracy
    52 %

    ✓ Meets all limits · On the frontier

    Score58
  2. DSBC + cameraRank 2

    Single-board computer running classical vision on a standard camera.

    Cost
    80 CU
    Power
    5.5 W
    Compute
    25×
    Est. accuracy
    74 %

    ✓ Meets all limits · On the frontier

    Score57
  3. AMicrocontroller onlyRank 3

    Microcontroller with distance and contact sensors; no camera.

    Cost
    12 CU
    Power
    0.3 W
    Compute
    1×
    Est. accuracy
    35 %

    ✓ Meets all limits · On the frontier

    Score50
  4. CSingle-board computerRank 4

    General-purpose single-board computer with the same simple sensors, no camera.

    Cost
    55 CU
    Power
    4.0 W
    Compute
    25×
    Est. accuracy
    48 %

    ✓ Meets all limits · Dominated by B (no worse on cost or accuracy, better on one)

    Score46
  5. ESBC + camera + acceleratorExcluded

    Adds a neural-network accelerator for learned object detection.

    Cost
    150 CU
    Power
    10.0 W
    Compute
    120×
    Est. accuracy
    86 %

    ✕ over budget by 50 CU; over power limit by 2 W · On the frontier

    Score53
  6. FSBC + depth cameraExcluded

    Single-board computer with a depth camera; better 3-D estimates, costly sensor.

    Cost
    165 CU
    Power
    7.5 W
    Compute
    25×
    Est. accuracy
    82 %

    ✕ over budget by 65 CU · Dominated by E (no worse on cost or accuracy, better on one)

    Score42

State

4 of 6 options meet the limits (budget 100 CU, power 8.0 W). Highest weighted score: B, Microcontroller + low-res camera, 58 of 100, on the Pareto frontier. Frontier on cost versus accuracy: A, B, D, E.

4 of 6 options meet the limits (budget 100 CU, power 8.0 W). Highest weighted score: B, Microcontroller + low-res camera, 58 of 100, on the Pareto frontier. Frontier on cost versus accuracy: A, B, D, E.

How to read this

Each circle is a design option, placed by cost (left is better) and estimated accuracy (up is better); its area shows power. Filled circles meet every limit you set; dashed, hollow circles marked ✕ break at least one, and the hatched area shows where a limit rules options out.

The stepped line is the Pareto frontier: options for which nothing else is both cheaper (or lower-power) and more accurate. An option off the frontier is dominated, meaning another option beats it on both axes, whatever your priorities. The weighted score below is a different question: it depends entirely on the weights you chose, so two people can reasonably rank the frontier differently.

Assumptions & limitations
  • All figures are illustrative teaching values chosen to make trade-offs visible. They are not measured specifications, prices or benchmarks of any product.
  • Options are generic archetypes; real stacks vary widely in what each part costs, draws and achieves.
  • Scores use a weighted sum of min–max normalised criteria. Normalisation is relative to these six options, so adding or removing one changes every score.
  • A weighted sum hides trade-offs: a high score can come from one extreme strength. That is why the Pareto view is shown alongside it.
  • The frontier is computed on the two plotted criteria only; an option dominated here may still be the best on a criterion not plotted (for example F has lower power than E).
  • Accuracy is treated as a single fixed number. In practice it depends on lighting, the objects, the algorithm and integration effort, and is uncertain until tested.
Can't use the interactive? Read a description instead

The trade-offs lab scores options against weighted criteria and ranks them, with must-haves checked first. In this lesson the options stand for a DC motor, a servo and a stepper, and the criteria for precision, cost, power use and simplicity. Changing the weights can change which actuator wins.

4.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1 · a fresh version every time

A 9 V DC motor uses 1.5 W when running. How much current does it draw, in amps?

A

5.Understand

Power, voltage, current

Electrical power is P = V × I. Rearranged, I = P ÷ V. A 12 V, 18 W pump draws 1.5 A; a 5 V, 1.5 W fan draws 0.3 A. Small motors often draw several times their running current for a moment when starting or stalled, so drivers and supplies need extra headroom.

Pins command, drivers deliver

A pin can safely supply only milliamps. Motors need amps, and they make electrical noise and voltage spikes. So the pin sends a small logic signal to a driver (a transistor or a motor-driver chip), which switches a separate supply through the motor. A diode or the driver's built-in protection catches the spike when the motor is switched off. Servos and stepper drivers follow the same idea.

A fair comparison

List what the task needs (angle or speed? holding force? cost? power?) and score each actuator against it, as in the trade-offs lab. Write down the must-haves first: a vent that must hold 45° in wind rules out a plain DC motor without a sensor, however cheap it is.

Explain it another way

The microcontroller is a manager who gives orders in a whisper; the driver is a foreman who shouts them to a team of heavy lifters (the motor's power supply).

Worked example 1

A 12 V greenhouse fan is rated 3 W. Its current, and how long can it run on a 12 V, 7 Ah battery?

I = 3 ÷ 12 = 0.25 A. 7 Ah ÷ 0.25 A = 28 hours (ideal; real batteries give less).

Common mix-ups

  • If a motor is small, a pin can power it.
    ✓ Even small motors draw hundreds of milliamps and spike when switched. Always use a driver.
  • The cheapest actuator is the best choice.
    ✓ Must-haves come first. A cheap actuator that cannot hold an angle fails the task.

6.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2 · a fresh version every time

A 5 V DC motor uses 12 W when running. How much current does it draw, in amps?

A

Practice 3

A motor draws 0.6 A. A pin is limited to 0.012 A in this model. How many times the pin's limit is that?

times

Practice 4

Why does a motor connect through a driver with its own supply?

Practice 5

A greenhouse vent must hold 0°, 45° or 90°, against gusts, and the budget is tight. Which actuator is the sensible first choice?

7.Apply it

Draw a block diagram of a greenhouse fan controller: microcontroller pin → driver → fan, with a separate 12 V supply and a shared ground. Label every current and voltage you know, and calculate the fan's current from its power rating.

8.Reflect

Concepts: Motors, servos and steppers · Electrical power and energy budgets · Constraints, budgets and trade-offs