Back to your course / CR1-S02
Computing and Robotics · 1.º ESO · Learn
My first smart machine
Across nine paired sessions you will connect programs with changes in the environment. Learn what information an input provides, what the program decides and how an output communicates. Smart in the title describes an automatic classroom device; this project’s rule is not a trained AI model.
Your mission
Design and build ‘A smart device to improve our surroundings’ with micro:bit and MakeCode. Justify a nearby need, an input, a rule and an understandable output. Include a physical microtest, two real conditions with a return, boundary cases, an improvement and component reuse. If only simulation is available, identify the physical evidence still pending.

Read the explanation, study the diagram and try the activity in each section. You can choose another version at any time.
Your tools
Use Google Docs for written explanations and diagrams.net for diagrams. Save the editable file as well as the evidence requested in each task.
2.1. Input, processing and output
Learn · theory and practice
Physical computing connects instructions with elements of the material world. An input supplies information, such as a button’s state or a movement reading. The controller runs the program that interprets that value. An output communicates or causes an effect: lighting an LED, showing a symbol or moving a mechanism. A sensor obtains information about a physical feature; an actuator produces a physical effect. These roles are related but not interchangeable. A connected component is not necessarily being read by the program, nor does its presence guarantee a prepared response.
The input, processing and output chain describes information. Power supplies energy for operation and should be represented separately in connection drawings. A USB cable can serve both purposes, but receiving energy does not prove that new code was transferred. Before assembly, identify the change you want to detect and who will interpret the result. An output can be technically correct yet unhelpful if nobody understands its alert. The functional diagram helps review the idea without confusing component count with solution quality.
- Physical change
- Input
- Controller program
- Output
- Interpretation
A model alerts when a tray moves. The accelerometer supplies movement information; a rule decides when to display an arrow. Changing the arrow does not change the detected input. Removing the rule means an available sensor produces no alert. The diagram helps identify which part to inspect when detection, decision-making or communication fails.
- In Google Docs analyze a streetlight and an automatic door: detected change, input, controller and output.
- In diagrams.net draw the information chain of your own alert and represent power with a separate label.
- Explain to your partner which part you would change to detect another situation and which to communicate the same result more clearly.
Why does a lit LED not prove that the program is reading the light sensor?
2.2. Board, simulator and transfer
Learn · theory and practice
The micro:bit integrates an LED matrix, buttons and sensors we can program in MakeCode. Board version matters: a built-in microphone and speaker are available on versions that include them, not on every micro:bit. Identify the available equipment before choosing inputs and outputs. In MakeCode, on start prepares a response once, while button events run their instructions when triggered. A simple starting symbol helps check that we recognize the environment and know what should appear at startup.
The simulator represents the board and lets us change inputs to test logic. It does not check power, cables or every physical component’s behavior. Transferring loads code onto the board using the classroom procedure; it must then be tested there. A charge-only cable may supply energy without carrying data. If old code remains, inspect the file and transfer before rebuilding the algorithm. Keep a copy you can reopen in MakeCode and check its contents. A filename or photograph does not guarantee that the latest version was saved.
- Saved blocks
- Simulated trial
- Transfer
- Physical execution
The simulator shows a letter while the board retains an earlier drawing. Adding conditions does not reveal whether the new program arrived. The team changes a visible startup marker, saves and repeats the classroom transfer procedure. It then compares simulator and board. This test separates a loading problem from a possible error in the instructions.


