Inicio / Sesión 2
0/0
Sesión 2 · Martes 30 de junioSession 2 · Tuesday, June 30

Dale sentidos a tu robot repartidorGive your delivery robot its senses

Hoy construyes un carro repartidor y le das ojos: el sensor de color para entregar el paquete en la zona correcta, y el sensor de distancia para frenar antes de chocar con las cajas del almacén. El robot empieza a percibir el mundo y a reaccionar.Today you build a delivery cart and give it eyes: the color sensor to drop the package in the right zone, and the distance sensor to stop before crashing into the warehouse boxes. The robot starts to perceive the world and react to it.

2 horas2 hours Modelo: Carro repartidorModel: Delivery cart Sensor de color · DistanciaColor sensor · Distance PercepciónPerception
Roles de hoy (Sesión 2): Integrante 1 → Programador · Integrante 2 → Ing. de pruebas · Integrante 3 → Constructor. Rotaron desde la sesión anterior — hoy te toca un rol nuevo.Today's roles (Session 2): Member 1 → Programmer · Member 2 → Test engineer · Member 3 → Builder. They rotated from last session — today you take a new role.
Al final se desarma. El kit se devuelve: el robot se desarma al cierre y las piezas vuelven ordenadas a su caja. Protege los últimos ~13 minutos para guardar con calma. Hoy se construye desde cero (el Bailarín de la sesión pasada ya no existe).It's taken apart at the end. The kit is returned: the robot is disassembled at the close and the pieces go back neatly into the box. Protect the last ~13 minutes to pack up calmly. Today they build from scratch (last session's Break Dancer is gone).
Plan docente · Modelo 5E de LEGOTeacher plan · LEGO 5E model

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

Clave de esta sesión: que armar, jugar, modificar y probar llene el tiempo. La segunda mitad es abierta y escalonada (retos extra) para que ningún equipo quede en blanco — ni los que vuelan ni los que se traban.The key here: let building, playing, modifying and testing fill the time. The second half is open-ended and tiered (extra challenges) so no team is left idle — neither the fast ones nor the stuck ones.

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 del Bailarín. Rotan los roles (hoy cada quien tiene uno nuevo). Cada equipo recibe su SPIKE Prime y verifica que esté completo.Quick recap of the Break Dancer. Roles rotate (everyone has a new one today). Each team gets its SPIKE Prime and checks it's complete.

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

Gancho: ¿cómo sabe un repartidor dónde parar?Hook: how does a delivery driver know where to stop?

Pregunta abierta: “Un carro de reparto entrega solo. ¿Cómo sabe dónde dejar el paquete? ¿Cómo evita chocar?”. No respondas tú — engancha. Conéctalo con que hoy el robot tendrá sentidos.Open question: “A delivery cart drives itself. How does it know where to drop the package? How does it avoid crashing?” Don't answer it — hook them. Tie it to the robot getting senses today.

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

Construir el carro + montar los sensoresBuild the cart + mount the sensors

Armado guiado por el manual. Repártanlo para ir más rápido. El carro lleva un sensor al frente; agréguenle el sensor de color mirando al piso. Meta: carro armado, sensores conectados, Hub en la app.Build guided by the manual. Split it up to go faster. The cart has a front sensor; add the color sensor facing the floor. Goal: cart built, sensors connected, Hub in the app.

0:45 – 1:00 · Explorar0:45 – 1:00 · Explore

Jugar: conducir libremente y leer los sensoresPlay: drive freely and read the sensors

Que conduzcan el carro y descubran su “personalidad”. Luego, en la app, miran en vivo qué reporta el sensor de color por cada color y el de distancia al acercar la mano. Exploración abierta, sin reto todavía.Let them drive the cart and discover its “personality”. Then, in the app, they watch live what the color sensor reports for each color and what the distance sensor reads as a hand approaches. Open exploration, no challenge yet.

1:00 – 1:25 · Explicar / Elaborar1:00 – 1:25 · Explain / Elaborate

Reto base: parar en la zona y frenar ante obstáculoBase challenge: stop in the zone and brake at an obstacle

Aquí entra esperar hasta que: el carro avanza y se detiene cuando el sensor de color ve la zona de entrega; luego, que frene antes de chocar con la distancia. Ciclo probar → ajustar umbral/velocidad → volver a probar.Here comes wait until: the cart drives and stops when the color sensor sees the delivery zone; then, make it brake before crashing using distance. Loop: test → tune threshold/speed → retest.

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

