Who Tells the Robot What to Do? (Coding is a Recipe)

Robots aren't smart. Actually, they are very dim. They need a Recipe. That recipe is called 'Code'.

Who Tells the Robot What to Do? (Coding is a Recipe)

Imagine you have a robot butler. You tell it: “Make me a sandwich.” The robot stares at you. It doesn’t know what a “sandwich” is. You have to be specific.

  1. Walk to kitchen.
  2. Open fridge.
  3. Get bread.
  4. Get cheese.
  5. Put cheese on bread.

This list of steps is an Algorithm. When we write it on a computer, we call it Code.

Blocks: Puzzle Piece Coding

In FIRST LEGO League, we use “Block Coding” (like Scratch). It looks like colorful puzzle pieces.

  • Blue Block: “Move Motors.”
  • Yellow Block: “Wait for Sensor.”
  • Orange Block: “Repeat (Loop).”

You drag and drop the pieces to make a line. [Move Forward 10 Steps] -> [Turn Right] -> [Honk Horn]

Bugs in the Recipe

If you forget a step, the robot fails.

  • Recipe: “Put cheese on bread.”
  • Bug: You forgot to say “Take the plastic wrapper off the cheese.”
  • Result: You eat a plastic sandwich. Yuck.

This acts exactly how robots work. They do exactly what you say, even if it’s silly. Coding is just learning how to give perfect instructions!

Explore FIRST® Robotics

FIRST® (For Inspiration and Recognition of Science and Technology) is a global robotics community preparing young people for the future. Discover the ultimate sport for the mind and see how you can get involved in STEM and robotics!

Learn More at firstinspires.org