© ALL RIGHTS RESERVED
Exercise 1: Movements• Create a program in the Scratch software to allow the Cannon to shoot out a Lego block. – Setting the “motor direction” block to “this way” allows it to shoot. – Change the value of the “motor power” block to increase and decrease the shooting power. Any unauthorized reprint or use of this material is prohibited.
Exercise 2: Timed Program Flow• Make changes to the program created in Exercise 1.• This program will allow the Cannon to shoot by turning the motor for 10 secs at a motor power of 50, then the motor will be switched off. Any unauthorized reprint or use of this material is prohibited.
Exercise 3: Tilt Sensor (Remote Control)• Create a program to control the Cannon using a tilt sensor. – In this program, the tilt sensor value of 2 will set the motor power to 50, while the value of 4 increase the motor power to 100. Any unauthorized reprint or use of this material is prohibited.
Search
Read the Text Version
- 1 - 4
Pages: