Let’s Build!
Create a system to represent the movement of an insect between flowers.
Instructions Turn on and pair: ● 1 DC Motor block and drag it onto the workspace. Also drag on: ● 1 Key Press block. Connect the blocks as shown.
Workspace
Instructions
Workspace
Sketch an insect, cut it out and attach it to the Wheel. Attach the Wheel to the DC Motor.
Test your system.
Ⓒ 2019 SAM Labs
1
Challenge 1
Create a system to simulate the way in which a flowering plant attracts insects.
Instructions Turn on and pair: ● 1 RGB LED block and drag it onto the workspace. Also drag on: ● 1 Interval block ● 1 Cycle Colours block. Connect the blocks as shown. Test your system.
Workspace
Instructions
Workspace
In the settings of the Interval, set to a low value.
Ⓒ 2019 SAM Labs
2
Challenge 1 – Debug It!
How can we keep the system on?
Instructions
Workspace
Drag onto the workspace: ● 1 Toggle block
Connect the blocks as shown. Test your system.
Ⓒ 2019 SAM Labs
3
Challenge 2
Create a system to represent the process of pollination.
Instructions Turn on and pair: 1 Light Sensor block 1 additional RGB LED block and drag them onto the workspace. Also drag on: ● 1 Inverse block ● 1 Compare block ● 2 Number blocks. Connect the blocks as shown.
Workspace
Instructions
Workspace
In the settings of the Number blocks, set as follows: ● Number connected to Toggle and RGB LED: ‘100’ ● Number connected to Compare and RGB LED: ‘0’.
● ●
I n the settings of the Compare, set to ‘≤ 10’.
Create two colourful origami flowers. Slot the flowers into the red Car Controller.
Ⓒ 2019 SAM Labs
4
Insert one RGB LED into each flower. Slot the Light Sensor into the front of the second flower’s stand.
Test your system. Move the bee between the flowers.
Ⓒ 2019 SAM Labs
5