Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 55 - RoboGenius Pro C5
P. 55

    CHALLENGE CHAIN

                      You  are designing  a step  counter  using  the  Micro:bit.  The accelerometer  senses
                      movement, but you notice that the step count is increasing even when you are not
                      walking. What could be causing this issue? Explain.

                     ROCK–PAPER–SCISSORS

                     The Rock–Paper–Scissors is a fun hand game usually played between two people.
                     Each player quickly chooses one of three options,  rock, paper or scissors, at the

                     same time. The rules are simple:

                        n Rock beats scissors
                        n Scissors beat paper

                        n Paper beats rock

                     With the Micro:bit, you can recreate this game digitally. Instead of using your hands,
                     the Micro:bit randomly selects rock, paper or scissors and shows the result on its LED

                     display. The Micro:bit uses its accelerometer sensor in this game. When you shake
                     the Micro:bit, the accelerometer detects the movement and triggers the program to
                     choose a random option. This makes the game interactive and fun, just like playing

                     it in real life.

                                                      If your Micro:bit project collects data from the
                                                environment, what rules should you follow to make sure
                                                              people’s privacy is protected?

                     Create a Rock–Paper–Scissors Game

                     In this activity, you will make a fun Rock–Paper–Scissors game using the Micro:bit.
                     When you shake the Micro:bit, it will randomly show one of the three symbols, rock,

                     paper or scissors, on its LED display. This project helps you learn how to use the
                     accelerometer sensor to detect motion and generate random outputs.

                       STEP - 1   Visit the link: https://makecode.microbit.org/ or scan the

                                   QR code.

                                                                                 Creative Projects with Micro:Bit
                                                                                                                        53

| 50 51 52 53 54 55 56 57 58 59 60 |