Showing posts with label 8051 projects. Show all posts
Showing posts with label 8051 projects. Show all posts

Monday, 17 June 2013

8051 interfacing with the buzzer

8051 interfacing with the buzzer

 components:  1) AT89C51 microcontroller

                       2) crystal oscillator

                       3) k1 buzzer

                       4) 4.7k resistor

                      5) 2 pcs 0.01uf capacitor

                      6) 5v power supply

                      7) inverter

Description: this is the post about interfacing microcontroller with a k1 buzzer.

                    pin 40 and 31 is connected to vcc(5v). port 1.5 is connected with

                    a inverter and then to the buzzer.pin 18 and 19 are connected to a crystal oscillator with    ceramic 0.01uf capacitor.

  The buzzer gets turned on when port 2.3 is high.

For resetting the buzzer pin 31 and 3 are connected together with 1uf capacitor and and then connected to ground through 8.2k resistor.

 CODE: 

org 00H

HERE: JNB P2.3,HERE                        ;keep monitoring for high

            SET B P1.5                                 ;set bit P1.5

            CLR P1.5                                    ;make P1.5 low

           SJMP HERE                               ; keep repeating

          END

the code is compiled in keil uvision software.

For any assistance or problem or query comment below.

happy innovention...................................

 

password: circuitsandprogram

download link of complete project: http://d01.megashares.com/dl/zIlpiG7/1

 

 

Wednesday, 20 February 2013

GLOWING 8 LEDS IN TIME INTERVAL

 

GLOWING 8 LEDS ON TIME INTERVAL

 Circuit :



CODE:



ORG 00H

MOV P0,#00H
MOV A, #0FEH
BACK: MOV P0,A
RLA
A_CALL DELAY
SIMP BACK
DELAY:MOV R2,#08H
LOOP2: MOV R1,#0FFH
LOOP1: MOV R0,#OFFH
LOOP:DJNZ R0,LOOP
DJNZ R1,LOOP1
DJNZ R2,LOOP2
RET
END
The code should be written in keil uvision software and hex code should be compiled and burned to 8051 microcontroller with program burner.
I have used here AT89C51 a microcontroller of  atmel company .

This way you can make a pattern of several leds glowing on a time interval and can use in decorations or for any signal sending device.

For any further assistance if required then comment below.

 
 


 





About the author

Scholar Ratan pal singh is a Google scholar, a man with innovative ideas and a nothing is impossible attitude, is a tech-lover.
He works as a independent researcher and freelance website and software developer.
Member of IEEE comsoc society, Green technology society and has published research paper and codes in many international journals and opensource.

"Failure is the pillar of success and Honesty with oneself is the only true way of achieving self-confidence."

Translate

Pageviews