InicioHome / ConceptosConcepts
ReferenciaReference

Conceptos de bloquesBlock concepts

El glosario del curso. Cada bloque explicado igual: qué es, por qué existe, cómo se traduce a código real (Python/Java) y el error más común. Crece sesión a sesión.The course glossary. Every block explained the same way: what it is, why it exists, how it maps to real code (Python/Java) and the most common mistake. It grows session by session.

EventosEvents

Cómo arranca un programaHow a program starts

EventosEvents

Al iniciar el programaWhen program starts

Qué esWhat it is
El bloque “sombrero” con el que arranca todo programa. Va arriba; los demás se cuelgan debajo.The “hat” block that starts every program. It goes on top; the rest hang below it.
Por qué existeWhy it exists
El robot necesita un punto de partida: dónde empezar a leer cuando presionas play.The robot needs a starting point: where to begin reading when you press play.
En código realIn real code
Es el main() de Python o Java — el punto de entrada. Sin él, nada se ejecuta.It’s the main() of Python or Java — the entry point. Without it, nothing runs.
Error comúnCommon mistake
Dejar bloques sueltos sin engancharlos al sombrero: se quedan quietos.Leaving blocks loose without attaching them to the hat: they stay still.
MovimientoMovement

Hacer que el robot se muevaMaking the robot move

MovimientoMovement

Mover en línea recta durante __ (rotaciones / grados / segundos / cm)Move straight for __ (rotations / degrees / seconds / cm)

Qué esWhat it is
Mueve los dos motores juntos para avanzar o retroceder. Eliges la unidad: rotaciones, grados, segundos o centímetros.Moves both motors together to go forward or back. You choose the unit: rotations, degrees, seconds or centimeters.
ParámetroParameter
El número decide cuánto. Más rotaciones = más distancia. En negativo, retrocede.The number decides how much. More rotations = more distance. Negative goes backward.
Idea claveKey idea
“Segundos” depende de la batería y el piso → impreciso. “Rotaciones” o “cm” miden la rueda → preciso y repetible.“Seconds” depends on battery and floor → imprecise. “Rotations” or “cm” measure the wheel → precise and repeatable.
Error comúnCommon mistake
Usar segundos y esperar exactitud. Con batería baja, mismo tiempo = menos distancia.Using seconds and expecting accuracy. On low battery, the same time = less distance.
MovimientoMovement

Girar (giro sobre un punto)Turn (point turn)

Qué esWhat it is
Un motor gira en un sentido y el otro al contrario, para que el robot rote sobre su eje.One motor turns one way and the other the opposite way, so the robot rotates on its axis.
Para quéWhat for
Para las esquinas: giros de 90° en el circuito cuadrado.For corners: 90° turns in the square course.
Idea claveKey idea
Los grados del bloque no son los grados que gira el robot en el piso. Hay que calibrar: probar, medir y ajustar.The block’s degrees are not the degrees the robot turns on the floor. You must calibrate: test, measure and adjust.
Error comúnCommon mistake
Asumir que “90” en el bloque = 90° reales. Casi nunca a la primera.Assuming “90” in the block = a real 90°. Almost never on the first try.
MovimientoMovement

Fijar la velocidad de movimientoSet the movement speed

Qué esWhat it is
Define qué tan rápido se mueven los motores (0–100%). Afecta a todos los movimientos siguientes.Sets how fast the motors move (0–100%). It affects all the following movements.
Idea claveKey idea
Más velocidad ≠ mejor. Para precisión, baja a 30–40%: el robot obedece mejor y se desvía menos.Faster ≠ better. For precision, drop to 30–40%: the robot obeys better and drifts less.
Error comúnCommon mistake
Velocidad alta en retos de precisión → derrapa y pierde el rumbo.High speed in precision challenges → it skids and loses its heading.
Sensores · Sesión 2Sensors · Session 2

