Spread the love

concept_led_en____________________________________________________________________________________________________

  • What is LED?- LED is abbreviation of Light Emitting Diode. It’s nothing, but just a combination of semiconductors which emits light when current pass through it . Over the years, semiconductor technology has advanced to bigger heights, Light Emitting Devices have also been a part of this revolution and as a result, Now we have LED’s which give better illumination with low power consumption.

Verschiedene_LEDs

0

  •  Types of LED– There are many types of LEDs available in the market.. As you can see on above pic there is different LEDs according to our requirement and there has been many other are too available depending upon different parameters . And LEDs are choose according to parameters like space required by it, size, intensity, colors, etc. Typical LEDs are in size of 3mm, 5mm and 8mm. Nowadays HPLEDs(high power LEDs) are running in market which emits higher luminous intensity. High power LED’s has very high heat dissipation so LED’s need to mounted along with a cooling system known as heat sink.

LED-labelled

LED_Symb

  • Operating parameters & circuit symbol – Above figures show basic elements inside the LED and circuit symbol. Typical current ratings ranges from around 1 mA to above 20 mA and voltage is at about colors.
  • 1.9 to 2.1 V for red, orange and yellow,
  • 3.0 to 3.4 V for green and blue,
  • 2.9 to 4.2 V for violet, pink, purple and white.

5 V and 12 V LEDs are incorporate a suitable series resistor for direct connection to a 5 V or 12 V supply.Red_and_green_traffic_signals,_Stamford_Road,_Singapore_-_20111210

  • Applications-       LED is everywhere because it’s an indicating component used in many areas. Just look around, if u can’t find even single LED, you are not on earth. Typical and most even application of LEDs are shown in above photos.

1. Circuit Diagram Of LED With PIC18F458

led connecton with pic18f458

essaymoment.com

1. Program of SINGLE LED GLOW With PIC18F458 

/******************************************************
www.firmcodes.com
DEVELOPED BY:- FIRMWARE DEVELOPER
WHAT PROGRAM DO:- BLINK LEDs ON PORTC using pic18f458
******************************************************/

/* header file used in this program is already included in software microC pro for pic*/

void main()   // start of main program
{
    TRISC=0X00;   // portc become as output mode
    while(1)     // start of while loop
    {
            PORTC=0X00;  // led is off
            delay_ms(100); // this delay is provided in microC pro of pic allredy
            PORTC=0XFF;   // led is on
            delay_ms(100); // this delay is provided in microC pro of pic allredy
    }
}

PROTEUS File for SIMULATION(Password Of RAR file is :-firmcodes.com)

download (1)

____________________________________________________________________________________________________

2. Program of ALTERNATE LED GLOW With  PIC18F458 

/******************************************************
www.firmcodes.com
DEVELOPED BY:- FIRMWARE DEVELOPER
WHAT PROGRAM DO:- BLINK ALTERNATE LEDs ON PORTC using pic18f458
******************************************************/


/* header file used in this program is already included in software microC pro for pic*/

void main()   // start of main program
   {
        TRISC=0X00;   // portc become as output mode
        while(1)     // start of while loop
           {
                PORTC=0X55;  // led is off
           
            /*  binary code of 0xaa=10101010
                lower value of 0xaa goes to P2.0 ,2nd lower value of 0xaa goes to P2.1 and so on
           */
                 delay_ms(200); // this delay is provided in microC pro of pic allredy
                 PORTC=0XAA;   // led is on
                 delay_ms(200); // this delay is provided in microC pro of pic allredy
          }
   }

PROTEUS File for SIMULATION(Password Of RAR file is :-firmcodes.com)

download (1)

____________________________________________________________________________________________________

3. Program of DIFFERENT PATTERN LED GLOW with  PIC18F458 

/******************************************************
www.firmcodes.com
DEVELOPED BY:- FIRMWARE DEVELOPER
WHAT PROGRAM DO:- BLINK LEDs ON PORT2 using pic18f458
******************************************************/
/* header file used in this program is already included in software microC pro for pic*/

#define led PORTC  //access portc as a variable name led

void delay();       // delay function

void main() 
  {
      char ar[]={0x81,0x42,0x24,0x18,0x24,0x42,0x81};
      char ar1[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01};
      int n,j;
      unsigned long i;
      TRISC=0X00;   // portc become as output mode
      while(1)
        {
                n=2;
                while(n--)
                  {
                        for(i=0;i<16;i++)
                        {
                            led=ar1[i];
                            delay();
                        }
                   }
                n=3;
                while(n--)
                  {
                        for(i=0;i<7;i++)
                          {
                                led=ar[i];
                                delay();
                          }
                  }
                n=2;
                while(n--)
                 {
                        led=0x00;
                        delay();
                        led=0x01;
                        delay();
                        led=0x03;
                        delay();
                        led=0x07;
                        delay();
                        led=0x0f;
                        delay();
                        led=0x1f;
                        delay();
                        led=0x3f;
                        delay();
                        led=0x7f;
                        delay();
                        led=0xff;
                        delay();
                        led=0xfe;
                        delay();
                        led=0xfc;
                        delay();
                        led=0xf8;

                        delay();
                        led=0xf0;
                        delay();
                        led=0xe0;
                        delay();
                        led=0xc0;
                        delay();
                        led=0x80;
                        delay();
                        led=0x00;
                        delay();

                        led=0x80;
                        delay();
                        led=0xc0;
                        delay();
                        led=0xe0;
                        delay();
                        led=0xf0;
                        delay();
                        led=0xf8;
                        delay();
                        led=0xfc;
                        delay();
                        led=0xfe;
                        delay();
                        led=0xff;
                        delay();

                        led=0x7f;
                        delay();
                        led=0x3f;
                        delay();
                        led=0x1f;
                        delay();
                        led=0x0f;
                        delay();
                        led=0x07;
                        delay();
                        led=0x03;
                        delay();
                        led=0x01;
                        delay();
                        led=0x00;
                        delay();
                  }
           }
   }

void delay()       // delay function
  {
        int i;
        for(i=0;i<30000;i++);
  }

PROTEUS File for SIMULATION(Password Of RAR file is :-firmcodes.com)

download (1)

_______________________________________________________________________________________________

Content for the tab VIDEO