Retos escalonados + modificar el carroTiered challenges + modify the cart

La parte abierta. Cada equipo sube por la escalera de retos a su ritmo: semáforo de colores, combinar sensores, depurar un programa con bugs. El que termina, enseña a otro. Aquí nadie sobra.The open part. Each team climbs the challenge ladder at its own pace: a color traffic light, combining sensors, debugging a buggy program. Whoever finishes teaches another. No one is idle here.

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

Bitácora + desarmar y guardarLogbook + disassemble and pack up

Foto del robot antes de desarmar. Bitácora del equipo (4 preguntas). Constructor lidera el desarme; Ing. de pruebas verifica el inventario; Programador guarda el programa. Todo vuelve ordenado.Photo before teardown. Team logbook (4 questions). Builder leads the teardown; Test engineer checks the inventory; Programmer saves the program. Everything goes back neatly.

Logros esperadosExpected outcomes

Carro repartidor armado con los dos sensores conectados.Delivery cart built with both sensors connected.
Programa que para al ver el color de la zona de entrega.A program that stops when it sees the delivery-zone color.
Programa que frena antes de chocar con un obstáculo.A program that brakes before crashing into an obstacle.
Al menos un reto extra intentado. Material desarmado y completo.At least one extra challenge attempted. Materials disassembled and complete.
Consejo de aulaClassroom tip El sensor de color es quisquilloso: debe ir a 1–2 cm del piso y le afecta la luz del ambiente. Antes de programar, que cada equipo calibre — mire en la app qué número/color reporta sobre su zona real. La mitad de la frustración se evita aquí. Para los equipos que vuelan, la escalera de retos de abajo es tu mejor amiga: mándalos a subir o a enseñarle a otro equipo.The color sensor is fussy: keep it 1–2 cm from the floor and it's affected by ambient light. Before coding, have each team calibrate — check in the app what number/color it reports over their actual zone. Half the frustration is avoided here. For the fast teams, the challenge ladder below is your best friend: send them up the ladder, or off to teach another team.
PreparaciónPreparation

Antes de construirBefore you build

  • Hub cargado: el cerebro del robot debe tener batería. Si parpadea en rojo, conéctalo unos minutos.Charged Hub: the robot's brain needs a charge. If it blinks red, plug it in for a few minutes.
  • App lista: abre la LEGO Education SPIKE App en la tablet o el computador.App ready: open the LEGO Education SPIKE App on the tablet or computer.
  • Inventario: revisa el Hub, los motores, el sensor de color y el sensor de distancia, y las piezas. Vas a devolver todo al final.Inventory: check the Hub, the motors, the color sensor and the distance sensor, and the pieces. You'll return everything at the end.
  • La pista: el profe pone en el piso una zona de entrega de color (una hoja o cinta) y unas “cajas” como obstáculos.The course: the teacher places a colored delivery zone on the floor (paper or tape) and some “boxes” as obstacles.
Parte A · ConstrucciónPart A · Build

Arma el carro repartidorBuild the delivery cart

El carro repartidor avanza con dos motores y es un poco impredecible a propósito — por eso necesita sensores para entregar bien. Lleva un sensor al frente; tú le vas a montar el sensor de color mirando al piso.The delivery cart drives with two motors and is a bit unpredictable on purpose — that's why it needs sensors to deliver well. It has a front sensor; you'll mount the color sensor facing the floor.

Repartan el armadoSplit up the build

Un manual, tres pares de manos: vayan por partes en paralelo.One manual, three pairs of hands: build in parallel by sections.
Sigan el manual de armado del carro. Mientras una persona arma el chasis, otra separa las piezas de las secciones siguientes y la tercera prepara la app. Constructor lidera, pero todos arman.Follow the cart's build manual. While one person builds the chassis, another sorts the pieces for the next sections and the third gets the app ready. The Builder leads, but everyone builds.
El chasis del carro está armado y firme.The cart's chassis is built and sturdy.

Monta el sensor de color mirando al pisoMount the color sensor facing the floor