Que el robot perciba el mundoLetting the robot perceive the world

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.
Por qué existeWhy it exists
Para que el robot reaccione a lo que ve: parar en una zona de color, distinguir caminos, ordenar por color.So the robot can react to what it sees: stop on a colored zone, tell paths apart, sort by color.
En código realIn real code
Es leer un input: color = sensor.get_color(). El programa toma un dato del exterior para decidir.It's reading an input: 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 on 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éWhat for
Frenar antes de chocar o mantener una distancia. El robot avanza hasta que algo esté más cerca que tu valor.Braking before a crash or keeping a distance. The robot drives until something is closer than your value.
En código realIn real code
Otro input numérico: cm = sensor.get_distance_cm(). Un número que cambia en tiempo real.Another numeric input: cm = sensor.get_distance_cm(). A number that changes in real time.
Error comúnCommon mistake
Superficies blandas o en ángulo no rebotan bien el sonido → lecturas raras. Prueba con una cara plana de frente.Soft or angled surfaces don't bounce the sound well → odd readings. Test against a flat face.
ControlControl

Esperar hasta que…Wait until…

Qué esWhat it is
Pausa el programa hasta que una condición se vuelve verdadera — por ejemplo, “hasta que el sensor vea rojo”.It pauses the program until a condition becomes true — for example, “until the sensor sees red”.
Por qué existeWhy it exists
Deja que el sensor decida cuándo actuar, no un tiempo fijo. Conecta percibir con reaccionar.It lets the sensor decide when to act, not a fixed time. It connects perceiving with reacting.
En código realIn real code
Esperar por una condición: while distancia > 15: seguir(). La antesala del if/else de la Sesión 3.Waiting on a condition: while distance > 15: keep_going(). The doorway to Session 3's if/else.
Error comúnCommon mistake
Olvidar el “dejar de moverse” después: el robot percibe la zona… y sigue de largo.Forgetting the “stop moving” after it: the robot senses the zone… and drives right past.
Lógica · Sesión 3Logic · Session 3

Cómo un robot decideHow a robot decides

ControlControl

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

Qué esWhat it is
El robot hace una pregunta (una condición). Si es verdad, hace una cosa; si no, hace otra.The robot asks a question (a condition). If it's true, it does one thing; else, it does another.
Por qué existeWhy it exists
Para que el robot decida solo según lo que siente: “¿hay un obstáculo? → dobla; si no → sigo”.So the robot decides on its own based on what it senses: “is there an obstacle? → turn; else → keep going”.
En código realIn real code
Es el if / else de Python o Java — la base de toda decisión.It's the if / else of Python or Java — the basis of every decision.
Error comúnCommon mistake
Escribir la pregunta al revés (mayor/menor cambiados): reacciona cuando no debe.Getting the question backwards (greater/less swapped): it reacts 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; repetir hasta que = hasta que algo se cumpla.Repeats the blocks inside. Forever = never stops; repeat = a set number of times; repeat until = until something is true.
Por qué existeWhy it exists
Un robot decide todo el tiempo: el si / si no va dentro de un por siempre para revisar sin parar.A robot decides all the time: the if / else goes inside a forever loop to keep checking nonstop.
En código realIn real code
Es el while True: de Python — el latido 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éWhat for
Como botón: el robot espera hasta que lo aprietes para arrancar.As a button: the robot waits until you press it to start.
En código realIn real code
Como leer un botón: if button.is_pressed().Like reading a button: if button.is_pressed().
Y ahora…And now…

Ya tienes toda la caja de herramientasYou now have the full toolkit

Rumbo a la Feria de InventoresHeading to the Inventors' Fair

Ya sabes armar, mover 3 motores, leer los 3 sensores, secuenciar, esperar hasta que, decidir con si / si no y repetir con bucles. El jueves aplicas todo en tu propio robot.You know how to build, drive 3 motors, read the 3 sensors, sequence, wait until, decide with if / else and repeat with loops. On Thursday you apply it all to your own robot.