What you will learn
  • Explain turning electrical power into controlled motion in plain language.
  • Trace information from input to output.
  • Test one subsystem independently.
  • Recognize a common failure and respond safely.
  • Modify the example without changing several variables at once.

The central idea: turning electrical power into controlled motion

Motors create torque and speed; gears trade speed for torque; wheels translate rotation into ground motion; and the controller changes direction or power through a suitable driver.

Treat the system as a chain of observable inputs, explicit processing, a decision, and an output. That makes the design easier to explain and gives you a place to test when something fails. A working result is not enough: record what input produced it and what evidence shows the result is correct.

Follow the information through the system

Read the diagram from left to right. Each arrow is a boundary where data, electrical signals, or commands move between parts. Test those boundaries separately before combining the whole system.

A differential-drive robot moves forward when both wheels turn equally and turns when their speeds differ.

  • Choose motors by load and stall current.
  • Measure wheel diameter and track width.
  • Start with low speed and wheels raised.
battery → motor driver → geared motors → wheels → motion
controller ─────commands─────┘

Test before you trust the result

Start with a normal case, then test a boundary case and a failure case. For software, try empty, unexpected, and extreme inputs. For hardware, begin with wheels raised or actuators disconnected, keep a physical power switch within reach, and verify safe stopping behavior.

Write down the expected result before each test. If the observation differs, stop and find the first boundary where the expected signal disappeared. This method is slower than changing many things at once, but it produces evidence instead of guesses.

  • Test one input with a known value.
  • Observe the intermediate value before the final action.
  • Confirm a safe response when input is missing or invalid.
  • Repeat the same test to check consistency.

Important terms

Torque
Turning force around a shaft.
Gear ratio
The relationship between input and output rotations in a gearbox.
PWM
Rapid switching used to control average motor power.
Differential drive
Steering by changing left and right wheel speeds.
Stall current
Current drawn when a powered motor cannot turn.

Mini project: practice turning electrical power into controlled motion

  1. Raise the drive wheels.
  2. Command each motor separately.
  3. Confirm forward directions.
  4. Test stop and timeout behavior.
  5. Measure straight travel at low speed.

Common mistakes and debugging

  • Selecting a driver from no-load current.
  • Expecting equal commands to guarantee straight travel.
  • Reversing direction instantly at full power.
  • Testing near stairs or fingers.

Independent challenge

Explain how you would correct a rover that curves left during a forward command.

Check your understanding: 10 questions

  1. What is the main purpose of turning electrical power into controlled motion?

  2. What does “Torque” mean in this lesson?

  3. How is “Gear ratio” used?

  4. Why should you test one boundary or subsystem at a time?

  5. What should the system do when an input is missing or invalid?

  6. In your own words, what does “Torque” mean?

  7. In your own words, what does “Gear ratio” mean?

  8. In your own words, what does “PWM” mean?

  9. In your own words, what does “Differential drive” mean?

  10. In your own words, what does “Stall current” mean?

Quiz answers

Reveal all 10 answers after your attempt
  1. Motors create torque and speed; gears trade speed for torque; wheels translate rotation into ground motion; and the controller changes direction or power through a suitable driver.
  2. Turning force around a shaft.
  3. The relationship between input and output rotations in a gearbox.
  4. It reveals where the expected value or behavior first changes, so debugging is based on evidence.
  5. It should reject the input, report the problem, or move to a documented safe state instead of guessing.
  6. Turning force around a shaft.
  7. The relationship between input and output rotations in a gearbox.
  8. Rapid switching used to control average motor power.
  9. Steering by changing left and right wheel speeds.
  10. Current drawn when a powered motor cannot turn.

Summary

turning electrical power into controlled motion becomes manageable when you identify the input, processing, decision, output, and evidence of success. Build the smallest version, test it, then make one measured change.

Continue learning

Continue to the next lesson, which builds on this model with one additional capability.

Choose a connected learning path

Sources and further reading

Prepared 2026-10-02. Editorially completed for the course. Software examples are designed for current Python 3; verify board, operating-system, library, and hardware details against the linked primary documentation before a physical build.