Esta es la modificación de hoy: ubica el sensor de color al frente del carro, apuntando hacia abajo, a 1–2 cm del suelo. Si queda muy alto o muy abajo, lee mal. Asegúralo con un par de pines para que no se mueva.This is today's modification: place the color sensor at the front of the cart, pointing downward, 1–2 cm off the floor. Too high or too low and it reads badly. Pin it down so it doesn't wobble.
El sensor de color mira al piso, firme y a la altura correcta.The color sensor faces the floor, firm and at the right height.
TipTip No hace falta un soporte perfecto. Lo importante es que quede firme y a 1–2 cm. Es una modificación libre — buen momento para que el equipo invente su propio soporte.It doesn't need a perfect bracket. What matters is that it's firm and at 1–2 cm. It's a free modification — a good moment for the team to invent its own mount.

Conecta todo y enciendeConnect everything and power on

Conecta los dos motores y los dos sensores (color y distancia) a los puertos del Hub. Anota en qué puerto quedó cada uno — lo necesitarás al programar. Conéctate por Bluetooth desde la app.Connect the two motors and the two sensors (color and distance) to the Hub ports. Note which port each one is in — you'll need it when programming. Connect via Bluetooth from the app.
La app muestra el Hub, los motores y los sensores en verde.The app shows the Hub, the motors and the sensors in green.
TipTip Si un equipo termina temprano, pídele que ayude a otro: enseñar consolida. O que arranque la exploración de la Parte B.If a team finishes early, ask them to help another: teaching reinforces learning. Or to start the Part B exploration.
Parte B · Jugar y explorarPart B · Play and explore

Conoce a tu carro y sus sentidosGet to know your cart and its senses

Antes de programar el reto, juega. Un ingeniero primero entiende su máquina. Mueve el carro y mira qué sienten los sensores — la app te muestra los valores en vivo.Before programming the challenge, play. An engineer understands their machine first. Drive the cart and see what the sensors feel — the app shows the values live.

Maneja el carro librementeDrive the cart freely

Hazlo avanzar, retroceder y girar. Fíjate en su “personalidad”: ¿se va derecho o se desvía? Eso es justo lo que los sensores van a ayudar a controlar.Make it go forward, back and turn. Notice its “personality”: does it go straight or drift? That's exactly what the sensors will help control.
Sabes cómo se comporta tu carro al moverse.You know how your cart behaves when it moves.

Espía el sensor de colorSpy on the color sensor

En la app, abre la vista del sensor de color. Pásalo sobre distintos colores (tu zona de entrega, el piso, una hoja) y anota qué color y qué número reporta cada uno. Ese número es tu umbral.In the app, open the color sensor view. Pass it over different colors (your delivery zone, the floor, a sheet) and note what color and what number each one reports. That number is your threshold.
Sabes qué reporta el sensor sobre tu zona de entrega.You know what the sensor reports over your delivery zone.

Espía el sensor de distanciaSpy on the distance sensor

Abre la vista del sensor de distancia y acerca la mano poco a poco. Mira cómo bajan los centímetros. Decide a qué distancia quieres que el carro frene (por ejemplo, 15 cm).Open the distance sensor view and slowly bring your hand closer. Watch the centimeters drop. Decide at what distance you want the cart to brake (for example, 15 cm).
Sabes leer la distancia en cm y elegiste un valor de frenado.You can read the distance in cm and have picked a braking value.

Los conceptos de hoyToday's concepts

SensoresSensors

Sensor de colorColor sensor

Qué esWhat it is
Un “ojo” que mira una superficie y dice qué color ve (y cuánta luz refleja). Es una entrada: el robot lee del mundo en vez de solo actuar.An “eye” that looks at a surface and tells you what color it sees (and how much light it reflects). It's an input: the robot reads from the world instead of just acting.
Para qué hoyWhat it's for
Detectar la zona de entrega: cuando el carro ve ese color, sabe que llegó y se detiene.To detect the delivery zone: when the cart sees that color, it knows it has arrived and stops.
En código realIn real code
Es leer un input: como color = sensor.get_color(). El programa toma un dato del exterior para decidir.It's reading an input: like color = sensor.get_color(). The program takes outside data to decide.
Error comúnCommon mistake
Tenerlo muy alto, muy bajo o con la luz del salón pegándole. Debe quedar a 1–2 cm del piso y calibrado.Having it too high, too low or with room light hitting it. Keep it 1–2 cm from the floor and calibrated.
SensoresSensors

