Important Announcement
PubHTML5 Scheduled Server Maintenance on (GMT) Sunday, June 26th, 2:00 am - 8:00 am.
PubHTML5 site will be inoperative during the times indicated!

Home Explore Bird's Nest Instructor Guide

Bird's Nest Instructor Guide

Published by robokids, 2015-09-15 03:39:18

Description: Bird's Nest Instructor Guide

Search

Read the Text Version

© ALL RIGHTS RESERVED

Exercise 1: Movements• Create a program in the Scratch software to allow the Bird to start moving up and down in its nest. – Set the motor direction block to “that way”. – When the “space” bar is pressed, the whole program will come to a stop. Any unauthorized reprint or use of this material is prohibited.

Exercise 2: Distance Sensor• Create the following program to allow the Bird to move in its nest at varying motor power. – The motor power is defined by the “distance sensor value” block. – The program will detect for new distance sensor value after every 0.5 seconds. Any unauthorized reprint or use of this material is prohibited.

Exercise 3: Use of variable• This program made use of the variable value to do certain actions. – Create a variable “power” to store the detected “distance sensor value”. – The value of the variable “power” is used to define the motor power. – The “broadcast” program block is used to show the value of the variable “power”. – When the value of the variable “power” is 100, the “bird” sound will be played. Any unauthorized reprint or use of this material is prohibited.


Like this book? You can publish your book online for free in a few minutes!
Create your own flipbook