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 Fly Trap Programming Guide

Fly Trap Programming Guide

Published by chongwanleng_1991, 2015-11-24 04:40:12

Description: Fly Trap Programming Guide

Search

Read the Text Version

© ALL RIGHTS RESERVED

Exercise 1: Movements• Create a program in the Scratch software to allow the Fly Trap to start catching flies. – Setting the “motor direction” block to “this way” allows it to catch flies. – Setting the “motor direction” block to “that way” allows it to release the fly. 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 Fly Trap to catch a fly for 3 seconds, then release it. Any unauthorized reprint or use of this material is prohibited.

Exercise 3: Distance Sensor• In this program, the distance sensor will be used to detect for flies. – The fly trap will not move until a fly is detected to be within the distance of 10 from the distance sensor. Followed by releasing the fly after 3 seconds. 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