Microbit: Primeros pasos Microbit
Watch in short sections. Connect one explanation with the diagram and try the example in this section. The written theory lets you complete the activity without playing the video.
The video keeps its original spoken language. Use the captions available in the player if they help.
- Identify the micro:bit version with the teacher and record available inputs and outputs in Google Docs.
- In MakeCode program a startup icon, one response to A and another to B; predict and check in the simulator.
- Save, transfer using the classroom procedure and repeat checks on the board; label each result as simulated or physical.
If the board has power but does not show your new version, what would you check before changing the algorithm?
2.3. Sensors, scales and measurement conditions
Learn · theory and practice
A reading is the value obtained when we query an input. The micro:bit uses part of its LED matrix to detect light, represented by MakeCode from 0 to 255. This is a relative reading scale, not a measurement in lux. Orientation, shadows and location affect the result. MakeCode’s reference warns that the first query returns zero while light sensing is activated; inspect subsequent readings before concluding that it is dark. An initial zero and a later measured zero need context.
Temperature is estimated from the processor’s sensor and expressed in degrees Celsius, but this does not make the board a clinical thermometer. The accelerometer provides acceleration information and supports gesture detection; a shake does not describe every exact position. If the model includes sound input, check what its scale represents before assigning units. Collect several readings under similar conditions. Five per condition reveal variation and possible overlaps. The table must explain how each value was obtained and distinguish physical measurement from simulator controls.
- Physical condition
- Sensor
- Repeated readings
- Scale and context
- Interpretation
Two pairs compare light, but one points the matrix toward a window and the other toward the floor. Their numbers cannot attribute the whole difference to the cover used. The team agrees on orientation, initializes sensing and repeats the series. It invents no results: it records observed values and describes the procedure so another pair can repeat the comparison.
Sensores básicos: nivel de luz. Ejercicios con Rodrigo.
Watch in short sections. Connect one explanation with the diagram and try the example in this section. The written theory lets you complete the activity without playing the video.
The video keeps its original spoken language. Use the captions available in the player if they help.
- In MakeCode initialize light sensing and record five uncovered and five covered readings in Google Docs, keeping orientation stable and not pressing components.
- Observe temperature and a movement gesture using the prepared setup; record what each input represents and one limitation.
- Compare the two light series for separation or overlap; use sound only if the board includes it and the classroom setup supports it.
Why can you not write ‘100 lux’ when the light block reports 100, or treat an initial zero as sufficient evidence of darkness?
2.4. Read again and decide using a threshold
Learn · theory and practice
A threshold is a value we choose to separate cases and give each one a different response. The comparison determines the boundary: if we ask whether a reading is less than the threshold, an exactly equal value does not satisfy that condition. It belongs to the other alternative. An if / else structure assigns a response to both cases. Understanding this relationship lets us explain behavior at the boundary instead of leaving equality without a planned decision.
The chosen value needs justification. In the numerical trial we use 50 and check 49, 50 and 51 to investigate the rule with known inputs. These numbers are simulated, rather than classroom measurements or a setting suitable for every device. The physical threshold is chosen from observed series, with five readings per condition. If the series overlap substantially, a boundary may distinguish them poorly; reviewing measurement conditions helps us understand the problem before changing the number.
As well as comparing correctly, the program needs current information. A variable retains the last value stored: querying the sensor only before forever makes repeated decisions use an old value. Inside the loop, reading, storing, comparing and updating the output connects each response with a new query. A short pause makes the alert easier to observe, but delays that sequence’s next check. Its duration depends on the tested use. This automatic behavior applies a human-written rule; it does not involve training an artificial intelligence model.
- New reading
- Updated variable
- Comparison
- Alert
- Next reading
In a simulated trial, an indicator changes its alert using a test variable. The team chooses a boundary and prepares lower, equal and higher values. Two separate strict comparisons may omit equality. A case table reveals that gap before any transfer. The physical boundary must later be chosen using actual device measurements.
04 Microbit introducción a los condicionales luz automática
Watch in short sections. Connect one explanation with the diagram and try the example in this section. The written theory lets you complete the activity without playing the video.
The video keeps its original spoken language. Use the captions available in the player if they help.
- In diagrams.net draw reading, variable, comparison, two alternatives and return to reading; insert the PNG in Google Docs.
- In MakeCode test the teaching boundary 50 with simulated inputs 49, 50 and 51; state where equality belongs and record predictions.
- Build the version that rereads inside the loop and uses a threshold justified by your series; test change and return and record the pause’s effect.
What observable difference separates repeating a decision from also repeating the reading that supplies it?
2.5. From physical variation to a digital decision
Learn · theory and practice
Illumination can change gradually even when an alert shows only two responses. To understand this difference, we distinguish the physical feature, the sensor’s signal and the value used by the program. A sensor transforms an environmental variation into a signal: an analog signal represents variation within a range, while a digital signal uses defined states. Querying the input gives us a manageable representation, such as a number. Integer numbers do not mean physical illumination has been reduced to on or off.
The reduction to two cases happens when we apply a rule. Several different readings can produce the same alert because they remain on the same side of the threshold. The number can therefore change while the icon stays the same without anything being faulty. Showing readings helps investigate variation; showing a symbol can help someone understand what to do. The two presentations serve different needs. Keeping trial data lets us justify the decision even when the everyday interface displays only the alert.
Interpreting the value requires knowing the particular input. Its documentation explains the signal it uses and the meaning of its result; analog or digital alone does not specify the voltage a connection accepts. Nor does zero always establish that a device is missing: it may be a valid reading or a documented initial behavior. This information connects environmental changes with what appears on screen and helps us choose a response based on the value’s meaning.
- Physical variation
- Signal
- Read value
- Rule
- Two alert states
A reading graph changes in small steps, while an icon stays unchanged until a boundary is crossed. This does not mean the sensor stopped working: several readings belong to the same rule case. Comparing number and icon explains what information each representation retains and which variations are hidden when the user sees only two responses.
- Using workshop readings, draw physical variation, signal, value and two-case decision in diagrams.net.
- In MakeCode alternate the prototype’s reading and icon display; record in Google Docs what each view communicates.
- Consult the specification of an input prepared by the teacher and record signal type, value meaning and information still needed before connection.
If the number changes but the icon does not, what relationship between value and rule could explain it without assuming a fault?
2.6. Connect compatible components
Learn · theory and practice
An external component needs suitable power, reference and signal connections for its model. GND is the circuit’s common potential reference. Supply voltage and the permitted signal level are different facts: correctly powering a module does not guarantee that its signal is compatible with the board. Connector appearance or kit brand does not prove compatibility either. The specification must identify the exact reference, connections, adapter and programming environment. Without that information, we cannot draw a connection as though it had been validated.
Motors and servos may require specific power supplies and controllers. A pin sending an instruction does not replace a source capable of delivering the required energy. ACEBOTT stations use only assemblies and adapters reviewed by the teacher. Echidna Black2 uses its own connections and environment; comparing inputs and outputs does not make programs interchangeable. Assemble without power and request review before connection. If compatibility has not been established, use integrated sensors or the prepared independent station and record that alternative.
- Exact reference
- Electrical specification
- Reviewed adaptation
- Unpowered assembly
- Supervised trial
Two modules are sold as light detectors and their connectors look alike. That tells us nothing about power, signal or library requirements. The pair prepares a comparison sheet and finds an unverified detail. It keeps the integrated sensor for the trial, investigating input and decision without claiming to have made an undocumented connection.
8. Cómo CONECTAR SENSORES a la MICROBIT y PROGRAMARLOS | Curso de ROBÓTICA para NIÑOS
Watch in short sections. Connect one explanation with the diagram and try the example in this section. The written theory lets you complete the activity without playing the video.
The video keeps its original spoken language. Use the captions available in the player if they help.
- In Google Docs complete a prepared-station sheet: reference, input or output, power, GND, signal, adapter and environment; mark unverified details.
- Draw documented connections in diagrams.net and check them with the teacher before unpowered assembly.
- Run the supervised microtest or use the integrated alternative; record effect, conditions and whether you observed an independent station.
Which two electrical checks remain necessary even if a connector fits?
2.7. A prototype someone can use
Learn · theory and practice
A prototype is a version for testing an idea before treating it as finished. Begin with a specific need and user: who needs the alert, in which situation and what they should do when they see it. This description gives input and output choices a purpose. A more striking display does not necessarily improve understanding. Symbol, placement and instructions must communicate the alert’s meaning and limits. We can ask another pair to interpret it without first explaining our intention.
Construction also affects operation. A support that changes sensor orientation can alter readings, and a casing can hide the display. Keep controls accessible and avoid forcing parts. Define an improvement and a related test: comprehension for a message change, stability for a placement change. Repeat comparable conditions before and after. Finally, plan disassembly and reuse of the board and materials. Explaining an observed limitation is part of design: distinguishing two tested conditions does not prove that the device works everywhere.
- Need
- Requirement
- Prototype
- Observed use
- Verified improvement
An alert works, but another pair reads its drawing as decoration. The team adds a brief instruction and repeats the interpretation test. If the user now explains what to do, that supports a communication improvement. It does not prove better sensing, because the input did not change. Separating the conclusions describes each modification’s contribution accurately.
- In Google Docs define user, need, testable requirement and one prototype limitation.
- In diagrams.net draw board, display and control placement; review any physical assembly with the teacher.
- Test interpretation with another pair, make an improvement and repeat; record how components will be disassembled and reused.
If you improve the alert’s wording, what test is needed and what can you not conclude about the sensor?
2.8. Evidence of change, return and improvement
Learn · theory and practice
An acceptance test compares a prototype with a requirement written beforehand. One photograph cannot demonstrate that an environmental alert is automatic. Observe at least two conditions and return to an earlier one without restarting. This return helps reveal a stale reading or a stuck program. Record condition, value, expected response, observed response and conclusion. Numerical boundary cases can be tested with known simulated inputs without presenting them as exact physical measurements reproduced on the board.
Evidence must state where each test ran. Simulation investigates logic; the board supplies evidence of material interaction. If equipment is unavailable, document completed and pending work without changing labels. Missing or uninterpretable readings are examined through the prepared procedure, without unplugging powered modules or inventing error values. Debug by changing one cause at a time and repeating the case. A01 combines design and a first physical microtest; A02 includes the device, record, instructions and improvement. Each partner explains the functional chain and a personal decision.
- Condition A
- Response A
- Condition B
- Response B
- Verified return
A team keeps only a picture of the starting icon. It then tests uncovering, covering and uncovering the matrix, recording the response without restarting. This sequence checks updating and return. The table need not pretend readings match ideal numbers: it records observations and separately identifies the simulated equality test for the rule.
- In Google Docs create an acceptance table with two real conditions, return, boundary and missing-input response using the prepared procedure.
- Run the MakeCode prototype and label each trial physical or simulated; mark unavailable tests pending with a reason.
- Record a fault, hypothesis, correction and retest; compare an improvement and individually explain input, decision and output.
What does returning without restarting demonstrate that a picture of the starting output does not?
Your project and submissions
A01 · Design the solution
- In Google Docs use the page’s A01 template and current name CYR1_S02_Apellidos, identifying A01. Describe need and user.
- Include input, value, condition, output, algorithm, materials and sketch; draw the functional chain and documented connections in diagrams.net.
- Add a physical microtest from workshops 03 or 04 with reading, output and result; explain hardware, program and the difference between signal variation and digital decision.
- Plan acceptance for two conditions and return, boundary and missing input as appropriate; justify compatibility, reuse, sources and individual contribution.
What to submit
- A01 dossier with sketch, functional diagram and exact component sheet.
- Physical microprototype with recoverable code and a reading-response record; distinguish any simulation-only part.
- Algorithm with repeated reading, variable and alternatives, test plan, sources and individual explanation.
A02 · A smart device to improve our surroundings
- Build the revised design unpowered and obtain teacher review; program in MakeCode and retain recoverable CYR1_S02_Microbit_Apellidos.
- Test low and high conditions and return without restarting; also test below, at and above the threshold using known inputs and the planned missing-input case. Label simulation and board tests.
- Record expected and observed results, a discrepancy’s cause, correction and retest; verify an improvement and a physical limitation.
- Submit code, diagram, photograph without people, instructions, record, sources and reuse plan. Each partner explains a decision and a modification.
What to submit
- Integrated device and editable project or verified file reopening in MakeCode.
- Demonstrated physical conditions and return; numerical boundaries and missing-input procedure with environments identified.
- Repair and improvement record, instructions, sources and contributions; published rubrics remain the assessment reference.
Before you submit
- I separate information and energy and explain sensor, controller and output.
- I identify scale and unit without treating light readings as lux.
- I justify my threshold, equality case and repeated reading using data and traces.
- I distinguish simulation from physical evidence and do not infer compatibility from a connector.
- I demonstrate change and return, explain an improvement and plan reuse. These are self-assessment aids, not regulatory wording.
Templates and files
Open the blank A01 or A02 template and make your own copy in Google Docs. Keep the editable file from your project platform as well.
These reusable templates help you organise your work. Follow the specific instructions and evidence list for this unit; remove fields that do not apply. The blank master is read-only. Keep your answers private and share them only as your teacher instructs.
A01 · Design the solution
Make your own copy in Google Docs · View the blank template
- A01 dossier with sketch, functional diagram and exact component sheet.
- Physical microprototype with recoverable code and a reading-response record; distinguish any simulation-only part.
- Algorithm with repeated reading, variable and alternatives, test plan, sources and individual explanation.
A02 · A smart device to improve our surroundings
Make your own copy in Google Docs · View the blank template
- Integrated device and editable project or verified file reopening in MakeCode.
- Demonstrated physical conditions and return; numerical boundaries and missing-input procedure with environments identified.
- Repair and improvement record, instructions, sources and contributions; published rubrics remain the assessment reference.
Classroom rubrics
The classroom assessment reference is preserved below in its original Spanish. Use the checklist above to prepare your work and ask your teacher about any descriptor you need to clarify.
Consultar la rúbrica de A01
Diseño y microprueba
CYR.1.1.1 Entrada, procesamiento y salida de microbit
Comprender el funcionamiento global de los sistemas de computación física, sus componentes y principales características.
Evidencia. Esquema funcional, ficha de componentes y microprueba física con lectura y salida.
| Banda | Desempeño observable |
|---|---|
| 1–2,9 | Confunde sensor y salida y no relaciona la lectura con la respuesta de la placa. |
| 3–4,9 | Reconoce la placa, pero intercambia entrada y procesamiento o presenta solo una imagen del simulador como montaje real. |
| 5–6,9 | Identifica hardware y programa, entrada, procesamiento y salida. Explica una microprueba física y una diferencia básica entre señal continua y decisión digital. |
| 7–8,9 | Relaciona variaciones observadas de luz con el dato y la salida, señalando qué cambia en simulación y en placa. |
| 9–10,0 | Compara otra entrada disponible y justifica cómo conservaría el recorrido funcional sin suponer compatibilidad eléctrica. |
CYR.1.1.3 Lectura repetida y decisión por umbral
Entender la estructura básica de un programa informático.
Evidencia. Algoritmo y microprograma con variable luz, repetición y dos alternativas.
| Banda | Desempeño observable |
|---|---|
| 1–2,9 | La propuesta no actualiza la lectura y no puede explicar por qué el aviso permanece igual. |
| 3–4,9 | Incluye condición, pero omite la igualdad o actualiza el dato solo al inicio sin advertirlo. |
| 5–6,9 | Lee dentro de la repetición, usa variable y condición con igualdad definida y ejecuta una primera prueba. |
| 7–8,9 | Traza 49, 50 y 51 para el umbral de ejemplo y explica por qué cambia el resultado. |
| 9–10,0 | Modifica el umbral a partir de lecturas y predice correctamente una nueva secuencia antes de ejecutarla. |
CYR.1.3.1 Prototipo físico útil y reutilizable
Ser capaz de construir un sistema de computación o robótico, promoviendo la interacción con el mundo físico en el contexto de un problema del mundo real, de forma sostenible.
Evidencia. Necesidad próxima, boceto, materiales y microprototipo físico del taller.
| Banda | Desempeño observable |
|---|---|
| 1–2,9 | El diseño no relaciona la placa con una necesidad ni aporta una comprobación física identificable. |
| 3–4,9 | Propone una necesidad, pero no conecta dato y aviso o solo promete construir más adelante. |
| 5–6,9 | Vincula una necesidad con sensor y aviso, ejecuta una microprueba física y prevé montaje validado y reutilización de componentes. |
| 7–8,9 | Revisa el boceto tras comprobar si otra persona interpreta el aviso y documenta el cambio. |
| 9–10,0 | Compara dos formas de comunicar el aviso y elige con evidencia de comprensión y uso de recursos. |
Consultar la rúbrica de A02
Producto pruebas y mejora
CYR.1.1.1 Entrada, procesamiento y salida de microbit
Comprender el funcionamiento global de los sistemas de computación física, sus componentes y principales características.
Evidencia. Montaje, esquema y demostración de dos condiciones y su retorno.
| Banda | Desempeño observable |
|---|---|
| 1–2,9 | No identifica qué componente obtiene el dato o atribuye al sensor una actuación que corresponde al programa. |
| 3–4,9 | Nombra componentes, pero no explica cómo la nueva lectura modifica la salida o confunde escala de luz con lux. |
| 5–6,9 | Describe componentes y características, distingue dato y decisión y demuestra entrada, proceso y salida en la placa. |
| 7–8,9 | Explica una variación física del ensayo y comprueba su efecto manteniendo otras condiciones. |
| 9–10,0 | Compara una alternativa de entrada o salida y anticipa con fundamento qué habría que validar para sustituirla. |
CYR.1.1.3 Lectura repetida y decisión por umbral
Entender la estructura básica de un programa informático.
Evidencia. Código editable, casos bajo en y sobre el umbral, prueba de retorno.
| Banda | Desempeño observable |
|---|---|
| 1–2,9 | El código no relaciona lectura y aviso o no puede localizar la condición responsable. |
| 3–4,9 | El aviso responde una vez, pero falla al volver a la condición inicial o deja un valor sin respuesta. |
| 5–6,9 | El programa relee, decide y actualiza. Comprueba los dos casos, el límite y el regreso a una condición previa. |
| 7–8,9 | Corrige un fallo de actualización o comparación y demuestra la reparación repitiendo los casos afectados. |
| 9–10,0 | Reformula el aviso para otra necesidad y explica con predicciones qué instrucciones se conservan y cuáles cambian. |
CYR.1.3.1 Prototipo físico útil y reutilizable
Ser capaz de construir un sistema de computación o robótico, promoviendo la interacción con el mundo físico en el contexto de un problema del mundo real, de forma sostenible.
Evidencia. Dispositivo integrado, pruebas físicas, mejora y desmontaje o reutilización prevista.
| Banda | Desempeño observable |
|---|---|
| 1–2,9 | El dispositivo no interactúa con el entorno según el requisito y no explica su utilidad. |
| 3–4,9 | Hay montaje, pero no se comprueba una respuesta automática o se omite una condición física necesaria. |
| 5–6,9 | Construye el aviso con montaje revisado, demuestra respuesta a dos condiciones reales y retorno, y justifica uso y reutilización. |
| 7–8,9 | Mejora el aviso o su umbral a partir de resultados y verifica nuevamente el comportamiento físico. |
| 9–10,0 | Contrasta una alternativa de diseño con necesidades del usuario y recursos, y explica límites que la prueba no permite superar. |
Videos, resources and sources
Condicionales – MakeCode – micro:bit
Watch in short sections. Connect one explanation with the diagram and try the example in this section. The written theory lets you complete the activity without playing the video.
The video keeps its original spoken language. Use the captions available in the player if they help.
Keep learning
- Microsoft MakeCode · Light Level
- Microsoft MakeCode · Temperature
- Micro:bit Educational Foundation · Sensors
- Micro:bit Educational Foundation · Transfer code
- Micro:bit Educational Foundation · Safety
- Micro:bit developer resources · Edge connector and pinout
Editorial revision: October 2026.
