Starting Electronics Needs Your Help!
It is that time of the year when we need to pay for web hosting and buy new components and equipment for new tutorials. You can help by making a donation. Contribute to this website by clicking the Donate button. The total will be updated once daily. (You may need to clear your browser cache to see the updates.)
Target Amount: $2000
Amount Raised: $1169
Top Donor: C.C. $100
Created on: 23 October 2017
How to connect a Geekcreit passive buzzer module to Arduino. Connect the passive buzzer module from the Geekcreit 37 in 1 sensor module board set kit to an Arduino.
This very simple 3-pin passive buzzer module connects to an Arduino as shown in the image below. Also see the pinout for the Geekcreit passive buzzer module which shows the polarity of the buzzer pins.
This tutorial shows how to connect or wire the buzzer module to Arduino and how to run a sketch to test the module.
Wiring the buzzer module to the Arduino is very simple. Connect the right pin of the module to Arduino GND and the left pin of the module to the pin that will drive the module. In the circuit below, pin 8 is used to drive the module. The middle pin of the module is not connected.
The above circuit can easily be built on an electronic breadboard as shown in the image below.
A d.c. blocking capacitor can be added to the circuit as shown in the tune replay Arduino project. The capacitor stops any direct current from flowing through the circuit should the pin that drives the buzzer be left in a high state that puts +5V across the buzzer pins.
It might be a good idea to include a capacitor because measuring between the buzzer pins with a multimeter set on Ohms gave a 15 ohm reading which is a rather low resistance.
Several sketches can be used to test the module. The simplest sketch is found in the Arduino IDE under File → Examples → 02.Digital → toneMelody. After this sketch is loaded it will play a short melody on the passive buzzer and then stop. Press the Arduino reset button to play the melody again.
This same project can be found in the beginners section of this website – Tutorial 7: Arduino Melody, but using a loudspeaker instead of the tiny buzzer module. The toneMelody project can also be found on the Arduino website.
An external switch must be wired to the Arduino which is used to replay a melody in the tune replay project.