Your frog 5 min
Hi again! Get your frog ready.
Today your frog can turn!
Last time both legs pushed together. The frog went forward.
Today one leg can push harder. What will happen?
- Get your frog out.
- Check the cables. Left in B. Right in C.
- Turn the Brick on.
Be the frog 10 min
Work with a friend. You are the two legs!
- Stand side by side. Hold hands.
- You are the left leg. Your friend is the right leg.
- Your teacher says “same!”. Both take one big step.
- Your teacher says “left big!”. Left takes a big step. Right takes a tiny step.
- Which way did you turn?
Two numbers 10 min
Here is a new move block. It has two numbers.
move for (0.25) [rotations v] at (50) (50) % speed :: movement
- The first number is the left leg. That is B.
- The second number is the right leg. That is C.
- A big number pushes hard. A small number pushes soft.
This block is called move tank.
A tank has two sides. Each side has its own speed.
Hop straight 15 min
when program starts :: events hat set movement motors to [B v] and [C v] :: movement move for (0.25) [rotations v] at (50) (50) % speed :: movement move [backward v] for (0.25) [rotations v] :: movement
- Open your frog program from last time.
- Take out the move forward block.
- Put the move tank block in its place.
- Type 0.25. Then 50 and 50.
- Keep the move backward block at the end.
- Press play. Watch!
Lily pad break! 5 min
- Stand up. You are a frog on a lily pad.
- Hop forward. Boing!
- Turn to the left. Hop!
- Turn to the right. Hop!
- Sit down. Ribbit!
Change it and test 20 min
Change one number. Then press play. Guess first!
- Make the first number 80. Keep the second at 50. Which way does it turn?
- Now swap them. 50 and 80. Which way now?
- Make both 20. Is the hop big or small?
- Make both 80. Is the hop big or small?
when program starts :: events hat set movement motors to [B v] and [C v] :: movement move for (0.25) [rotations v] at (80) (50) % speed :: movement move [backward v] for (0.25) [rotations v] :: movement
Your challenges 15 min
⭐ Challenge 1: Hop, hop, turn
Hop straight two times. Then hop and turn.
⭐⭐ Challenge 2: Find the fly
Your teacher puts a paper fly down. Make your frog hop to it.
⭐⭐⭐ Challenge 3: Frog dance
Turn one way. Then turn the other way. Make a dance!
Show and tell 10 min
- Show your frog to the class.
- Say your two numbers.
- Say which way it turned.
- Clap for your friends!
- Turn the Brick off. Take your model apart. Sort the parts.
Great job! Your frog can turn!
Teacher note
Timing (90 min): model and check 5, rebuild only if needed, be the frog 10, two numbers 10, hop straight 15, break 5, change it 20, challenges 15, show and tidy 10. Skip the rebuild when the frogs survived lesson 35.
The idea today is move tank: one speed for each motor. In the block the first number is the left motor (B) and the second the right (C). The bigger number pushes harder, so the frog turns away from that side. Check this on your own frog before class and say what you see; a frog that shuffles may turn less than a wheeled robot.
The legs come back with the plain move backward block from lesson 35. That keeps minus numbers out of Junior. If a child types a minus number into the tank block, the legs swing backwards; that is fine to show, not to teach.
Different numbers are safe here: the frog’s legs have one motor each. Lesson 39 (Toddle Bot) is different and says why.
Words met today: move tank, left number, right number.
