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.
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.”
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.
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.
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.
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.
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.
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.
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.
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
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.
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
Monta los 3 sensoresMount the 3 sensors
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.
Si / si no (la decisión)If / else (the decision)
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.Por siempre / repetir (el bucle)Forever / repeat (the loop)
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.Sensor de fuerza (el botón)Force sensor (the button)
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.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:
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
Capa 3 — llega a la metaLayer 3 — reach the goal
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.
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.
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.
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.
Desarmar y elegir para la FeriaDisassemble and choose for the Fair
- 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.
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.