Page 85 - Ai Robogenius
P. 85

INNOVATION LAB

                 Create a Digital Dice Roller with the Micro:bit.

                 1.  Use the Radio blocks in MakeCode to send and receive data between two Micro:bits.
                 2.  Set both Micro:bits to the same radio group so they can communicate with each other.

                 3.   Use the on shake block to generate a random number between 1 and 6, simulating the
                    rolling of a dice.

                 4.  Display the random number (1–6) on the LED display of the first Micro:bit.

                 5.   Use the on radio received block on the second Micro:bit to display the result on its LED
                    display as well.
                 6.   Test your setup by shaking the first Micro:bit and see the dice roll result appear on both

                    Micro:bits!

                                                   EXPERIMENT EVIDENCE

                 Goal



                 Setup






                 Observation




















                             CAREER CLIMB
                             After studying  Micro:bit,  students  can pursue careers in Embedded  Systems
                             Development or Software Engineering.














                                                                             Creative Projects with Micro:Bit
                                                                                                                    83
   80   81   82   83   84   85   86   87   88   89   90