Page 65 - RoboGenius Pro C5
P. 65

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 this  chapter, students  can pursue  careers in Embedded  Systems
                             Development or Software Engineering.













                                                                             Creative Projects with Micro:Bit
                                                                                                                    63
   60   61   62   63   64   65   66   67   68   69   70