You have no items in your shopping cart.

Subtotal: 0.00

How to Interface Buzzer with ARM9 Stick Board

ARM9-LPC2929 STICK BOARD

 

ARM9-LPC2929 STICK BOARD

The is specifically designed to help students to master the required skills in the area of embedded systems. The board is designed in such way that all the possible features of the microcontroller will be easily used by the students. The board supports Keil µVision 4 compilers with Keil ULink2.

 

NXP Microcontroller,ARM9-LPC2929 stick boardis proposed to smooth the progress of developing and debugging of various designs encompassing of speed 32-bit Microcontrollers. It integrates CAN, LIN, UART, ADC, PWM, I2C, SPI, Timer, Interrupt etc., to create a stand-alone versatile test platform.

 

ARM9 Stick Board having more no of I/O line for user access able. Its consists of 64 GPIO pins, CAN0/1, LIN1, I2C0/1, UART0/1, SPI0/1, USB, ADC0/1/2, PWM, Timer and more features. Users can easily access the controller and develop more application by using

ARM9 Stick Board.

 

Buzzer

 

Buzzer is an electrical device, which is similar to a bell that makes a buzzing noise and is used for signaling. Typical uses of buzzers and beepers include alarm devices, timers and confirmation of user input such as a mouse click or keystroke.

 

Interfacing Buzzer

 

A piezoelectric element may be driven by an oscillating electronic circuit or other audio signal source, driven with a piezoelectric audio amplifier. Sounds commonly used to indicate that a button has been pressed are a click, a ring or a beep. When the input port pin from microcontroller is changed, the sound wave is changed in Buzzer.



Circuit Diagram for Interfacing Buzzer with ARM9 Stick Board




circuit-diagram-for-interfacing-buzzer-with-arm9-stick-board


C Program for generate sound in Buzzer using ARM9 Stick Board

 

Title : Program to generate sound using Buzzer
#include

#define Buzzer 0x40

void DelayMs(unsigned int);

 

int main()

{

GPIO3_DR = 0x40; //All the GPIO pins configured as output

 

while(1)

{

GPIO3_OR |= Buzzer; //Sends High on GPIO

DelayMs(500);

GPIO3_OR &= ~ Buzzer; //Sends Low on GPIO

DelayMs(500);

}

}

 

void DelayMs(unsigned int Ms) //Delay Definition

{

int delay_cnst;

while(Ms>0)

{

Ms--;

for(delay_cnst = 0;delay_cnst<1200;delay_cnst++);

}

}