Inicio / Sesión 3
0/0
Sesión 3 · Miércoles 1 de julioSession 3 · Wednesday, July 1

El robot que decideThe robot that decides

Hasta hoy tu robot seguía un guion fijo. Ahora le das un cerebro: con el bloque si / si no y un bucle, el robot decide solo qué hacer según lo que siente. Arranca cuando lo aprietas, esquiva los obstáculos y se detiene al llegar a su meta — sin que tú le digas cada paso.Until today your robot followed a fixed script. Now you give it a brain: with the if / else block and a loop, the robot decides on its own what to do based on what it senses. It starts when you press it, dodges obstacles and stops when it reaches its goal — without you telling it every step.

2 horas2 hours Si / si no · BuclesIf / else · Loops Los 3 sensores juntosAll 3 sensors together La sesión más conceptualThe most conceptual session
Roles de hoy (Sesión 3): Integrante 1 → Ing. de pruebas · Integrante 2 → Constructor · Integrante 3 → Programador. Rotaron otra vez — hoy cierras el ciclo de roles.Today's roles (Session 3): Member 1 → Test engineer · Member 2 → Builder · Member 3 → Programmer. They rotated again — today you complete the role cycle.
Vocabulary (inglés) — palabras de hoy:Today's vocabulary: if · else · loop · forever · detect · decide · avoid · obstacle · press.
Listening: tu profe te da el reto en inglés — escucha y prográmalo:your teacher gives you the challenge in English — listen and program it: “Press the button to start. If your robot detects an obstacle, it turns. When it sees red, it stops.”
Sesión conceptual — cuida la energía. El si / si no es abstracto. Empieza con el juego sin robot (abajo), mantén el build corto y deja tiempo para que jueguen con su propia decisión. Al final se desarma: protege los últimos ~13 minutos.Conceptual session — mind their energy. If / else is abstract. Start with the unplugged game (below), keep the build short and leave time for them to play with their own decision. It's taken apart at the end: protect the last ~13 minutes.
Plan docente · Modelo 5E de LEGOTeacher plan · LEGO 5E model

Las 2 horas, con tiempos realesThe 2 hours, with real timing

La clave hoy: bajar lo abstracto antes de tocar la app. El juego del “si / si no humano” hace que el concepto entre por el cuerpo. Build corto → toda la energía a la lógica y a la creatividad.The key today: lower the abstraction before touching the app. The “human if / else” game makes the concept physical. Short build → all the energy goes to logic and creativity.

0:00 – 0:12 · Bienvenida0:00 – 0:12 · Welcome

Apertura, rotación de roles y entrega de kitsOpening, role rotation and handing out kits

Repaso corto de los sensores de ayer. Rotan los roles (hoy cierran el ciclo). Cada equipo recibe su SPIKE Prime.Quick recap of yesterday's sensors. Roles rotate (they complete the cycle today). Each team gets its SPIKE Prime.

0:12 – 0:22 · Involucrar (5E)0:12 – 0:22 · Engage (5E)

Juego: el “si / si no humano” (sin robot)Game: the “human if / else” (unplugged)

Tú das una condición en inglés y ellos ejecutan con el cuerpo: “If I say red, sit down. Else, stand up.” Cambia rápido. El concepto entra jugando, antes de pelear con la app.You call out a condition in English and they act it out: “If I say red, sit down. Else, stand up.” Go fast. The concept lands through play, before fighting with the app.

0:22 – 0:45 · Explorar (5E)0:22 – 0:45 · Explore (5E)

Armar la base + montar los 3 sensoresBuild the base + mount the 3 sensors

Base con ruedas simple (2 motores). Montan los 3 sensores: distancia al frente, color abajo, fuerza arriba como botón. Build corto a propósito.A simple wheeled base (2 motors). They mount the 3 sensors: distance at the front, color underneath, force on top as a button. Deliberately short build.

0:45 – 1:00 · Explicar (5E)0:45 – 1:00 · Explain (5E)

El bloque si / si no + el bucle por siempreThe if / else block + the forever loop

Conecta el juego con los bloques: el robot “pregunta” y decide, y el por siempre hace que pregunte sin parar. Muestra un ejemplo en vivo antes de soltarlos.Connect the game to the blocks: the robot “asks” and decides, and the forever loop makes it ask nonstop. Show one live example before letting them go.

1:00 – 1:30 · Elaborar (5E)1:00 – 1:30 · Elaborate (5E)

Programar “el robot que decide”, por capasProgram “the robot that decides”, layer by layer