Sensor de distancia (ultrasonido)Distance sensor (ultrasonic)

Qué esWhat it is
Mide cuántos centímetros hay hasta el objeto de enfrente, rebotando un sonido que no oímos (como un murciélago).It measures how many centimeters there are to the object in front, bouncing a sound we can't hear (like a bat).
Para qué hoyWhat it's for
Frenar antes de chocar: el carro avanza y se detiene cuando un obstáculo está más cerca que tu valor (ej. 15 cm).Braking before a crash: the cart drives and stops when an obstacle is closer than your value (e.g. 15 cm).
Error comúnCommon mistake
Superficies blandas o en ángulo no rebotan bien el sonido → lecturas raras. Prueba con una caja plana de frente.Soft or angled surfaces don't bounce the sound well → odd readings. Test with a flat box facing it.
ControlControl

Esperar hasta que… (el sensor decide cuándo)Wait until… (the sensor decides when)

Qué esWhat it is
El bloque estrella de hoy. Pausa el programa hasta que una condición se vuelve verdadera — por ejemplo, “hasta que el sensor vea rojo”.Today's star block. It pauses the program until a condition becomes true — for example, “until the sensor sees red”.
Por qué hoyWhy today
Deja que el sensor decida cuándo actuar, no un tiempo fijo. El carro avanza “hasta que” perciba algo — eso es reaccionar al mundo.It lets the sensor decide when to act, not a fixed time. The cart drives “until” it perceives something — that's reacting to the world.
En código realIn real code
Es esperar por una condición: while distancia > 15: seguir(). La antesala del if/else que viene en la Sesión 3.It's waiting on a condition: while distance > 15: keep_going(). The doorway to the if/else coming in Session 3.
Error comúnCommon mistake
Olvidar el “dejar de moverse” después del esperar hasta que: el carro percibe la zona… y sigue de largo.Forgetting the “stop moving” after the wait until: the cart senses the zone… and drives right past it.
Parte C · Reto basePart C · Base challenge

Que el carro entregue y no choqueMake the cart deliver without crashing

Dos programas cortos, mismo patrón: avanzar → esperar hasta que el sensor perciba algo → detenerse. Arma primero el de color; cuando funcione, el de distancia.Two short programs, same pattern: drive → wait until the sensor perceives something → stop. Build the color one first; when it works, the distance one.

1 · Parar en la zona de entrega (color)1 · Stop at the delivery zone (color)
cuando se inicia el programawhen program starts
fijar velocidad aset speed to 40 %
empezar a avanzarstart moving
esperar hasta quewait until color = rojocolor = red
dejar de moversestop moving
¡entregado!delivered!
2 · Frenar antes de chocar (distancia)2 · Brake before crashing (distance)
cuando se inicia el programawhen program starts
fijar velocidad aset speed to 40 %
empezar a avanzarstart moving
esperar hasta quewait until distancia <distance < 15 cm
dejar de moversestop moving

Fíjate en el patrón: empezar a avanzar y luego esperar hasta que. El carro no se mueve “2 segundos” — se mueve hasta que el sensor le avise. Cambia el color o el número y lo adaptas a tu pista.Notice the pattern: start moving then wait until. The cart doesn't move “for 2 seconds” — it moves until the sensor tells it to. Change the color or the number to fit your course.

Programa “parar en la zona” (color)Program “stop at the zone” (color)

Arma el programa 1. Pon el carro a un metro de la zona de entrega y dale play. Debe avanzar y parar justo sobre el color. ¿Se pasa? Baja la velocidad. ¿No detecta? Revisa la altura del sensor y el color que elegiste.Build program 1. Put the cart a meter from the delivery zone and press play. It should drive and stop right on the color. Overshooting? Lower the speed. Not detecting? Check the sensor height and the color you chose.
El carro se detiene al llegar a la zona de entrega.The cart stops when it reaches the delivery zone.

Programa “frenar antes de chocar” (distancia)Program “brake before crashing” (distance)

Arma el programa 2. Pon una “caja” enfrente y dale play. El carro debe avanzar y frenar antes de tocarla. Ajusta los centímetros: si frena muy lejos, baja el número; si choca, súbelo.Build program 2. Place a “box” in front and press play. The cart should drive and brake before touching it. Tune the centimeters: if it brakes too far, lower the number; if it crashes, raise it.
El carro frena antes de chocar con el obstáculo.The cart brakes before hitting the obstacle.

