Page 88 - Robo_Genius_V1.0_flipbook_C5
P. 88

Step 7            Micro:bit is connecting with the computer/laptop. Now click on the
                                download button to upload the code inside the micro:bit.


















                                   Click here




                  Output


                  In this activity, you will program the micro:bit
                  to act as a digital dice. When the micro:bit

                  is shaken, it will display a random number (1
                  to 6) on its LED screen, just like a dice in real

                  life. This activity teaches you about random
                  number generation, input detection (shake),
                  and output display (number on LEDs).


                  Concepts

                  1. Input Detection  (Shake  Motion):  You  will  learn  how  the  micro:bit’s

                     accelerometer  sensor  can  detect  shaking.  This  introduces  them  to  the





                       86    RoboGenius (V1.0)-V
   83   84   85   86   87   88   89   90   91   92   93