Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 72 - Robo_Genius_V1.0_flipbook_C4
P. 72

    Exploring the Sound Sensor

                      The  micro:bit  with  sound  features  a  built-in
                      microphone  sensor  that  can  detect  both  loud
                      and soft sounds, as well as measure the noise

                      level  around  you.  It can  respond  to  sound  in
                      different ways. The microphone sensor is placed
                      on the front of the board, along with an activity

                      LED that lights up whenever the microphone is
                      active.

                          When the microphone detects a loud sound, like a clap, it shows a large
                         heart on the LED display.

                          If it detects a quiet sound, for example after your clap has finished, it shows
                         a small heart.

                          The effect of this is to create a simple heart animation that responds to
                         claps or strong beats in music.

                      Algorithm Used                                                              START

                      An algorithm is a step-by-step procedure that defines                       On Loud sound
                      a  set  of instructions  that  must  be  carried  out  in  a                Show icon
                      specific order to produce the desired result.
                                                                                                  On Quiet sound

                      Programming a Clap Heart with Micro:bit                                     Show icon

                      Step 1  Go to Microsoft make code https://makecode.                         END
                                 microbit.org/

                      Step 2  Click on new projects.

                                             Click on new
                                             project

                           70    RoboGenius (V1.0)-IV

| 67 68 69 70 71 72 73 74 75 76 77 |