SimulationsSimulacionesSIM-0010

Simulate, 5 minutesSimular, 5 minutos

Code the robotPrograme al robot

Build a program from cards and watch the robot follow it exactly. Use a repeat to run the same cards again and again, so a short program can drive a whole square.Arme un programa con tarjetas y vea al robot seguirlo al pie de la letra. Use una repetición para correr las mismas tarjetas una y otra vez, para que un programa corto trace todo un cuadrado.

A robot on a taped grid of squares facing up, a star to reach, and beside it a program of one repeat block holding a forward card.

The drawing shows where it starts. It runs here once its script has loaded.El dibujo muestra dónde empieza. Funciona aquí una vez que carga su código.

Your challengeSu reto

  1. Get the robot to the star.Lleve el robot hasta la estrella. Not done yet.Todavía no.
  2. Drive the whole square with five cards or fewer.Trace todo el cuadrado con cinco tarjetas o menos. Not done yet.Todavía no.
  3. Climb the gem stairs and collect all four gems with five cards or fewer.Suba la escalera y recoja las cuatro gemas con cinco tarjetas o menos. Not done yet.Todavía no.

Every challenge done. Now try it for real at home.Todos los retos logrados. Ahora pruébelo de verdad en casa.

The mapEl mapa

Add a cardAgregue una tarjeta

