Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 54 - Ai Robogenius
P. 54

    These are the big, easy-to-use pins at the bottom of the Micro:bit. You can connect
                      them using jumper wires. The working of these pins are as follows:

                         n Pins 0, 1 and 2 are general-purpose input/output (GPIO) pins. They can act as
                         inputs to detect signals from sensors or buttons and as outputs to control devices
                         such as LEDs, buzzers or motors.

                         n The 3V pin provides power to external devices and can also power the Micro:bit

                         itself if it is not connected to a battery.

                         n The GND pin or ground pin, completes the electrical circuit and is essential when
                         connecting the Micro:bit to other components.

                      Small Pins (3 to 22)

                      The small pins on the Micro:bit, numbered 3 to 22, are used for advanced projects
                      that require more connections than the three large pins provide. Some of these pins

                      are already connected to the LED display and buttons (A and B), so they must be
                      used carefully to avoid interfering with these built-in components.

                            Ask AIRO

                           What happens if we connect an output device to the wrong pin of the micro:bit?

                      BUZZER

                      A  buzzer  is  a  small  electronic  device  that  produces  sound  when powered  by
                      electricity. It is commonly used in alarms, timers and notifications to alert users
                      through beeps or tones.

                      Buzzers  can be  easily  connected  to  microcontrollers  like  the  Micro:bit  to  create

                      sound-based responses, making them useful for interactive projects.

                      Connecting a Buzzer with Micro:bit

                      In this project, you will learn how to connect a buzzer to the Micro:bit and make it
                      produce sound using MakeCode. You will connect the buzzer to the Micro:bit’s pins
                      and program it to play sound continuously. The buzzer acts as an output device,

                      converting the electrical signals from the Micro:bit into sound.

                                     AI RoboGenius - V
                     52

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