Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 141 - 2615_KEC
P. 141

    HANDS-ON PROJECT

                     PROJECT NAME: Electric Guitar
                     Objective:

                        ∑  Design and build an interactive electric guitar using a Micro:bit, blending creativity with basic
                         circuitry and programming.

                        ∑  Develop hands-on skills in coding  and circuit  assembly  to  create  a functional  musical
                         instrument.

                        ∑  Foster an understanding of input-output relationships by simulating and customizing tones
                         through gestures and button presses.

                     Step-By-Step Instructions:

                     1.  Open MakeCode for Micro:bit:
                             Visit MakeCode for Micro:bit.

                             Alternatively, create a new project and name it Electric Guitar.

                     2.  Simulate the Project in MakeCode:
                             Once the code is uploaded or written, use the simulator on the left side of the MakeCode

                             screen.
                             Test the functionality:

                             ◦    Press the A and B buttons or shake the simulator to observe the corresponding actions.

                             ◦    Ensure the correct tones are played based on the input actions.
                     3.  Modify or Customize the Code (Optional):

                             Add  blocks to  customize  tones  or assign different sounds to gestures  like tilting  the
                             Micro:bit.

                             Example:
                             ◦      Button A: Play “Do” (middle C)

                             ◦    Button B: Play “Re” (D)
                             ◦    Shake: Play “Mi” (E)

                     4.  Gather Materials for Physical Implementation:

                             1 Micro:bit with a battery pack.
                             Alligator clips or jumper wires.

                             Cardboard or foam sheet for the guitar body.

                             Conductive material like copper tape for connections.

                             Adhesive materials (glue, tape, or rubber bands).

                                                                                              Exploring Microcontrollers  139

| 136 137 138 139 140 141 142 143 144 145 146 |