The programEl programa

    Squares movedCasillas avanzadas

    Quarter turnsCuartos de vuelta

    Angle turned in allÁngulo girado en total

    The robot facesEl robot mira hacia

    The robot does the cards in order, exactly as written. A green repeat block runs the cards inside it again and again, so a pattern written once can run many times. The arrow marks the card just done; a red card is where it bumped. Each little corner on the path is a right angle.El robot hace las tarjetas en orden, tal como están escritas. Un bloque verde de repetición corre las tarjetas que tiene dentro una y otra vez, así que un patrón escrito una vez puede correr muchas veces. La flecha marca la tarjeta que acaba de hacer; una tarjeta roja es donde chocó. Cada esquinita en el camino es un ángulo recto.

    What is happeningQué está pasando

    A program is a list of exact instructions, and a robot follows them literally. It only knows what it was told, not what we meant.Un programa es una lista de instrucciones exactas, y un robot las sigue al pie de la letra. Solo sabe lo que se le dijo, no lo que quisimos decir.

    A loop repeats the cards inside it. A square is one side and one turn, four times over, so instead of sixteen cards you can write the side and the turn once and put them inside a repeat that runs four times: five cards in all. Finding the pattern that repeats is the heart of a loop.Un ciclo repite las tarjetas que tiene dentro. Un cuadrado es un lado y un giro, cuatro veces, así que en lugar de dieciséis tarjetas puede escribir el lado y el giro una sola vez y ponerlos dentro de una repetición que corra cuatro veces: cinco tarjetas en total. Encontrar el patrón que se repite es el corazón de un ciclo.

    A quarter turn is a right angle. Two make a half turn and four make a full turn, so a square has four equal sides and four right angles, and the robot ends facing the way it began.Un cuarto de vuelta es un ángulo recto. Dos hacen media vuelta y cuatro una vuelta completa, así que un cuadrado tiene cuatro lados iguales y cuatro ángulos rectos, y el robot termina mirando hacia donde empezó.

    Debugging is watching: step through one card at a time, see where the robot goes wrong, and fix that card.Depurar es observar: avance una tarjeta a la vez, vea dónde se equivoca el robot y arregle esa tarjeta.

    Things to tryCosas para probar

    • Drive the square without a repeat and count the cards, then drive it again with one.Trace el cuadrado sin repetición y cuente las tarjetas; luego trácelo otra vez con una.
    • Change how many times the repeat runs and watch where the robot ends up.Cambie cuántas veces corre la repetición y vea dónde termina el robot.
    • Make the robot bump on purpose, then step through and fix the card that failed.Haga chocar al robot a propósito, luego avance paso a paso y arregle la tarjeta que falló.
    • Watch the turns under the grid: how many quarter turns make a full turn?Mire los giros debajo de la cuadrícula: ¿cuántos cuartos de vuelta hacen una vuelta completa?

    This robot moves exactly one square and turns exactly a quarter turn every time, and its repeats do not go one inside another. A real robot drifts and slips, so its distance and its turns have to be measured and adjusted.Este robot avanza exactamente una casilla y gira exactamente un cuarto de vuelta cada vez, y sus repeticiones no van una dentro de otra. Un robot real se desvía y resbala, así que hay que medir y ajustar su distancia y sus giros.

    Use it, share it, adapt itÚsela, compártala, adáptela

    The credit to copyEl crédito para copiar

    Free BYRD, CC BY. “Code the robot” from the Byrd Academy STEM Curriculum by Byrd EDU, byrdathome.org.Free BYRD, CC BY. “Programe al robot”, del Currículo STEM de Byrd Academy, de Byrd EDU, byrdathome.org.

    This is free to use, share and adapt, even commercially, under the Creative Commons Attribution 4.0 International license (CC BY 4.0), with this credit. What Free BYRD means.Esto es libre de usar, compartir y adaptar, incluso con fines comerciales, bajo la licencia Creative Commons Atribución 4.0 Internacional (CC BY 4.0), con este crédito. Qué significa Free BYRD.

    Keep goingSiga adelante

    What to do nextQué hacer después

    Make it harderHágalo más difícil

    Climb the gem stairs with a repeat, then make the repeat run three times instead of four. Which gem is left behind, and why?Suba la escalera de gemas con una repetición y luego haga que corra tres veces en lugar de cuatro. ¿Qué gema se queda atrás, y por qué?

    For a younger onePara alguien más pequeño

    Press Run and watch the repeat drive the robot three squares with one card, then add a Turn right and another repeat to reach the star.Presione Correr y vea cómo la repetición lleva al robot tres casillas con una sola tarjeta; luego agregue un Girar a la derecha y otra repetición para llegar a la estrella.

    Try this nextPruebe esto después

    STEMGrades 3 to 5Grados 3 a 5 How do you tell a robot where to go?¿Cómo se le dice a un robot a dónde ir? STEM-ES-04

    Robot Basics I: Shapes in MotionRobótica básica I: figuras en movimiento

    Program a robot to drive squares and run an obstacle course, and discover that a right angle is a quarter turn.Programe un robot para recorrer cuadrados y una pista de obstáculos, y descubra que un ángulo recto es un cuarto de vuelta.

    • Ways in:Formas de empezar:
    • ReadLeer
    • DoHacer
    • SimulateSimular

    Grades 3 to 5Grados 3 a 5

    SoftwareSoftware

    Free BYRD, CC BYCurriculum unitUnidad del currículo

    AIGrades 3 to 5Grados 3 a 5 When does a robot decide?¿Cuándo decide un robot? AI-ES-07

    Robots and RulesRobots y reglas

    When does a robot decide? Program a grown-up with painfully exact instructions, debug the chaos, and learn the difference between following rules and learning.¿Cuándo decide un robot? Programe a un adulto con instrucciones exactas al extremo, depure el caos y aprenda la diferencia entre seguir reglas y aprender.

    • Ways in:Formas de empezar:
    • ReadLeer
    • DoHacer
    • SimulateSimular

    Grades 3 to 5Grados 3 a 5

    SoftwareSoftwareDesignDiseño

    Free BYRD, CC BYCurriculum unitUnidad del currículo

    BH-0022

    Program a grown-up on a floor gridPrograme a una persona adulta en una cuadrícula en el piso

    Tape a grid on the floor, write exact instructions on cards, and watch a grown-up robot follow them to the letter, mistakes and all.Haga una cuadrícula con cinta en el piso, escriba instrucciones exactas en tarjetas y vea a un robot adulto seguirlas al pie de la letra, errores incluidos.

    • Ways in:Formas de empezar:
    • ReadLeer
    • DoHacer
    • SimulateSimular

    Best for ages 5 to 12Ideal de 5 a 12 años

    SoftwareSoftware

    Free BYRD, CC BYHome activityActividad en casa

    STEMGrades 6 to 8Grados 6 a 8 How do machines make decisions?¿Cómo toman decisiones las máquinas? STEM-JH-01

    Meet the MicrocontrollerConozca el microcontrolador

    Program a microcontroller board to blink, read a button and run your own light patterns, then build a gadget and explain its code.Programe una placa de microcontrolador para que parpadee, lea un botón y siga sus propios patrones de luz; luego arme un aparato y explique su código.

    • Ways in:Formas de empezar:
    • ReadLeer
    • DoHacer
    • SimulateSimular

    Grades 6 to 8Grados 6 a 8

    ManufacturingManufacturaElectronicsElectrónicaSoftwareSoftware

    Free BYRD, CC BYCurriculum unitUnidad del currículo

    Explore everythingExplorar todo