Course contents · Chapter 1
RoboticsChapter 1 of 42 min reading + practice

Trace a signal through the system

A controller reads input signals and sets outputs according to a program.

A controller reads input signals and sets outputs according to a program.

Name the meaning and valid range of each value. A physical component and a program variable are connected concepts, but they are not interchangeable descriptions.

The bigger picture

A microcontroller program repeatedly reads inputs, updates state and sets outputs. Its behaviour depends on electrical characteristics and timing as well as code. A correct-looking condition may behave poorly when a switch bounces or a sensor fluctuates.

  1. Read input
  2. Check range
  3. Update state
  4. Set output
A working model for this course. Use it to locate where a decision or failure occurs.

Concepts to keep close

Digital input
An input interpreted as discrete states within the device's electrical specifications.
Analogue reading
A numerical representation of a measured signal within a defined range.
Debouncing
Handling short repeated transitions so one physical action is not counted many times.

Reasoning through the problem

Identify the source of each signal.

Write the program's decision rule.

Name the output that changes.

Use the idea carefully

Check the board and component documentation before wiring. State the expected input range and the response to invalid readings. Trace timing explicitly, including repeated inputs. Test the logic in simulation, then verify hardware behaviour with suitable supervision; changing a variable on screen does not reproduce every electrical condition.

Further reading & course resources

Original documentation and teaching references for further investigation.