Author Topic: Modeling LED in LTspice  (Read 6171 times)

0 Members and 1 Guest are viewing this topic.

Offline Patrick66Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: my
Modeling LED in LTspice
« on: March 15, 2024, 12:32:49 am »
Hello everyone, I wanted to model the 10W LED based on the datasheet below. In total, I want to use two 10W LED and the total Rd = 5.56, Vd = 21.5V. Can anyone help me to check whether this is the correct method to model this LED based on the current to voltage graph. Thank you in advance.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19706
  • Country: gb
  • 0999
Re: Modeling LED in LTspice
« Reply #1 on: March 15, 2024, 12:06:54 pm »
I'm not sure if I understand the question.

How accurate does it need to be?

I would just use the built-in diode model.

Looked at the graph on the data sheet.

Set the Vfwd to a bit less than the forward voltage specified when the current is zero.

Calculated Ron by from the voltage vs current slope, where it's most linear.

Set Epsilon to 0.5 because it gave a more accurate curve, than 1, as suggested in the article linked below.

https://www.analog.com/en/resources/technical-articles/ltspice-simple-idealized-diode.html

You can also try using the standard diode model, with many in series and parallel, with a series resistor.
 
The following users thanked this post: Patrick66

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2742
  • Country: ca
Re: Modeling LED in LTspice
« Reply #2 on: March 17, 2024, 04:09:11 am »
Hi,

This model uses the diode model D. I played with the parameters N and RS until the VI curve was similar:




Versus the datasheet VI curve:



This should be close enough for most purposes.

I have attached the LTspice file.

Regards,
Jay_Diddy_B

« Last Edit: March 17, 2024, 04:11:49 am by Jay_Diddy_B »
 
The following users thanked this post: Patrick66

Offline MarkT

  • Frequent Contributor
  • **
  • Posts: 391
  • Country: gb
Re: Modeling LED in LTspice
« Reply #3 on: March 17, 2024, 09:23:18 am »
Model it with what it is, 4-series-4-parallel array of 3.4V 175mA LEDs?
 

Offline Patrick66Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: my
Re: Modeling LED in LTspice
« Reply #4 on: March 30, 2024, 10:33:20 am »
Hello Sir, I tried using your method to model an LED based on the datasheet below. Just wanted to know whether this is the correct way of modelling it? Hope to hear from you soon thank you.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19706
  • Country: gb
  • 0999
Re: Modeling LED in LTspice
« Reply #5 on: April 03, 2024, 09:59:03 am »
Please post the .asc file.
 

Offline Patrick66Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: my
Re: Modeling LED in LTspice
« Reply #6 on: April 03, 2024, 04:06:09 pm »
Can I model it in the form of a resistor and voltage source with an ideal diode? Where the resistor is Ron = 6 ohm and voltage source Vfwd = 20.2V when considering two 10 W led?
 

Offline Patrick66Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: my
Re: Modeling LED in LTspice
« Reply #7 on: April 03, 2024, 04:11:13 pm »
Here is the model for the 3W LED
 

Offline Patrick66Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: my
Re: Modeling LED in LTspice
« Reply #8 on: April 03, 2024, 04:26:27 pm »
Hello Sir, I have another question that I would like to ask relating to the use of two 10W LED lights. The datasheet stated that the LED produces 10W with ideal current of 700mA. Therefore, I tried simulating an open loop flyback converter with 700mA but the output voltage that I got was around 25.2V with resulting in a 17.64W system instead of 20W system. So for my calculation should I consider my system to be an 18W system that is having an output voltage of 25.2V and current of 700mA or output voltage of 28.57V and current of 700mA?
« Last Edit: April 03, 2024, 04:40:58 pm by Patrick66 »
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19706
  • Country: gb
  • 0999
Re: Modeling LED in LTspice
« Reply #9 on: April 03, 2024, 08:49:15 pm »
Here is the model for the 3W LED
That looks fine.
Hello Sir, I have another question that I would like to ask relating to the use of two 10W LED lights. The datasheet stated that the LED produces 10W with ideal current of 700mA.
10W of what? It won't be 10W of visible light. Probably between 20% and 40%. The rest will be heat.

Quote
Therefore, I tried simulating an open loop flyback converter with 700mA but the output voltage that I got was around 25.2V with resulting in a 17.64W system instead of 20W system. So for my calculation should I consider my system to be an 18W system that is having an output voltage of 25.2V and current of 700mA or output voltage of 28.57V and current of 700mA?
It's not a good idea to go open loop. Always include some current limiting.

Regarding the power: it's normally a bad idea to run an LED at its maximum rating. De-rated to 80%. There will be something like a 10% drop in light output, as LEDs are less efficient at high currents, but a much longer life, as it'll run cooler.
« Last Edit: April 05, 2024, 07:08:20 am by Zero999 »
 
The following users thanked this post: Patrick66

Offline Patrick66Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: my
Re: Modeling LED in LTspice
« Reply #10 on: April 05, 2024, 06:19:46 am »
Hello Sir, can I use combinations of diode, resistor and voltage source to represent my LED? Currently for the two 10W LED, I'm using an ideal diode, resistor of 5.56 ohm and voltage source of 21.4V to model two 10W LEDs. The reason that I use this method instead of the other method of changing the IS, Rs, N value is because I'm able to get a more accurate result using the diode, resistor and voltage source method. Thank you sir for your help.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19706
  • Country: gb
  • 0999
Re: Modeling LED in LTspice
« Reply #11 on: April 05, 2024, 08:20:12 am »
Hello Sir, can I use combinations of diode, resistor and voltage source to represent my LED? Currently for the two 10W LED, I'm using an ideal diode, resistor of 5.56 ohm and voltage source of 21.4V to model two 10W LEDs. The reason that I use this method instead of the other method of changing the IS, Rs, N value is because I'm able to get a more accurate result using the diode, resistor and voltage source method. Thank you sir for your help.
That will work, but why not learn a bit more about how SPICE works?

Here are some articles.
https://ltwiki.org/LTspiceHelp/LTspiceHelp/D_Diode.htm
https://www.analog.com/en/resources/technical-articles/ltspice-simple-idealized-diode.html
https://www.analog.com/en/resources/technical-articles/ltspice-combining-multiple-model-instances-into-one-symbol.html

Also note that this really isn't too critical. In real life, the forward voltage varies widely, from part to part, at different temperatures and drive currents. There's little point in perfection.
 
The following users thanked this post: Patrick66

Offline Patrick66Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: my
Re: Modeling LED in LTspice
« Reply #12 on: April 05, 2024, 02:25:27 pm »
Thank you so much Sir for the help.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf