Let’s Build!
Create a system that will start a race.
Instructions
Workspace
Instructions
Drag onto the workspace: ● 1 Key Press block ● 1 Sound Player block.
Workspace
In the settings of the Key Press, set to a letter.
Connect the blocks as shown.
In the settings of the Sound Player, set ‘54321 Go’ from ‘Games’.
Test your system.
Ⓒ 2019 SAM Labs
1
Challenge 1
Create a system to count how many ‘food items’ have been ‘gathered’ in the ‘Race for Food Game’.
Instructions
Workspace
Instructions
Drag onto the workspace: ● 2 virtual Button blocks ● 2 Counter blocks ● 2 Compare blocks ● 2 additional Sound Player blocks.
Workspace
I n the settings of both Counters, set to ‘Restart’ ‘0–30’.
Connect the blocks as shown. You will have three systems running alongside each other.
I n the settings of both Compare blocks set to ‘= 30’.
In the settings of both Sound Players, set to ‘Success Sting’ from ‘Sound FX 1’.
Ⓒ 2019 SAM Labs
2
Instructions
Workspace
Test your system in a game to simulate food gathering. Play the ‘Race for Food Game’!
‘Race for Food’ game rules:
Class split into Team 1 (the ‘lions’) and Team 2 (the ‘wolves’). Each team must collect 30 objects in order to survive. Each team has two bowls; one empty, one with 30 food items such as jelly beans. The aim is to move the items from one bowl to another in the quickest time. Only one person can run at a time in a relay effect. One student or the teacher starts the game by pressing the Key Press (the ‘54321 Go’ sound should play). Then a student from each team transfers items from one bowl to another, whilst another student presses the Button to record each item transferred.
Ⓒ 2019 SAM Labs
3
Challenge 1 – Debug It!
How can we tell who has won?
Instructions
Workspace
In the settings of the Sound Players, set as follows: ● 1st: ‘Lion Roar’ ● 2nd: ‘Wolf’ from ‘Animals’.
Test your system.
Ⓒ 2019 SAM Labs
4
Challenge 2
Create an addition to the system to show progress in the ‘race for food’.
Instructions
Workspace
Instructions
Turn on and pair: ● 2 RGB LED blocks and drag onto the workspace. Also drag on: ● 2 Threshold blocks. Connect as shown.
Workspace
I n the settings of the RGB LEDs, set a different colour for each team.
I n the settings of both Threshold blocks, set the ‘True’ value to ‘25’.
est your system - play the T ‘Race for Food Game’!
Ⓒ 2019 SAM Labs
5