Interfacing of the Active Buzzer with Arduino

Procedure

  • Source
  • Target

NOTE: First make the connections, then move to code compilation.

1. Drag and drop the components in the workspace to create the circuit.

2. Connect Gnd/Negative Pin of buzzer with Pin3 of breadboard.

3. Connect positive Pin of buzzer with Pin1 of breadboard.

4. Connect Pin2 of buzzer with Pin11 of Arduino.

5. Connect Pin5 of buzzer with GND Pin of Arduino.

6. Connect Pin4 of breadboard with Pin(5V) of Arduino.

7. After connections click on the CHECK button to check the connections.

8. For the code compiler:

  • Set the pinMode of buzzer as “OUTPUT” first.
  • Set tone as as “buzzer”.

9. Now, click on COMPILE button to compile the code.

12. Click on RESET button to reload the webpage