Capa 1: arranca con el botón (fuerza). Capa 2: esquiva obstáculos (distancia + si/si no + por siempre). Capa 3: para en la meta (color). Una capa a la vez.Layer 1: start with the button (force). Layer 2: dodge obstacles (distance + if/else + forever). Layer 3: stop at the goal (color). One layer at a time.

1:30 – 1:45 · Elaborar (5E)1:30 – 1:45 · Elaborate (5E)

Tu propia decisión (creatividad)Your own decision (creativity)

Cada equipo agrega una decisión propia: “si aprietan dos veces → baila”, “si ve azul → gira”. Aquí es donde brillan — déjalos jugar.Each team adds its own decision: “if pressed twice → dance”, “if it sees blue → spin”. This is where they shine — let them play.

1:45 – 1:58 · Evaluar (5E)1:45 – 1:58 · Evaluate (5E)

Bitácora, desarmar y elegir para la FeriaLogbook, teardown and choosing for the Fair

Bitácora del equipo. Desarme por roles. Y el anuncio: mañana eligen su robot para la Feria de Inventores — que empiecen a pensar cuál quieren.Team logbook. Teardown by roles. And the announcement: tomorrow they choose their robot for the Inventors' Fair — have them start thinking about which one they want.

Logros esperadosExpected outcomes

Base con los 3 sensores montada y conectada.Base built with the 3 sensors mounted and connected.
Programa con si / si no que esquiva un obstáculo.A program with if / else that dodges an obstacle.
Usa un por siempre para decidir sin parar.It uses a forever loop to keep deciding.
Una decisión propia agregada. Material desarmado.Its own decision added. Materials disassembled.
Consejo de aulaClassroom tip El error clásico del si / si no es no ponerlo dentro de un por siempre: el robot decide una sola vez y se congela. Si un equipo dice “solo funciona una vez”, casi siempre es eso. Y recuérdales: primero que arranque y esquive, la meta de color se agrega al final.The classic if / else mistake is not putting it inside a forever loop: the robot decides once and freezes. If a team says “it only works once”, that's almost always it. And remind them: first make it start and dodge, the color goal is added last.
PreparaciónPreparation

Antes de construirBefore you build

  • Hub cargado y la LEGO Education SPIKE App abierta.Charged Hub and the LEGO Education SPIKE App open.
  • Inventario: Hub, 2 motores, y los 3 sensores — color, distancia y fuerza. Se devuelve todo al final.Inventory: Hub, 2 motors, and the 3 sensors — color, distance and force. Everything is returned at the end.
  • La pista: el profe pone unos obstáculos (cajas) y una zona roja de meta en el piso.The course: the teacher sets up some obstacles (boxes) and a red goal zone on the floor.
Parte A · ConstrucciónPart A · Build

Arma la base y móntale sus sentidosBuild the base and give it its senses

Hoy la base es simple — dos motores para moverse — porque lo importante es la lógica, no el armado. Lo especial es que le montas los 3 sensores a la vez: distancia, color y fuerza.Today the base is simple — two motors to move — because what matters is the logic, not the build. What's special is that you mount all 3 sensors at once: distance, color and force.

Arma la base con ruedasBuild the wheeled base

Una base sencilla de dos motores — rápida de armar.A simple two-motor base — quick to build.
Arma la Driving Base oficial de SPIKE (manual arriba): dos motores grandes, dos ruedas y una rueda loca al frente. Gira tipo tanque, cambiando la velocidad de cada lado. Rápida de armar — firme y que ruede derecho.Build SPIKE's official Driving Base (manual above): two large motors, two wheels and a caster at the front. It turns tank-style, by changing each side's speed. Quick to build — sturdy and rolling straight.
La base rueda derecho al empujarla.The base rolls straight when you push it.

Monta los 3 sensoresMount the 3 sensors

