Learning objective
Inputs & Sensors
Inputs & Sensors
Explore how digital systems collect data from human users and physical environments using buttons, keyboards, touchscreens, microcontrollers, and environmental sensors to trigger computational actions.
Step 1 (Y1)
Identify and use simple physical input devices (buttons, keys, touchscreens) to trigger digital responses.
Let's Go!
Learn
An input is how humans give instructions or data to a computer. When you press a keyboard key, tap a touchscreen, or click a mouse button, you create an input signal that tells the device what to do. In computing, digital devices respond to human physical inputs. As you explore the interactive Keyboard Mouse Simulator below, focus on how to explain that pressing a physical button sends an input signal to the computer.
Apply Simulator Skills โข Try it yourself
Interactive Input Hunt
๐ Open a practice space
Or try locally: ๐ Raspberry Pi micro:bit
๐ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)
๐ฏ Task Success Criteria (Rubric)
Identifies a button or key on a device.
Presses specific buttons or keys to trigger intended digital actions.
Explains that pressing a physical button sends an input signal to the computer.
Compares different input methods (mouse click vs touchscreen tap vs keyboard press) for controlling simple software.
๐ What A Good One Looks Like (WAGOLL)
When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!
Reflect
Learning check
Teacher setup, curriculum links and progress descriptors
Spark support
Routine: See-Think-Wonder
Teacher notes: Facilitate the See-Think-Wonder routine for 2โ3 minutes. Encourage students to connect the prompt to Form (Digital devices respond to human physical inputs.).
Achievement pathway
- Foundation: Identifies a button or key on a device.
- Developing: Presses specific buttons or keys to trigger intended digital actions.
- Secure: Explains that pressing a physical button sends an input signal to the computer.
- Mastering: Compares different input methods (mouse click vs touchscreen tap vs keyboard press) for controlling simple software.
Curriculum links
Curriculum strand: Algorithms and Programming
Outcome: INPT.01.B.1.1 โ Identify and use simple physical input devices (buttons, keys, touchscreens) to trigger digital responses.
PYP: Form ยท Digital devices respond to human physical inputs.
Learner profile: Inquirer
Competency tags
Gate support
Accessibility alternative: Students may verbally explain or point to the correct answer for "What is a computer input?" with a teacher or teaching assistant.
Teacher override: allow
Locked level
Level 2: Step 2 (Y2)
Complete the previous learning check to unlock this next level.
Step 2 (Y2)
Program software scripts to respond to specific keyboard key presses and mouse click coordinates.
Learning objective
Students will program visual block code scripts that respond to arrow keys, spacebar presses, and mouse-pointer coordinates.
Let's Go!
Learn
Computers continuously check for user input events. In block coding, 'When Key Pressed' or 'When Sprite Clicked' blocks act as listeners that run your code only when the matching input occurs. In computing, interactive software relies on structured user input events. As you explore the interactive Microcontroller Simulator below, focus on how to program scripts that combine mouse position tracking with click events.
| Sensor Input | Bus Type | Raw Digital | Converted Unit |
|---|---|---|---|
| โ๏ธ Photocell (Light) | Internal Matrix | 128 | 50% Lux |
| ๐ก๏ธ Thermistor (Temp) | I2C Subsystem | 490 | 24ยฐC |
| ๐ณ Accelerometer (X,Y,Z) | LSM303AGR I2C | (0, 0, 1024) | 1.0g Flat |
| ๐ GPIO Pin 0 | Edge Connector | 0 | 0.0V (Low) |
Apply Simulator Skills โข Try it yourself
Build an Input Controller
๐ Open a practice space
Or try locally: ๐ Raspberry Pi micro:bit
๐ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)
๐ฏ Task Success Criteria (Rubric)
Attaches a green flag event hat block to a sprite script.
Uses arrow key event blocks to move a sprite up, down, left, and right.
Programs scripts that combine mouse position tracking with click events.
Builds an interactive sketcher game where sprite movement dynamically follows the mouse pointer.
๐ What A Good One Looks Like (WAGOLL)
When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!
Reflect
Learning check
Teacher setup, curriculum links and progress descriptors
Spark support
Routine: Think-Pair-Share
Teacher notes: Facilitate the Think-Pair-Share routine for 2โ3 minutes. Encourage students to connect the prompt to Function (Interactive software relies on structured user input events.).
Achievement pathway
- Foundation: Attaches a green flag event hat block to a sprite script.
- Developing: Uses arrow key event blocks to move a sprite up, down, left, and right.
- Secure: Programs scripts that combine mouse position tracking with click events.
- Mastering: Builds an interactive sketcher game where sprite movement dynamically follows the mouse pointer.
Curriculum links
Curriculum strand: Algorithms and Programming
Outcome: INPT.02.B.1.2 โ Program software scripts to respond to specific keyboard key presses and mouse click coordinates.
PYP: Function ยท Interactive software relies on structured user input events.
Learner profile: Communicator
Competency tags
Gate support
Accessibility alternative: Students may verbally explain or point to the correct answer for "Which block detects when a user presses the spacebar?" with a teacher or teaching assistant.
Teacher override: allow
Locked level
Level 3: Step 3 (Y3)
Complete the previous learning check to unlock this next level.
Step 3 (Y3)
Use software sensing blocks to detect sprite collisions, touch colors, and distance to pointer.
Learning objective
Students will use sensing blocks (touching color, touching sprite, distance to pointer) within conditional loops to trigger software events.
Let's Go!
Learn
Sensing blocks act like the digital senses of your code. They return boolean true/false values (like 'touching wall?') or numerical values (like 'distance to mouse') that your code evaluates continuously inside loops. In computing, digital characters react dynamically when sensing their environment. As you explore the interactive Hardware Simulator below, focus on how to program collision detection where touching a specific color resets a sprite position.
| Component | Bus Interface | Bandwidth | Function |
|---|---|---|---|
| CPU | AM5 / LGA1700 | Direct Fabric | Executes calculations and OS kernel |
| RAM | DDR5 DIMM | 51.2 GB/s | Fast volatile working memory |
| NVMe SSD | M.2 PCIe 4.0 | 7,000 MB/s | Non-volatile persistent storage |
| GPU | PCIe 4.0 x16 | 31.5 GB/s | 3D Graphics rasterization & shaders |
| USB-C | Type-C 3.2 Gen2 | 10 Gbps | External high-speed data & 100W PD |
Apply Simulator Skills โข Try it yourself
Build a Maze Runner
๐ Open a practice space
Or try locally: ๐ Raspberry Pi micro:bit
๐ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)
๐ฏ Task Success Criteria (Rubric)
Identifies sensing blocks in the coding menu.
Inserts a 'touching edge' sensing block into an IF-THEN statement.
Programs collision detection where touching a specific color resets a sprite position.
Uses 'distance to mouse-pointer' sensing values to calculate variable speeds or sound volume.
๐ What A Good One Looks Like (WAGOLL)
When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!
Reflect
Learning check
Teacher setup, curriculum links and progress descriptors
Spark support
Routine: Connect-Extend-Challenge
Teacher notes: Facilitate the Connect-Extend-Challenge routine for 2โ3 minutes. Encourage students to connect the prompt to Connection (Digital characters react dynamically when sensing their environment.).
Achievement pathway
- Foundation: Identifies sensing blocks in the coding menu.
- Developing: Inserts a 'touching edge' sensing block into an IF-THEN statement.
- Secure: Programs collision detection where touching a specific color resets a sprite position.
- Mastering: Uses 'distance to mouse-pointer' sensing values to calculate variable speeds or sound volume.
Curriculum links
Curriculum strand: Algorithms and Programming
Outcome: INPT.03.B.1.3 โ Use software sensing blocks to detect sprite collisions, touch colors, and distance to pointer.
PYP: Connection ยท Digital characters react dynamically when sensing their environment.
Learner profile: Thinker
Competency tags
Gate support
Accessibility alternative: Students may verbally explain or point to the correct answer for "What type of value does the touching [sprite]? sensing block return?" with a teacher or teaching assistant.
Teacher override: allow
Locked level
Level 4: Step 4 (Y4)
Complete the previous learning check to unlock this next level.
Step 4 (Y4)
Connect microcontrollers (micro:bit / Makey Makey) and program buttons, tilt sensors, and light sensors.
Learning objective
Students will read and process physical sensor inputs (accelerometer tilt, ambient light, button A/B) on microcontrollers.
Let's Go!
Learn
Microcontrollers like the BBC micro:bit contain built-in physical sensors: accelerometers detect motion and tilt, light sensors measure brightness, and thermistors measure temperature. They convert physical energy into digital numbers. In computing, external hardware sensors collect real-world physical data for digital systems. As you explore the interactive Microcontroller Simulator below, focus on how to use accelerometer tilt sensor inputs (tilt left/right/up/down) to control game movement.
| Sensor Input | Bus Type | Raw Digital | Converted Unit |
|---|---|---|---|
| โ๏ธ Photocell (Light) | Internal Matrix | 128 | 50% Lux |
| ๐ก๏ธ Thermistor (Temp) | I2C Subsystem | 490 | 24ยฐC |
| ๐ณ Accelerometer (X,Y,Z) | LSM303AGR I2C | (0, 0, 1024) | 1.0g Flat |
| ๐ GPIO Pin 0 | Edge Connector | 0 | 0.0V (Low) |
Apply Simulator Skills โข Try it yourself
Program a Digital Compass & Alarm
๐ Open a practice space
Or try locally: ๐ Raspberry Pi micro:bit
๐ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)
๐ฏ Task Success Criteria (Rubric)
Connects a micro:bit via USB and identifies Button A and Button B.
Programs micro:bit LED displays to respond when Button A or B is pressed.
Uses accelerometer tilt sensor inputs (tilt left/right/up/down) to control game movement.
Constructs a physical nightlight project using ambient light level sensor thresholds.
๐ What A Good One Looks Like (WAGOLL)
When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!
Reflect
Learning check
Teacher setup, curriculum links and progress descriptors
Spark support
Routine: I Used to Think... Now I Think...
Teacher notes: Facilitate the I Used to Think... Now I Think... routine for 2โ3 minutes. Encourage students to connect the prompt to Responsibility (External hardware sensors collect real-world physical data for digital systems.).
Achievement pathway
- Foundation: Connects a micro:bit via USB and identifies Button A and Button B.
- Developing: Programs micro:bit LED displays to respond when Button A or B is pressed.
- Secure: Uses accelerometer tilt sensor inputs (tilt left/right/up/down) to control game movement.
- Mastering: Constructs a physical nightlight project using ambient light level sensor thresholds.
Curriculum links
Curriculum strand: Algorithms and Programming
Outcome: INPT.04.B.1.4 โ Connect microcontrollers (micro:bit / Makey Makey) and program buttons, tilt sensors, and light sensors.
PYP: Responsibility ยท External hardware sensors collect real-world physical data for digital systems.
Learner profile: Principled
Competency tags
Gate support
Accessibility alternative: Students may verbally explain or point to the correct answer for "Which sensor on a micro:bit detects when the board is shaken or tilted?" with a teacher or teaching assistant.
Teacher override: allow
Locked level
Level 5: Step 5 (Y5)
Complete the previous learning check to unlock this next level.
Step 5 (Y5)
Calibrate analog environmental sensors (temperature, moisture, sound) and set conditional threshold triggers.
Learning objective
Students will collect continuous analog sensor values (0-1023 / 0-255), calibrate baseline thresholds, and trigger automated outputs.
Let's Go!
Learn
Unlike digital inputs (which are on or off), analog sensors provide a continuous range of numbers. Programmers define 'threshold values'โspecific cut-off numbersโthat trigger automated responses when environmental conditions change. In computing, environmental sensors enable automated monitoring and sustainable interventions. As you explore the interactive Microcontroller Simulator below, focus on how to program threshold logic (e.g. IF moisture < 300 THEN turn on water pump motor).
| Sensor Input | Bus Type | Raw Digital | Converted Unit |
|---|---|---|---|
| โ๏ธ Photocell (Light) | Internal Matrix | 128 | 50% Lux |
| ๐ก๏ธ Thermistor (Temp) | I2C Subsystem | 490 | 24ยฐC |
| ๐ณ Accelerometer (X,Y,Z) | LSM303AGR I2C | (0, 0, 1024) | 1.0g Flat |
| ๐ GPIO Pin 0 | Edge Connector | 0 | 0.0V (Low) |
Apply Simulator Skills โข Try it yourself
Build a Smart Weather Station
๐ Open a practice space
Or try locally: ๐ Raspberry Pi micro:bit
๐ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)
๐ฏ Task Success Criteria (Rubric)
Reads live sensor value printouts on a digital screen console.
Maps raw sensor readings to meaningful units (e.g. sound level decibels, temperature degrees).
Programs threshold logic (e.g. IF moisture < 300 THEN turn on water pump motor).
Calibrates dual-sensor automation systems (e.g. smart greenhouse regulating temperature and light).
๐ What A Good One Looks Like (WAGOLL)
When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!
Reflect
Learning check
Teacher setup, curriculum links and progress descriptors
Spark support
Routine: 4 Cs (Connections, Concepts, Changes, Challenges)
Teacher notes: Facilitate the 4 Cs (Connections, Concepts, Changes, Challenges) routine for 2โ3 minutes. Encourage students to connect the prompt to Perspective (Environmental sensors enable automated monitoring and sustainable interventions.).
Achievement pathway
- Foundation: Reads live sensor value printouts on a digital screen console.
- Developing: Maps raw sensor readings to meaningful units (e.g. sound level decibels, temperature degrees).
- Secure: Programs threshold logic (e.g. IF moisture < 300 THEN turn on water pump motor).
- Mastering: Calibrates dual-sensor automation systems (e.g. smart greenhouse regulating temperature and light).
Curriculum links
Curriculum strand: Algorithms and Programming
Outcome: INPT.05.B.1.5 โ Calibrate analog environmental sensors (temperature, moisture, sound) and set conditional threshold triggers.
PYP: Perspective ยท Environmental sensors enable automated monitoring and sustainable interventions.
Learner profile: Knowledgeable
Competency tags
Gate support
Accessibility alternative: Students may verbally explain or point to the correct answer for "What is a 'threshold value' in sensor programming?" with a teacher or teaching assistant.
Teacher override: allow
Locked level
Level 6: Step 6 (Y6)
Complete the previous learning check to unlock this next level.
Step 6 (Y6)
Design Internet of Things (IoT) systems that log environmental sensor data over time and transmit telemetry.
Learning objective
Students will build IoT data-logging pipelines that record sensor streams at timed intervals, store dataset tables, and analyze trends.
Let's Go!
Learn
The Internet of Things (IoT) connects physical sensors to cloud networks. Automated sensors gather environmental data continuously, log historical trends, and allow remote monitoring and automated decision-making across global infrastructure. In computing, connected sensor networks transform raw physical environmental data into actionable insights. As you explore the interactive Python Console Simulator below, focus on how to export logged sensor datasets to CSV format and generates trend graphs.
Type Python code in the IDE to view real-time AST node tree parsing.
| Identifier | Type | Value | Scope |
|---|---|---|---|
| No active variables in memory. Assign variables (e.g. score = 100) to inspect. | |||
Apply Simulator Skills โข Try it yourself
Design an Environmental IoT Logger
๐ Open a practice space
Or try locally: ๐ Raspberry Pi micro:bit
๐ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)
๐ฏ Task Success Criteria (Rubric)
Logs sensor readings manually into a spreadsheet table.
Programs automated code to sample and log sensor values every 5 seconds.
Exports logged sensor datasets to CSV format and generates trend graphs.
Evaluates sensor data accuracy, identifies noise/outliers, and designs automated IoT alert systems.
๐ What A Good One Looks Like (WAGOLL)
When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!
Reflect
Learning check
Teacher setup, curriculum links and progress descriptors
Spark support
Routine: PMI (Plus, Minus, Interesting)
Teacher notes: Facilitate the PMI (Plus, Minus, Interesting) routine for 2โ3 minutes. Encourage students to connect the prompt to Reflection (Connected sensor networks transform raw physical environmental data into actionable insights.).
Achievement pathway
- Foundation: Logs sensor readings manually into a spreadsheet table.
- Developing: Programs automated code to sample and log sensor values every 5 seconds.
- Secure: Exports logged sensor datasets to CSV format and generates trend graphs.
- Mastering: Evaluates sensor data accuracy, identifies noise/outliers, and designs automated IoT alert systems.
Curriculum links
Curriculum strand: Algorithms and Programming
Outcome: INPT.06.B.1.6 โ Design Internet of Things (IoT) systems that log environmental sensor data over time and transmit telemetry.
PYP: Reflection ยท Connected sensor networks transform raw physical environmental data into actionable insights.
Learner profile: Reflective
Competency tags
Gate support
Accessibility alternative: Students may verbally explain or point to the correct answer for "What is the primary function of an IoT data logger?" with a teacher or teaching assistant.
Teacher override: allow




