Interfacing A Buzzer Using 8051 Microcontroller: Abstract

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

MPMC LAB 18311A0494,495,496

INTERFACING A BUZZER USING 8051 MICROCONTROLLER

P.SANJAY 183110494, P.RENU SRI 18311A0495, KOUSHIK 18311A0496

ABSTRACT:

Buzzer is a electronic device that converts the electronic signal into buzzing
noise, that is applied to it. It can be used as electronic bell or as quiz buzzer in many
applications around us.

Buzzer Interfacing:
This project shows the interface with 8051 microcontroller to a buzzer. When a push
button is pressed, the buzzer will get ON and OFF (number of times set in the code)
and then stops.

AIM: To interface buzzer using 8051 microcontroller

HARDWARE /SOFTWARE USED:

BACKGROUND THEORY:
Once the circuit is powered, the compiler will initialize the stack pointer and the
variables having the non-zero initial values and perform other initialization process
and then calls the main function. It then checks if any of the buttons is pressed.

In other words the microcontroller scans for any of its input pins at port P1 to be zero
or at logic low level. In case a button is pressed, the display function is called by
passing the corresponding number. The microcontroller then sends the relevant
signals to the port connected to the 7 segment display.

The microcontroller will turn on the buzzer for a second and turns it off but the
number will be continously displayed on the 7 segment display until the RST button is
pressed.

PRINCIPLE:

The 8 Channel Quiz Buzzer Circuit using Microcontroller is a simple embedded


system with a set of 8 push buttons being the input devices, a microcontroller as the
main controller and the output devices being a buzzer and a display.

The whole operation is carried out by a microcontroller through a program written in


C language and dumped inside the microcontroller. When one of the buttons is
pressed, the buzzer starts ringing and the corresponding number is displayed on the 7
segment display.
MPMC LAB 18311A0494,495,496

CIRCUIT DIAGRAM:

ASSEMBLY LANGUAGE PROGRAM FOR INTERFACING A


BUZZER

& to interface it to pin P2.0 and buzzer should get on when P2.0 is High.

ORG 00H
MOV P3,#00H;Configure PORT3 as output
again:setb P2.0 ;transistor ON,Buzzer ON
Acall Delay
clr P2.0; transistor Off,Buzzer off
Acall Delay
sjmp again
Delay:Mov R3,#08H
Up2:Mov R2,#0FFH
Up1:Mov R1,#0FFHH
Here:DJNZ R1,Here
DJNZ R2,Up1
DJNZ R3,Up2
RET
end

RESULTS:
MPMC LAB 18311A0494,495,496

APPLICATIONS:

1. This circuit can be used at quiz competitions organized at schools, colleges


and other institutions.
2. It can be also used for other games shows.
3. It can be used as at public places like banks, restaurants as a digital token
display system.

CONCLUSION: When a push button is pressed, the buzzer will get ON and OFF
(number of times set in the code) and then stops.

FUTURE SCOPE:

REFERENCES:

You might also like