+ All Categories
Home > Documents > PROJECTS)FORSCRATCH)&) MOWAY)

PROJECTS)FORSCRATCH)&) MOWAY)

Date post: 15-Oct-2021
Category:
Upload: others
View: 3 times
Download: 0 times
Share this document with a friend
16
PROJECTS FOR SCRATCH & MOWAY
Transcript
Page 1: PROJECTS)FORSCRATCH)&) MOWAY)

PROJECTS  FOR  SCRATCH  &  MOWAY  

Page 2: PROJECTS)FORSCRATCH)&) MOWAY)

INSTRUCTIONS  TO  PROJECTS  

•  A"er  every  project,  make  sure  you  start  a  new  Project  from  inside  Scratch  

•  Projects  will  be  released  every  Monday  •  Answers  will  be  released  every  Friday  •  If  you  have  doubts,  check  with  your  fellow  friends  first,  then  check  with  your  teachers  

•  If  you  sAll  do  not  have  a  saAsfactory  answer,  email  to  [email protected]  

Page 3: PROJECTS)FORSCRATCH)&) MOWAY)

Project  #18  

•  What are the different sensors in a mOway robot?

•  What is the type of sensor used by mOway to detect obstacles in front?

•  Where does mOway robot get its power?  

Page 4: PROJECTS)FORSCRATCH)&) MOWAY)

Project  #19  

•  Write  a  program  in  Scratch  where  every  Ame  we  press  one  of  the  arrows  on  the  keyboard,  Scratch  sends  a  movement  command  to  mOway.    – when  the  “up”  arrow  is  pressed,  the  command  sent  is  “go”,  making  the  robot  advance  forward  

– When  the  “down”  arrow  is  pressed,  the  robot  stops  

– when  the  “le"”  or  “right”  arrows  are  pressed,  the  robot  turns  90º  to  le"  or  right,  respecAvely  

Page 5: PROJECTS)FORSCRATCH)&) MOWAY)

Project  #20  

•  Write  a  program  in  Scratch  to  make  the  mOway  robot  move  to  form  a  square,  both  in  the  Scratch  drawing  and  in  reality  

Page 6: PROJECTS)FORSCRATCH)&) MOWAY)

Project  #21  

•  Make  the  mOway  sprite  move  around  the  Scratch  screen  

•  Mimic  the  movement  of  the  mOway  sprite  on  the  mOway  robot  in  physical  world  

Page 7: PROJECTS)FORSCRATCH)&) MOWAY)

Project  #22  

•  Write  a  Scratch  program  to  acAvate  the  LEDs  on  the  mOway  robot  

•  The  lights  should  correspond  to  the  following  keys  being  pressed:  

Lights   Key   Ac>on  

Front  &  Brake  LEDs   Up   On  

Down   Off  

Green  LED   Le"   On  

Red  LED   Right   On  

All  LEDS   Space  Bar   Off  

Page 8: PROJECTS)FORSCRATCH)&) MOWAY)

Project  #23  

•  Write  a  program  such  that  mOway  sprite  is  enclosed  within  the  window  and  the  real  robot  copies  the  sprite’s  movements.  In  this  case,  LED  acAvaAon  is  added,  so  that:  – When  the  robot  moves  forward,  the  front  LED  lights  up.  – When  the  robot  stops,  the  brake  LED  lights  up  – When  the  robot  turns  le",  the  red  LED  turns  on  – When  the  robot  turns  right,  the  green  LED  turns  on.  

•  Every  Ame  a  command  is  sent  to  acAvate  an  LED,  the  robot  drawing  changes  to  the  corresponding  LED  image.  

HINT:  Use  the  different  costumes  of  the  mOway  sprite  

Page 9: PROJECTS)FORSCRATCH)&) MOWAY)

Project  #24  

•  Create  a  Scratch  script  that  when  the  mOway  robot  reverses,  it  emits  a  sound  from  mOway’s  internal  speaker  

HINT:  Use  the  different  costumes  of  the  mOway  

Page 10: PROJECTS)FORSCRATCH)&) MOWAY)

Project  #25  

•  Using  the  built-­‐in  microphone  on  the  mOway  robot,  create  a  Scratch  script  to  detect  the  sound  and  display  the  sound  level  received  by  the  microphone  on  the  Scratch  screen  

•  HINT:  Use  Sensor  and  Variables  blocks  

Page 11: PROJECTS)FORSCRATCH)&) MOWAY)

Project  #26  

•  Create  a  Scratch  program  to  use  the  mOway’s  microphone  to  mimic  a  sound  meter  

•  It  should  display  a  meter  similar  to    the  one  below  

•  HINT:  use  Sensor,  Mo>on  (point  in  direc>on)  &  Operator  Blocks,  and  an  Arrow  Sprite  

Page 12: PROJECTS)FORSCRATCH)&) MOWAY)

Project  #27  

•  Using  the  mOway  microphone,  create  using  Scratch  a  sound  recorder  

•  Display  the  sound  received  as  a  graph  on  the  screen  

HINT:  use  the  Sensor,  Pen  &  Variables  blocks,  and  2  Sprites  (Arrow  and    ______  )    *(fill  in  the  blank)  

Page 13: PROJECTS)FORSCRATCH)&) MOWAY)

Project  #28  •  Create  a  moon  mission  for  mOway  robot  •  It  will  hear  a  first  sound  and  it  will  move  unAl  it  reaches  the  horizon,  and  a  second  sound  will  make  it  return  to  its  starAng  posiAon  

•  HINT:    In  the  exercise,  use  Scratch’s  “move  steps”  and  “change  size”  blocks  to  simulate  that  mOway  is  going  away  (shrinking)  and  approaching  (enlarging).    Also,  use  an  imaginary  black  line  at  the  horizon  of  the  Moon  to  trigger  the  return  of  the  mOway  

Page 14: PROJECTS)FORSCRATCH)&) MOWAY)

Project  #28  (cont’d)  

Page 15: PROJECTS)FORSCRATCH)&) MOWAY)

Project  #28  (cont’d)  •  Addi>onal  Hints  

§  Download  a  sample  moon  surface  picture  from  the  Internet  

§  Use  2  sprites:  a  mOway  explorer  and  a  black  line,  with  the  black  line  on  the  horizon  of  the  moon  surface  

§ When  the  “up”  key  is  pressed,  the  explorer  moves  to  wards  the  horizon  of  the  moon  and  the  explorer  becomes  smaller  and  smaller;  the  explorer  stops  when  it  touches  the  moon’s  horizon  and  the  explorer  turns  around  (180˚)  

§ When  the  “down”  key  is  pressed,  the  explorer  returns  to  its  star>ng  point;  the  explorer  becomes  larger  and  larger  

§  Instead  of  using  the  “keys”  to  ini>ate  the  explorer,  use  the  sound  received  to  ini>ate  the  explorer’s  movement  

Page 16: PROJECTS)FORSCRATCH)&) MOWAY)

Project  #29  

•  Create  a  Scratch  program  to  plot  mOway’s  obstacle  sensors  in  a  graphical  representaAon  as  shown  below  (1  for  each  sensor)  

•  HINT:  Sensor  Block,  Variable  (x_posi>on),  Pen  Block.    There  will  be  4  scripts,  4  sprites  to  generate  the  4  graphs  and  1  sprite  for  the  background  (stage)  


Recommended