Curriculum topic

Input and Output

Input is information entering a system. Output is the visible, audible, or physical action the system produces.

Why it matters

A small idea that returns in larger systems.

Naming inputs and outputs helps students stop treating devices as magic. A key press is input; a moving sprite is output. A button is input; an LED or buzzer is output. Code connects them.

Real-world connection

A doorbell maps a button press to sound. A keyboard-controlled game and a microcontroller circuit use the same input-process-output structure with different materials.

The connection shows where the idea returns; it does not claim every advanced application is taught in this first topic.

Math and logic kernel

The structure beneath the project.

Input

A signal the program can read.

Processing

Rules that decide how the signal matters.

Output

An action people or other systems can observe.

Mapping

The deliberate connection between input and response.

Small examples

Make one relationship visible at a time.

1

Keyboard to movement

Map four keys to coordinate changes.

2

Button to buzzer

Produce sound while or after a button is pressed.

3

Timer to display

Show a measured result.

4

Sensor to motor

Change movement after a measurement.

Program connections

Where this topic appears.

Active now

Scratch & Game Design

Beginner-friendly programming through original games, animations, simulations, and interactive stories.

Active now

Robotics

Commands, sensors, simple electronics, simulations, and physical systems organized around Sense, Decide, Act.

Available later

Roblox Studio / Lua

A future bridge from visual programming to Lua, 3D objects, events, and larger game systems.

Common mistakes

Useful clues, not reasons to stop.

Input never read

The program defines an output but does not check the signal.

Output has no clear cause

Several inputs control the same action without priority.

Wrong pin or object

Code listens to a different input than the build uses.

No feedback

The user cannot tell whether the input was recognized.

Lesson and projects

Use the idea inside a working system.

Open Lesson
Robotics Guided Demonstration

LED Traffic Light

Design a timed traffic-light sequence, then add a pedestrian input or state rule.

  • Output
  • Sequences
  • Timing
  • Loops
Open project