Itera: hazlo confiableIterate: make it reliable

Un ingeniero no se conforma con que salga una vez. Corre tu programa 3 veces seguidas. Si falla alguna, ajusta velocidad, umbral o distancia y vuelve a probar hasta que salga siempre.An engineer isn't happy with it working once. Run your program 3 times in a row. If one fails, tune speed, threshold or distance and test again until it works every time.
El carro entrega bien 3 veces seguidas.The cart delivers correctly 3 times in a row.
Parte D · Retos extraPart D · Extra challenges

¿Terminaste rápido? Sube la escaleraFinished early? Climb the ladder

No hay un final: siempre hay un escalón más arriba. Sube a tu ritmo. Y si llegaste lejos, el mejor reto es enseñarle a otro equipo — explicar es la prueba de que de verdad lo entendiste.There's no finish line: there's always one more rung. Climb at your own pace. And if you got far, the best challenge is teaching another team — explaining is the proof you really understood it.

BaseBasetodoseveryone

Entrega confiableReliable delivery

El carro para en la zona de color y frena ante el obstáculo, 3 veces seguidas. (Lo de la Parte C.)The cart stops at the color zone and brakes at the obstacle, 3 times in a row. (Part C.)

Extra 1Extra 1

Semáforo de coloresColor traffic light

Que el carro reaccione distinto a 2 o 3 colores: rojo = para, verde = sigue, azul = gira. Necesitas un “esperar hasta que” por color.Make the cart react differently to 2 or 3 colors: red = stop, green = go, blue = turn. You'll need a “wait until” per color.

Extra 2Extra 2

Entrega segura: combina los dos sensoresSafe delivery: combine both sensors

El carro avanza hacia la zona de entrega (color) pero frena si una caja se le cruza (distancia). Los dos sentidos trabajando juntos.The cart heads to the delivery zone (color) but brakes if a box gets in the way (distance). Both senses working together.

Extra 3Extra 3

Fuera de servicio: caza los bugsOut of order: hunt the bugs

Reto de ingeniero experto: abre la lección oficial “Fuera de Servicio”, donde un programa de reparto tiene errores escondidos a propósito. Encuéntralos y arréglalos. O monta un speed-run: ¿quién entrega más rápido sin chocar?Expert-engineer challenge: open the official “Out of Order” lesson, where a delivery program has bugs hidden on purpose. Find and fix them. Or set up a speed-run: who delivers fastest without crashing?

Bitácora del equipo (4 preguntas): ¿Qué hicimos hoy? · ¿Qué funcionó? · ¿Qué no funcionó? · ¿Qué cambiaríamos la próxima sesión?Team logbook (4 questions): What did we do today? · What worked? · What didn't work? · What would we change next session?
CierreWrap-up

Desarmar y guardarDisassemble and pack up

Antes de desarmar, tómale una foto a tu carro — es tu evidencia. Luego guarda todo ordenado en su caja: el kit debe quedar completo para la próxima sesión.Before taking it apart, take a photo of your cart — it's your evidence. Then pack everything neatly into its box: the kit must be complete for the next session.
  • Constructor: lidera el desarme, pieza por pieza (¡no olvides desmontar los sensores!).Builder: leads the teardown, piece by piece (don't forget to remove the sensors!).
  • Ing. de pruebas: verifica que la caja quede completa contra el inventario.Test engineer: checks the box is complete against the inventory.
  • Programador: guarda o anota el programa para no perderlo.Programmer: saves or notes the program so it isn't lost.
← Sesión 1← Session 1 Sesión 3: Lógica →Session 3: Logic →

Modelo del carro repartidor basado en la lección Delivery cart model based on “Fuera de Servicio” de LEGO® Education ↗LEGO® Education's “Out of Order” ↗ (unidad Kickstart a Business). Contenido de sensores adaptado por RobotSchool. LEGO® y SPIKE™ Prime son marcas de The LEGO Group. Material de uso educativo. (Kickstart a Business unit). Sensor content adapted by RobotSchool. LEGO® and SPIKE™ Prime are trademarks of The LEGO Group. For educational use.