Buzz 2 Click Board
Buzz 2 Click Board
Regular price
£16.80
inc VAT
£14.00
exc VAT
Regular price
Sale price
Unit price
per
£16.80
inc VAT
£14.00
exc VAT
Order NOW to ship within 10 working days
The Buzz 2 Click Board™ carries the CMT-8540S-SMT magnetic buzzer transducer.
The buzzer's resonant frequency is 4kHz. The Click Board™ is designed to run on either 3.3V or 5V power supply.
Software Support
Code examples for the Buzz 2 Click Board™, 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 }
Buzz 2 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.