This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

High Brightness LED macro

Other Parts Discussed in Thread: TINA-TI, TPS92411

Greetings.

I find myself limited while simulating LED circuits because I can't find High Bright LED models in TINA.

I'm running version 9.3 and the HB LEDs i want to include work on 3,4 volts, using up 100mA.

Could you be so kind as to tell me how to create a model or show me a good example?

Many Thanks

  • Jorge,

    Is there a particular LED that you have in mind. Many manufacturers will provide LED spice models and you should be able to import PSpice compatible LED models into TINA-TI using the approach described in this document and video.

    Best regards,

  • I also wanted to point out that within TINA-TI, if you click on the "Semiconductor" tab, there should be an option to look for pre integrated LEDs in the tool. You can try using these.

    Another option would be to use the LED in the TPS92411 TINA-TI Reference design below (if that works for your application).

    You can also search for all TINA-TI LED driver models from TI using the link below and check if any of those LEDs will work for you.

    Thanks,

  • Thank you so much, i'll be working on your suggestions.
  • Hello again.

    I set out to find a spice model but the manufacturer has none. The only thing I found was a chart with info. The specific led i want has this info available: RF-WW05A3SWQ4-N 5 mm 23400 mcd 5500k-7000k (Cold White / Natural) 15º 20 mA 3,2~4,0 VDC

    I also found a supposed example in different forum: .model HBled D(Is=2e-17 Rs=0.1 RL=1e6 N=3.40 Cjo=100p Iave=20m Ipk=100m mfg=Luxeon type=LED).
    If this is a valid model, do you know what type of file I sould create? Is it just putting this text in a .txt file and saving as .TSM inside the proper folder, and importing into TINA as Macro? Or does it need to be formatted in a specific way?

    Many thanks
  • Hi Jorge,

    This syntax is not a PSpice compatible syntax particularly mfg=Luxeon type=LED. It looks like this model may be specific to the tool it came from. I would remove these 2 entries and try importing it into TINA-TI using the method that I described in my previous post (You will end up creating a TSM file which you can then insert into your TINA-TI schematic.

    Best regards,

  • Thank you very much for your continued support!

    At this time I managed to find Spice models, BUT the problem is with the import itself.

    I took this Spice3 model, copied it into a TXT file and saved it as All Files with the extension ".cir":

    **********************************
    * Copyright:                     *
    *   Thomatronik GmbH, Germany    *
    *   info@thomatronik.de          *
    **********************************
    *   SPICE3
    .model w06g d is = 8.64895E-008 n = 2.09659 rs = 0.0250486
    + eg = 1.11 xti = 3 tnom = 27
    + cjo = 2.83146E-011 vj = 0.7 m = 0.343373 fc = 0.5
    + tt = 2.95956E-006 bv = 660 ibv = 1 af = 1 kf = 0

    I followed your video's tutorial, Tools>NewMacroWizard>FromFile>Next, BUT the result is blank. Nothing is read or imported by TINA.

    So I ask: what should we do with the TXT files we download from the manufacturers site? Is it right to save them as ".cir"? Should I use the PSpice models instead of the Spice3? Can the problem be originated from something else?

    If you can give access to some reading on all the aspects of creating and importing models to TINA, please do so, I don't mind reading.

    Many Thanks!

  • Hi Jorge,

    I made some edits to the model structure that you provided. What you have shown is just the definition of the diode. I wrapped it in a subcircuit and called this model.

    **********************************

    * Copyright:                     *

    *   Thomatronik GmbH, Germany    *

    *   info@thomatronik.de          *

    **********************************

    *   SPICE3

    .SUBCKT LED A K

    D_LED A K w06g

    .model w06g d is = 8.64895E-008 n = 2.09659 rs = 0.0250486

    + eg = 1.11 xti = 3 tnom = 27

    + cjo = 2.83146E-011 vj = 0.7 m = 0.343373 fc = 0.5

    + tt = 2.95956E-006 bv = 660 ibv = 1 af = 1 kf = 0

    .ENDS

    After this I was able to use the procedure described above to get it to work. Attached below is the TSM file for the LED and also a TSC testbench verifying some basic functionality.

    LED.TSM

    LED.TSC

    Let me know if this works for you.

    Thanks

  • Wonderful!

    My initial goal of importing models into TINA was achieved! Now I also now that everytime I need this component I can just Insert>Macro.

    (UPDATE): this is crazy, those guys from Vishay sent me the spice model of a bridge rectifier. I searched for w06 to find a datasheet and ended up by finding this out. I'll look for another exemple of a (real) LED.

    (UPDATE):

    Your model .tsc works perfectly, thank you.

    I found some other stuff from another manufacturer (Osram), that I've pasted down. It seems to be a Library(?). I'm currently waiting for a reply from Osram as to how to use this in TINA, since it is more complex than what I'm now used to.

    * NAME LED: TOPLED LY T67D
    * INFORMATION: Vf binning with temperature behaviour
    * DATA SHEET VERSION: 1.5 2013-09-12
    * LIB version: 1.0 2014-09-11
    * PLEASE REGARD THE 'ReadMe and DISCLAIMER for - libraries with *_TEMP.TXT' file
    * AUTHOR: Biswenger M.


    .MODEL LY_T67D_J3-min_TRS D
    + IS=1.3648E-20
    + N=1.8363
    + RS=0.66952
    + TRS1=-3.11779151007036E-02
    + TRS2=6.33960517541107E-04
    + EG=2.64081655337945
    + XTI=3
    + CJO=0.00000000006


    .MODEL LY_T67D_J3-typ_TRS D
    + IS=1.0457E-20
    + N=1.8825
    + RS=1.2705
    + TRS1=-2.46883372548574E-02
    + TRS2=3.34505472780603E-04
    + EG=2.64081655337945
    + XTI=3
    + CJO=0.00000000006


    .MODEL LY_T67D_J3-max_TRS D
    + IS=2.4421E-20
    + N=1.9204
    + RS=5.0632
    + TRS1=-6.16693583249553E-03
    + TRS2=8.39582048397941E-05
    + EG=2.64081655337945
    + XTI=3
    + CJO=0.00000000006


    .MODEL LY_T67D_M5-min_TRS D
    + IS=2.4421E-20
    + N=1.9204
    + RS=5.0632
    + TRS1=-6.16693583249553E-03
    + TRS2=8.39582048397941E-05
    + EG=2.64081655337945
    + XTI=3
    + CJO=0.00000000006


    .MODEL LY_T67D_M5-typ_TRS D
    + IS=1.7978E-20
    + N=1.9038
    + RS=11.447
    + TRS1=-2.68872935282591E-03
    + TRS2=3.70915046643935E-05
    + EG=2.64081655337945
    + XTI=3
    + CJO=0.00000000006


    .MODEL LY_T67D_M5-max_TRS D
    + IS=1.8812E-20
    + N=1.9047
    + RS=17.759
    + TRS1=-1.72147789644715E-03
    + TRS2=2.39234115621744E-05
    + EG=2.64081655337945
    + XTI=3
    + CJO=0.00000000006


    .MODEL LY_T67D_S5-min_TRS D
    + IS=1.8812E-20
    + N=1.9047
    + RS=17.759
    + TRS1=-1.72147789644715E-03
    + TRS2=2.39234115621744E-05
    + EG=2.64081655337945
    + XTI=3
    + CJO=0.00000000006


    .MODEL LY_T67D_S5-typ_TRS D
    + IS=3.2999E-20
    + N=1.9371
    + RS=23.68
    + TRS1=-1.33729513693577E-03
    + TRS2=1.79219859983268E-05
    + EG=2.64081655337945
    + XTI=3
    + CJO=0.00000000006


    .MODEL LY_T67D_S5-max_TRS D
    + IS=7.8941E-20
    + N=2.0101
    + RS=28.329
    + TRS1=-1.30615972779897E-03
    + TRS2=1.50055484709575E-05
    + EG=2.64081655337945
    + XTI=3
    + CJO=0.00000000006

    *****  min / typ / max ***

    .MODEL LY_T67D-min_TRS D
    + IS=1.3648E-20
    + N=1.8363
    + RS=0.66952
    + TRS1=-3.11779151007036E-02
    + TRS2=6.33960517541107E-04
    + EG=2.64081655337945
    + XTI=3
    + CJO=0.00000000006

    .MODEL LY_T67D-typ_TRS D
    + IS=1.5687E-20
    + N=1.901
    + RS=12.511
    + TRS1=-2.50963222340261E-03
    + TRS2=3.39601387859087E-05
    + EG=2.64081655337945
    + XTI=3
    + CJO=0.00000000006

    .MODEL LY_T67D-max_TRS D
    + IS=7.8941E-20
    + N=2.0101
    + RS=28.329
    + TRS1=-1.30615972779897E-03
    + TRS2=1.50055484709575E-05
    + EG=2.64081655337945
    + XTI=3
    + CJO=0.00000000006

    Many thanks again, I'll give some more feedback as soon as I get results.

  • Yes, I believe this is a library. You can follow the procedure that I described above to create individual TINA-TI TSM files for these diodes and use them in your application.
  • Ok, I'll remember to add the ".sbckt" part and the ".ends" and give it a go.

    My very best regards