Introduction
This is a simple sound-making module that you can use High/Low to drive it. Just change the buzzing frequency, and you can hear different sounds. The buzzer module is widely used in electronic devices like PC, printers, copiers, alarms, electronic toys, automotive electronics, telephones, and timers. And you also can create many interesting interactive projects with this small but useful module.
Specification
- Power Supply: 5.0V
- Current Consumption: (MAX)30mA@5V
- Interface Type: PH2.0
- Dimension: 26×39mm/1.02×1.54"
- Signal Type: digital signal (0 or 1)
Pinout
Label | Name | Description |
---|---|---|
1 | GND | Power - |
2 | VCC | Power + |
3 | SIGNAL | Digital Signal Line |
Usage Description
Input different signals to control the buzzer, shown below:
Input "ON" or "1", and the buzzer module makes sound;
Input "OFF" or "0", and the buzzer module stops.
When powered up, the buzzer module is ready to go, and you can also control its frequency via analog signal.
When the buzzer is controlled via digital signal, input high to start the buzzer, and low to stop it.
When the buzzer is controlled via analog signal, the larger the signal, the louder the buzzer sound; the smaller the signal, the lower the buzzer sound.
Principle
Buzzer is a kind of voice device. It is made of vibration and resonance device. When the buzzer is controlled via digital signal, input high to start the buzzer, and low to stop it. When the buzzer is controlled via analog signal, the larger the signal, the louder the buzzer sound; the smaller the signal, the lower the buzzer sound.
Application
1. Anti-theft Exhibition Booth
Description:
The anti-theft exhibition booth works in this way: put each item on a button module, when the item is placed on the booth, at this time the button is pressed; when it's taken away, the button is released and the buzzer makes sounds.
Components:
BOS0002 Push Button Module | BOS0020 Buzzer Module | BOS0029 Logic Module-NOT |
MBT0039 Micro:bit | BOS0040 Micro:bit BOSON Expansion Board | BOS0035 Mainboard-3IO |
Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.
Non-programming Sample
Connection Diagram:
Programming Sample
Connection Diagram:
Flow Chart:
Mind+ Sample Program:
Makecode Sample Program:
2. Rain Alarm
Description:
Put the steam sensor outdoors, when there are raindrops on the petal-shaped detection surface, the buzzer will buzz to tell people that it is raining.
Components:
BOS0006 Steam sensor | BOS0020 Buzzer module | BOS0035 Mainboard-3IO |
MBT0039 micro:bit | BOS0040 micro:bit BOSON Expansion Board |
Tip: micro:bit and its expansion board will be used in programming projects.
Non-programming Project
Connection Diagram:
Programming Project
Connection Diagram:
Flowchart:
Mind+ Sample Code:
MakeCode Sample Code:
3. Crowing Rooster
Description:
Use a light sensor to detect the brightness of the surrounding light intensity. The stronger the light, the louder the buzzer sound; the weaker the light, the lower the sound.
Components:
BOS0020 Buzzer Module | BOS0004 Light Sensor | BOS0035 Mainboard-3IO |
MBT0039 micro:bit | BOS0040 micro:bit BOSON Expansion Board |
Tip: micro:bit and its expansion board will be used in programming projects.
Non-programming Project
Connection Diagram:
Programming Project
Connection Diagram:
Program Flowchart:
Mind+ Sample Code:
MakeCode Sample Code:
4. Shy micro:bit
Description: micro:bit is very shy. He only smiles when no one touches the touch sensor. Otherwise, he shows a crying face on his LED matrix and makes a "crying sound".
Components:
BOS0008 Touch Sensor | BOS0020 Buzzer Module | MBT0039 micro:bit |
BOS0040 micro:bit Boson Expansion board |
Connection Diagram:
Program Flowchart:
Mind+ Sample Code:
MakeCode Sample Code:
Video Demo
Programming |
---|
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum
Turn to the Boson Kit Page