Your Butterfly 5 min
Hi again! Get your Butterfly ready.
Today it flaps there and back!
Last time the wings moved one way. Today they go back too.
- Get your Butterfly out.
- Check the cable. Is it in A?
- Turn the Brick on.
Be the robot 10 min
Work with a friend. One friend is the program. One is the robot.
- The program says “up”. The robot lifts its arms.
- The program says “down”. The robot drops its arms.
- That is one flap. Two words make one flap!
- Now say up, down, up, down. Two flaps!
- Swap jobs. Now you are the robot.
There and back 10 min
The motor can turn two ways. You learnt this with the Wipers.
One block goes there. The next block comes back.
Two blocks make one flap.
One flap 15 min
when program starts :: events hat [A v] run [clockwise v] for (1) [rotations v] :: motors [A v] run [counterclockwise v] for (1) [rotations v] :: motors
- Find the yellow start block.
- Drag a motor block under it. Pick clockwise.
- Drag a second motor block under that.
- Click the little arrow. Pick counterclockwise.
- Both numbers say 1. Keep them the same.
- Press play. Watch the wings!
Garden break! 5 min
- Stand up. Grow tall like a flower.
- Sway in the wind. This way. That way.
- Now you are a butterfly. Flap your arms!
- Land on a flower. Stand very still.
- Fly back to your seat. Well done!
Slow flaps, fast flaps 20 min
Remember the speed block? You met it with the EV3 Fan. Small number, slow. Big number, fast.
when program starts :: events hat [A v] set speed to (20) % :: motors [A v] run [clockwise v] for (1) [rotations v] :: motors [A v] run [counterclockwise v] for (1) [rotations v] :: motors
- Put the speed block under the start block.
- Type 20. Press play. A sleepy flap!
- Guess first! What will 80 do?
- Type 80. Press play. Were you right?
Your challenges 15 min
⭐ Challenge 1: Two flaps
Make two flaps. How many motor blocks do you need?
⭐⭐ Challenge 2: Wake up, butterfly!
One slow flap first. Then one fast flap.
⭐⭐⭐ Challenge 3: Your butterfly dance
Make three flaps. Pick a speed for each one. Show the class your dance!
Show and tell 10 min
- Show your Butterfly dance to the class.
- Count the flaps with your friends.
- Say which flap was fast.
- Clap for your friends!
- Turn the Brick off. Take your model apart. Sort the parts.
Beautiful! Your Butterfly can dance!
Teacher note
Timing (90 min): model and check 5, rebuild only if needed, be the robot 10, there and back 10, one flap 15, break 5, slow and fast 20, challenges 15, show and tidy 10.
The idea today: a pair of blocks makes one movement, and pairs stack. Challenge 1 needs four motor blocks; challenge 2 needs a speed block before each pair (six blocks under the start block). That is on purpose: no loops in Junior.
Before class, run the one-flap program on a built model. If one rotation pushes a wing to its end, use 0.5 in both blocks and tell the class. If the wings are crank-driven they flap through a whole cycle per rotation; the “there and back” idea still holds for the motor, which is the thing to watch.
The port is assumed to be A; see the note in lesson 19.
