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.

 
 


 





4 comments:

  1. what are the ratings of the resistor?

    ReplyDelete
  2. what is the voltage supply??

    ReplyDelete
  3. @ANONYMOUS:EACH RESISTOR IS OF 220K.

    ReplyDelete
  4. @kaushik: i have used 5v dc supply at pin 40.
    you can also use 12v dc supply but in that case use a high value rated leds.
    the one used by me here works better for 1.5v to 4.5v.

    ReplyDelete

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