Page 166 - Computing E-Book Grade 6
P. 166

The City School  2021-2022




             Sound


             The light purple blocks in the Sound category

             are all related to the Edison robot’s audio
             outputs. Single beeps, musical notes and

             blocks which control only music note blocks
             are all in this category.






             Sample Code


             Programming Edison around using flash lights and sounds (Drive, LED and Sound

             Categories):






              Start


              forwards for  3    inch     at speed  5

                    spin     right for  90   degrees     at speed


              turn right LED  on


              forwards for  3    inch     at speed  5
                                                                              Romeo is a humanoid sized robot
                    spin     right for  90   degrees     at speed             who's designed and built to assist the
                                                                              elderly as they lose their own
                                                                              autonomy. This robot is designed to
              turn left LED on                                                be able to open doors, climb stairs
                                                                              and reach for objects while going
              forwards for  3     inch    at speed  5                         about its care duties.


                     spin    right for  90   degrees     at speed


              turn left LED on

              forwards for  3    inch     at speed  5


              turn right LED  on


              beep









                                                                                                                166
   161   162   163   164   165   166   167   168   169   170   171