Distancia al frente (para ver obstáculos), color abajo mirando el piso (a 1–2 cm), y fuerza arriba, fácil de apretar (será tu botón). Conéctalos al Hub y anota el puerto de cada uno.Distance at the front (to see obstacles), color underneath facing the floor (1–2 cm), and force on top, easy to press (it'll be your button). Connect them to the Hub and note each one's port.
Los 3 sensores aparecen conectados en verde en la app.The 3 sensors show connected in green in the app.
TipTip No exijas soportes perfectos. Que el de fuerza sea fácil de apretar y el de color quede a 1–2 cm del piso. El resto, libre.Don't demand perfect brackets. Make the force sensor easy to press and the color sensor 1–2 cm off the floor. The rest is free.
Parte B · Las ideas de hoyPart B · Today's ideas

Cómo un robot “decide”How a robot “decides”

Primero, sin robot: el si / si no humano. Tu profe dice “If I say red, sit down. Else, stand up.” y ustedes ejecutan. Eso — exactamente eso — es lo que va a hacer el robot.First, without the robot: the human if / else. Your teacher says “If I say red, sit down. Else, stand up.” and you act it out. That — exactly that — is what the robot will do.

ControlControl

Si / si no (la decisión)If / else (the decision)

Qué esWhat it is
El robot hace una pregunta (una condición). Si la respuesta es sí, hace una cosa; si no, hace otra.The robot asks a question (a condition). If the answer is yes, it does one thing; else, it does another.
Para qué hoyWhat it's for
“¿Hay un obstáculo cerca?” Si sí → dobla. Si no → sigue derecho. El robot decide solo.“Is there an obstacle nearby?” If yes → turn. Else → keep straight. The robot decides on its own.
En código realIn real code
Es el if / else de Python o Java — la base de toda decisión en un programa.It's the if / else of Python or Java — the basis of every decision in a program.
Error comúnCommon mistake
Escribir la pregunta al revés (mayor/menor cambiados): el robot dobla cuando no debe.Getting the question backwards (greater/less swapped): the robot turns when it shouldn't.
ControlControl

Por siempre / repetir (el bucle)Forever / repeat (the loop)

Qué esWhat it is
Repite los bloques de adentro. Por siempre = no para nunca; repetir = un número de veces.Repeats the blocks inside. Forever = never stops; repeat = a set number of times.
Por qué hoyWhy today
Un robot no decide una vez y ya: decide todo el tiempo. El si / si no va dentro de un por siempre para que revise sin parar.A robot doesn't decide once and stop: it decides all the time. The if / else goes inside a forever loop so it keeps checking nonstop.
En código realIn real code
Es el while True: de Python — el latido del corazón de un robot autónomo.It's Python's while True: — the heartbeat of an autonomous robot.
Error comúnCommon mistake
Olvidar el por siempre: el robot decide una sola vez y se queda quieto.Forgetting the forever loop: the robot decides once and freezes.
SensoresSensors

Sensor de fuerza (el botón)Force sensor (the button)

Qué esWhat it is
Detecta cuando lo aprietas (y qué tan fuerte). Es una entrada de sí/no: presionado o no.It detects when you press it (and how hard). It's a yes/no input: pressed or not.
Para qué hoyWhat it's for
Es el botón de arranque: el robot espera hasta que lo aprietes para empezar a decidir.It's the start button: the robot waits until you press it to start deciding.
En código realIn real code
Como leer un botón: if button.is_pressed(). Igual que cualquier botón de una app.Like reading a button: if button.is_pressed(). Just like any button in an app.
Parte C · El programaPart C · The program

Dale un cerebro a tu robotGive your robot a brain

Ármalo por capas: primero que arranque y esquive; la meta de color se agrega al final. Los bloques tienen colores según su categoría — úsalos para encontrarlos rápido en la app:Build it in layers: first make it start and dodge; the color goal is added last. Blocks are colored by category — use that to find them fast in the app:

EventosEvents MovimientoMovement ControlControl SensoresSensors LuzLight
Capas 1 y 2 · arranca con el botón y decideLayers 1 & 2 · start with the button and decide
al iniciar el programawhen program starts
fijar los motores de movimiento aset movement motors to A+B
fijar la velocidad de movimiento aset movement speed to 40 %
esperar hasta quewait until C ▾estáispresionadopressed?
por siempreforever
siif D ▾está más cerca queis closer than15cm ▾? entoncesthen
empezar a avanzarstart moving girar: 60turn: 60
si noelse
empezar a avanzarstart moving girar: 0turn: 0
Capa 3 · llega a la meta (agrégala dentro del por siempre)Layer 3 · reach the goal (add it inside the forever)
siif E ▾es coloris color? entoncesthen
dejar de moversestop moving
encenderturn on ¡llegó!arrived!

El corazón está en si / si no dentro del por siempre: el robot revisa la distancia una y otra vez y decide en el momento. Arranca solo con las capas 1 y 2 (que esquive); cuando funcione, agrega la capa 3 (la meta de color) dentro del mismo por siempre.The heart is if / else inside the forever loop: the robot checks the distance over and over and decides in the moment. Start with layers 1 and 2 only (make it dodge); when it works, add layer 3 (the color goal) inside the same forever loop.

Capa 1 + 2 — arranca y esquivaLayers 1 + 2 — start and dodge

Arma el programa de arriba. Aprieta el sensor de fuerza: el robot debe arrancar, avanzar derecho y doblar cuando un obstáculo se acerca. ¿Dobla siempre? Revisa la pregunta (menor que). ¿No dobla? Baja los 15 cm o revisa el sensor.Build the program above. Press the force sensor: the robot should start, drive straight and turn when an obstacle gets close. Always turning? Check the question (less than). Never turning? Lower the 15 cm or check the sensor.
Arranca al apretar y esquiva los obstáculos.It starts on press and dodges obstacles.

Capa 3 — llega a la metaLayer 3 — reach the goal

Agrega el segundo si (color = rojo) dentro del mismo por siempre: cuando el robot pase por la zona roja, se detiene y enciende la luz. Ahora tiene una misión completa.Add the second if (color = red) inside the same forever loop: when the robot passes over the red zone, it stops and lights up. Now it has a complete mission.
Esquiva obstáculos y se detiene en la zona roja.It dodges obstacles and stops at the red zone.
Parte D · Tu propia decisiónPart D · Your own decision

Hazlo pensar como tú quierasMake it think your way

Ya sabes darle decisiones. Ahora invéntale una tuya — no hay respuesta correcta, hay tu idea. Agrega otro si / si no dentro del por siempre.You know how to give it decisions now. So invent one of your own — there's no right answer, there's your idea. Add another if / else inside the forever loop.

Idea 1Idea 1

Otro color, otra reacciónAnother color, another reaction

“Si ve azul → gira en círculo.” Agrega un si más con otro color.“If it sees blue → spin in a circle.” Add one more if with another color.

Idea 2Idea 2

El botón hace un trucoThe button does a trick

“Si aprietan el sensor de fuerza mientras anda → suena una nota o hace un giro.” Usa el botón para algo divertido.“If they press the force sensor while it's moving → play a note or do a spin.” Use the button for something fun.

Idea 3Idea 3

Retrocede antes de doblarBack up before turning

Cuando vea un obstáculo muy cerca, que retroceda un poco y luego doble — como un robot de verdad. Encadena dos acciones dentro del si.When it sees an obstacle very close, have it back up a little and then turn — like a real robot. Chain two actions inside the if.

Bitácora del equipo (4 preguntas): ¿Qué decisión le dimos hoy? · ¿Qué funcionó? · ¿Qué no funcionó? · ¿Qué robot queremos armar mañana en la Feria?Team logbook (4 questions): What decision did we give it today? · What worked? · What didn't work? · Which robot do we want to build tomorrow at the Fair?
CierreWrap-up

Desarmar y elegir para la FeriaDisassemble and choose for the Fair

Antes de desarmar, graba tu robot decidiendo — es tu evidencia. Luego guarda todo ordenado: el kit debe quedar completo.Before taking it apart, record your robot deciding — it's your evidence. Then pack everything neatly: the kit must be complete.
Mañana es la Feria de Inventores. Vas a elegir entre 3 robots para armar y mostrarles a tus papás — y lo presentas en inglés. Ve pensando cuál te late: ¿el que explora?, ¿el que agarra?, ¿el que abre con un color?Tomorrow is the Inventors' Fair. You'll choose from 3 robots to build and show your parents — and you'll present it in English. Start thinking which one you like: the one that explores? the one that grabs? the one that opens with a color?
  • Constructor: lidera el desarme (¡no olvides los 3 sensores!).Builder: leads the teardown (don't forget the 3 sensors!).
  • Ing. de pruebas: verifica que la caja quede completa.Test engineer: checks the box is complete.
  • Programador: guarda el programa para no perderlo.Programmer: saves the program so it isn't lost.
← Sesión 2← Session 2 Sesión 4: Feria →Session 4: Fair →

Conceptos de lógica (si/si no, bucles) y sensor de fuerza basados en LEGO® Education SPIKE™ Prime. Actividad adaptada por RobotSchool. LEGO® y SPIKE™ Prime son marcas de The LEGO Group. Material de uso educativo.Logic concepts (if/else, loops) and force sensor based on LEGO® Education SPIKE™ Prime. Activity adapted by RobotSchool. LEGO® and SPIKE™ Prime are trademarks of The LEGO Group. For educational use.