Light Emitting Diode (L

Embed Size (px)

Citation preview

  • 7/29/2019 Light Emitting Diode (L

    1/14

    Light Emitting Diode: LED

  • 7/29/2019 Light Emitting Diode (L

    2/14

    What is an LED?

    Light-emitting diode

    Semiconductor

    Has polarity

  • 7/29/2019 Light Emitting Diode (L

    3/14

    LED: How It Works

    When currentflows across adiode

    Negative electrons move oneway and positive holes move

    the other way

  • 7/29/2019 Light Emitting Diode (L

    4/14

    LED: How It Works

    The wholes existat a lower energylevel than the

    free electrons

    Therefore when a freeelectrons falls it losses energy

  • 7/29/2019 Light Emitting Diode (L

    5/14

    LED: How It Works

    This energy isemitted in a formof a photon,

    which causes light

    The color of the light isdetermined by the fall of the

    electron and hence energylevel of the photon

  • 7/29/2019 Light Emitting Diode (L

    6/14

    Inside a Light Emitting Diode

    1. TransparentPlastic Case

    2. Terminal Pins

    3. Diode

  • 7/29/2019 Light Emitting Diode (L

    7/14

    Kinds of LEDs

  • 7/29/2019 Light Emitting Diode (L

    8/14

    How to Connect a LED:

    Requires 1.5~2.5V and 10 mA

    To prevent overloading, use resistor

    470

  • 7/29/2019 Light Emitting Diode (L

    9/14

    How to Connect a LED:

  • 7/29/2019 Light Emitting Diode (L

    10/14

    Connect LED to BS2

    LED is on whenP0 is high

    LED is on whenP1 is low

  • 7/29/2019 Light Emitting Diode (L

    11/14

    Connect Multiple LEDs to BS2

    8 LEDs are connected to BS2 eachI/O pin (P0-P7) is allowed to sink6.25mA

  • 7/29/2019 Light Emitting Diode (L

    12/14

    Case Study: Blinking LED

  • 7/29/2019 Light Emitting Diode (L

    13/14

    Case Study: Blinking LED

    Pbasic program to make an LED blink

    output 0

    Main:low 0pause 1000

    high 0pause 1000goto Main

    Make pin0 an output

    Loop begins here

    Turn LED on

    Pause for 1 sec

    Turn LED off

    Pause for 1 sec

    Go back to beginning ofloop

  • 7/29/2019 Light Emitting Diode (L

    14/14

    Experiments

    Flash an LED1. Single LED

    2. Multiple LEDs

    Traffic Light by use of LEDs