Programme a recipe
Purpose
There is already a pizza place where a robot makes the pizza.
There are bars where robots mix drinks and there are cafes
where robots make coffee.
Imagine you had to make a robot that could bake a cake.
In this exercise, you can practice coding without the robot.
You will learn which code blocks are important, what to use
and how to code a recipe.
You need to test your code on your mom or dad,
hoping they make a really good cake.
Task
- Find a recipe for a cake.
- Create a plan for your code:
- First code: My mother has to read the recipe.
- Second code: She has to find all ingredients.
- Third code: My mother has to collect all the
- necessary utensils she needs for cooking
- Put together codes that will make your Mother
bake the cake.
You will need the following code blocks
-
- Action
- Logic
- Loops
Here you see examples of blocks used for speed, movement,
number of times, etc.
Instead, imagine that it is your mother’s movements that you
need to code.
Remember all the details in the process have to be coded.
You can open Fable Blockly (can be downloaded here) and
examine the codes used there.
Maybe they can be used as inspiration to extend your analog code
– remember there is a simple and advanced view.
4. Now eat the cake!
Test yourself!
- Where in the code did it go wrong? What did your mother do
wrong and what did you do to correct them?
- Could you imagine having a robot in your home that could cook for you?
What would be the pros and cons?