Page 136 - KEC Khaitan C6 Flipbook
P. 136

5.  Build the Guitar Body:

                          Cut out a guitar shape from cardboard or foam.
                          Plan positions for the Micro:bit and buttons (or directly use the onboard A and B buttons).

                          Decorate the guitar creatively with markers, stickers, or paint.

                  6.  Assemble the Circuit:
                          Attach the Micro:bit to the guitar body securely using tape or a holder.

                          ◦    Use the onboard buttons for input. If using external buttons:

                          ◦    Connect the one end of crocodile wires  to the Micro:bit pins (e.g., P0, P1, GND), and
                              other end to the copper tape on the guitar body.
                  7.  Test the Guitar:

                          Power the Micro:bit with the battery pack.

                          Test the inputs (buttons or gestures) to ensure the correct tones play.


                  Diagram:
























                  Sample Code:




























                  134   Premium Edition-VI
   131   132   133   134   135   136   137   138   139   140   141