MikroElektronika
BUZZ 2 click
BUZZ 2 click
SKU:MIKROE-2720
Couldn't load pickup availability
Share
BUZZ 2 click carries the CMT-8540S-SMT magnetic buzzer transducer. The buzzer’s resonant frequency is 4kHz. The click is designed to run on either 3.3V or 5V power supply.
How the click works
The CMT-8540S-SMT magnetic buzzer is controlled by the PWM pin on the mikroBUS™ line.
You can create different sound patterns using the Sound library supported in our compilers, or utilize the microcontroller internal PWM module to create the signal for the buzzer. Signal frequency determines the sound pitch, and the duty cycle determines the amplitude (sound volume).
Power supply selection
Onboard VCCIO SEL zero-ohm resistor (SMD jumper) is used to determine whether 5V or 3.3V power supply is used. This resistor is placed in 5V position by default.
Specifications
Type | Magnetic |
Applications | The click is ideal for adding audio signalization feature to your prototype device |
On-board modules | CMT-8540S-SMT magnetic buzzer transducer |
Key Features | 4kHz resonant frequency |
Interface | PWM |
Input Voltage | 3.3V or 5V |
Click board size | M (42.9 x 25.4 mm) |
Pinout diagram
This table shows how the pinout on BUZZ 2 click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Programming
Code examples for BUZZ 2 click, written for MikroElektronika hardware and compilers are available on Libstock.
Code snippet
The following code snippet defines the notes and initializes the Sound library.
01 // notes 02 #define cS 261 03 #define dS 294 04 #define e 329 05 #define fS 349 06 #define g 391 07 #define gS 415 08 #define aHa 440 09 #define aS 455 10 #define b 466 11 #define cH 523 12 #define cSH 554 13 #define dH 587 14 #define dSH 622 15 #define eH 659 16 #define fH 698 17 #define fSH 740 18 #define gH 784 19 #define gSH 830 20 #define aH 880 21 void systemInit() 22 { 23 AD1PCFG = 0xFFFF; 24 TRISD = 0; 25 } 26 void Buzz_2_Init() 27 { 28 Sound_Init(&LATD, 0); 29 } 30 void Buzz_2_Task() 31 { 32 Sound_Play(aHa, 500); 33 Sound_Play(aHa, 500); 34 Sound_Play(aHa, 500); 35 Sound_Play(fS, 350); 36 Sound_Play(cH, 150); 37 Sound_Play(aHa, 500); 38 Sound_Play(fS, 350); 39 Sound_Play(cH, 150); 40 Sound_Play(aHa, 650); 41 delay_ms(500); 42 Sound_Play(eH, 500); 43 Sound_Play(eH, 500); 44 Sound_Play(eH, 500); 45 Sound_Play(fH, 350); 46 Sound_Play(cH, 150); 47 Sound_Play(gS, 500); 48 Sound_Play(fS, 350); 49 Sound_Play(cH, 150); 50 Sound_Play(aHa, 650); 51 } 52 void main() 53 { 54 systemInit(); 55 Buzz_2_Init(); 56 while( 1 ) 57 { 58 Buzz_2_Task(); 59 } 60 }




New Products
-
Sold out
OAK 4 D Auto Focus
Vendor:LuxonisRegular price Rs. 95,479.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Fixed Focus
Vendor:LuxonisRegular price Rs. 95,479.00Regular priceUnit price / perSold out -
Sold out
OAK 4 D Wide
Vendor:LuxonisRegular price Rs. 106,719.00Regular priceUnit price / perSold out -
Sold out
OAK-FFC IMX577 M12
Vendor:POLOLURegular price Rs. 8,499.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 20A
Vendor:POLOLURegular price Rs. 329.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 25A
Vendor:POLOLURegular price Rs. 439.00Regular priceUnit price / perSold out -
Pololu I²C Isolator, ISO1640
Vendor:POLOLURegular price Rs. 449.00Regular priceUnit price / per -
3pi+ 32U4 OLED Robot Kit with 30:1 MP Motors (Standard Edition Kit)
Vendor:POLOLURegular price Rs. 15,549.00Regular priceUnit price / per -
Conductivity Calibration K 1.0 Set (4 pouches)
Vendor:Atlas ScientificRegular price Rs. 1,599.00Regular priceUnit price / perSold out -
Analog Discovery 3 Pro Bundle
Vendor:DigilentRegular price Rs. 42,569.00Regular priceUnit price / per -
Lighthouse swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 474,999.00Regular priceUnit price / perSold out -
Loco Swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 544,999.00Regular priceUnit price / perSold out -
Kopis X8 Cinelifter 5" Kit - Caged (Frame Kit)
Vendor:HolybroRegular price Rs. 28,199.00Regular priceUnit price / per -
Atlas Scientific i3 InterLink
Vendor:Atlas ScientificRegular price Rs. 6,349.00Regular priceUnit price / per -
Sold out
PoE Injector
Vendor:LuxonisRegular price Rs. 2,099.00Regular priceUnit price / perSold out -
Sold out
1-Port VINT Hub Phidget
Vendor:PhidgetsRegular price Rs. 2,699.00Regular priceUnit price / perSold out -
Holybro 1045 Propeller 2 Pair CW+CCW-Black
Vendor:HolybroRegular price Rs. 1,549.00Regular priceUnit price / per -
ACS37220LEZATR-100B3 Current Sensor Large Carrier -100A to +100A, 3.3V
Vendor:POLOLURegular price Rs. 829.00Regular priceUnit price / per -
CT433-HSWF50MR TMR Current Sensor Compact Carrier -50A to +50A, 3.3V
Vendor:POLOLURegular price Rs. 1,039.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Adjustable Current, Blue Edition
Vendor:POLOLURegular price Rs. 409.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 1A@5V / 660mA@3.3V, Blue Edition (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 489.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 500mA@5V / 330mA@3.3V (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 469.00Regular priceUnit price / per -
T Connector Male-Female Pair
Vendor:POLOLURegular price Rs. 169.00Regular priceUnit price / per -
Pololu Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 159.00Regular priceUnit price / per -
Pololu Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 199.00Regular priceUnit price / per