Simulate LED in LTSpice

Discussion in 'Electronic Design' started by Dr Mitch, Aug 8, 2007.

  1. Dr Mitch

    Dr Mitch Guest

    How can I tell if an LED is on or off in Spice model? Currently, I'm
    looking at the current and voltage drop, (~20mA and ~1.7V
    respectively) but when I do this design with an actual circuit, I get
    bupkis.
     
    Dr Mitch, Aug 8, 2007
    #1
    1. Advertisements

  2. "Dr Mitch" <> schrieb im Newsbeitrag
    news:...
    > How can I tell if an LED is on or off in Spice model? Currently, I'm
    > looking at the current and voltage drop, (~20mA and ~1.7V
    > respectively) but when I do this design with an actual circuit, I get
    > bupkis.
    >


    Hello,

    You don't tell SPICE when a diode is on or off, you only specify model
    parameters.

    Example.for a model specification of a LED with 20mA, 1.7V.

    ..model LED1 D(Is=1e-19 N=1.6 Rs=2.5 Eg=2.1)

    Replace the value D of your diode in the schematic with LED1 and
    place the model specifications on your schematic as a SPICE-directive.

    I recommend to read some text about the basics of SPICE.

    Best regards,
    Helmut
     
    Helmut Sennewald, Aug 8, 2007
    #2
    1. Advertisements

  3. Dr Mitch

    Martin Guest

    On Aug 8, 10:01 am, Dr Mitch <> wrote:
    > How can I tell if an LED is on or off in Spice model? Currently, I'm
    > looking at the current and voltage drop, (~20mA and ~1.7V
    > respectively) but when I do this design with an actual circuit, I get
    > bupkis.


    Most likely you have miswired your actual circuit (LED wrong way
    around perhaps)

    Also, LEDs are very long lasting when operated within their allowable
    parameters, but if you miswire and subject the LED to excessive
    current or reverse voltage, you can destroy it in much less than a
    second. If you did that previously, it will most likely look like an
    open (infintitely high resistance) to the rest of the circuit now.
     
    Martin, Aug 8, 2007
    #3
  4. "Helmut Sennewald" <> schrieb im Newsbeitrag
    news:f9cp1t$7c2$02$-online.com...
    > "Dr Mitch" <> schrieb im Newsbeitrag
    > news:...
    >> How can I tell if an LED is on or off in Spice model? Currently, I'm
    >> looking at the current and voltage drop, (~20mA and ~1.7V
    >> respectively) but when I do this design with an actual circuit, I get
    >> bupkis.
    >>

    >
    > Hello,
    >
    > You don't tell SPICE when a diode is on or off, you only specify model
    > parameters.


    Hello again,

    Maybe I haven't correctly understood all questions when I answered first.

    Just probe the current flowing through the LED in LTspice to see
    whether it's "on" or "off". If a few milli-Amperes will be shown,
    the LED will light in a real circuit.

    Best regards,
    Helmut

    >
    > Example.for a model specification of a LED with 20mA, 1.7V.
    >
    > .model LED1 D(Is=1e-19 N=1.6 Rs=2.5 Eg=2.1)
    >
    > Replace the value D of your diode in the schematic with LED1 and
    > place the model specifications on your schematic as a SPICE-directive.
    >
    > I recommend to read some text about the basics of SPICE.
    >
    > Best regards,
    > Helmut
    >
    >
     
    Helmut Sennewald, Aug 8, 2007
    #4
  5. Dr Mitch

    D from BC Guest

    On Wed, 08 Aug 2007 07:01:27 -0700, Dr Mitch <>
    wrote:

    >How can I tell if an LED is on or off in Spice model? Currently, I'm
    >looking at the current and voltage drop, (~20mA and ~1.7V
    >respectively) but when I do this design with an actual circuit, I get
    >bupkis.


    Nahhh..It can't be...I hope you don't expect to see the LED symbol to
    actually light up?


    D from BC
     
    D from BC, Aug 8, 2007
    #5
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. BrianW
    Replies:
    3
    Views:
    3,001
    Helmut Sennewald
    Nov 16, 2003
  2. Talion
    Replies:
    1
    Views:
    651
    Mike Engelhardt
    Dec 23, 2004
  3. SaintOlas
    Replies:
    8
    Views:
    1,128
    SaintOlas
    Feb 23, 2012
  4. Felipe Paulo

    error in simulate bug zapper on ltspice

    Felipe Paulo, Oct 30, 2013, in forum: Electronic Design
    Replies:
    32
    Views:
    903
  5. Nehmo

    LED or CFL flickering with motion sensor in circuit

    Nehmo, Aug 14, 2016, in forum: General Electronics Chat
    Replies:
    19
    Views:
    4,039
    Tha fios agaibh
    Jul 22, 2017
  6. chopnhack

    Help with ADC conversion registers in PIC or possible logic in code flaw

    chopnhack, Aug 27, 2016, in forum: Microcontrollers and Programming
    Replies:
    15
    Views:
    453
    chopnhack
    Sep 1, 2016
  7. strameshkumar

    Can we use 5VDC LED in the AC line to show indication

    strameshkumar, Aug 30, 2016, in forum: General Electronics Chat
    Replies:
    5
    Views:
    291
    davenn
    Aug 30, 2016
  8. Lawrenciumbc
    Replies:
    7
    Views:
    798
    Lawrenciumbc
    Sep 20, 2016
Loading...