Author Topic: [LTSpice] Simulate Led Strip  (Read 4976 times)

0 Members and 1 Guest are viewing this topic.

Offline lfaborgesTopic starter

  • Newbie
  • Posts: 7
  • Country: br
[LTSpice] Simulate Led Strip
« on: August 08, 2020, 02:37:40 pm »
Hello friends.

I'm trying to simulate on LTSpice, a led strip I bought.



Voltage: 12V
Power: 10W / m
White Leds: 120 leds / m
Color Temp.: 4000K

I'm going to use 4.4m (44W -528 leds).

How do I simulate this in LTSpice?

Thanks :)
 

Offline OM222O

  • Frequent Contributor
  • **
  • Posts: 768
  • Country: gb
Re: [LTSpice] Simulate Led Strip
« Reply #1 on: August 08, 2020, 03:23:58 pm »
1) Why would you want to simulate a led strip in ltspice?

2) you can use a constant current sink attached to a 12v source and make it draw the right amount to be 44watts, which is not very useful?

3) you can also use a diode + small value resistor to allow a large current to pass through, still not ideal / useful?
 

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2766
  • Country: ca
Re: [LTSpice] Simulate Led Strip
« Reply #2 on: August 08, 2020, 03:44:14 pm »
Hi,

The answer is like this:



I have explained how this works on the model.

I have attached the LTspice model.

Regards,
Jay_Diddy_B

* LED strip model.asc (1.06 kB - downloaded 318 times.)
 
The following users thanked this post: edavid, lfaborges

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13218
Re: [LTSpice] Simulate Led Strip
« Reply #3 on: August 08, 2020, 04:16:51 pm »
You don't have enough data, but we can make some assumptions.
To simulate it accurately you'd have to know the Vf of the individual LEDs (and at what If), and the value of the series resistor for each string of three LEDs.

From the specs you've given, the If per LED must be approx 20.8 mA ( (10W/12V)/(120/3) ).  From that and the Vf at that current, you can work out the dropper resistor for each string of three LEDs.   

For the actual modelling Jay_Diddy_B has already posted a solution that's better than mine.

« Last Edit: August 08, 2020, 04:29:51 pm by Ian.M »
 

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2766
  • Country: ca
Re: [LTSpice] Simulate Led Strip
« Reply #4 on: August 08, 2020, 04:53:04 pm »
Hi,

Ian.M +1

There is not enough information to make an accurate model.

It looks from the photo that the Resistor is marked 101 which is 100 \$\Omega\$. This is the easy part.

The resistor could also be 181 which is 180 \$\Omega\$. It is hard to see from the photo.

I just used the LED in the library. To improve the accuracy of the model you have to measure the VI characteristics of a section of the tape.

An LED model can be created so that the VI curves of the model and the hardware match.

Jay_Diddy_B
« Last Edit: August 08, 2020, 04:54:44 pm by Jay_Diddy_B »
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13218
Re: [LTSpice] Simulate Led Strip
« Reply #5 on: August 08, 2020, 05:03:02 pm »
Also, if you are driving it with a PWM, its capacitance may be significant to your design.  Unless you've got a capmeter that can handle applying a bias current to forward biassed semiconductor junctions, that may be difficult to measure.
 

Offline lfaborgesTopic starter

  • Newbie
  • Posts: 7
  • Country: br
Re: [LTSpice] Simulate Led Strip
« Reply #6 on: August 08, 2020, 08:06:04 pm »
First thanks for everyone for the answers.

I need to make this led strip light up in a system that is powered by a constant current regulator (2.8A). I did some field tests and the input voltage was 7V.

I will still test the model proposed here in the forum and in the future I will give more answers.
 

Offline lfaborgesTopic starter

  • Newbie
  • Posts: 7
  • Country: br
Re: [LTSpice] Simulate Led Strip
« Reply #7 on: August 09, 2020, 02:19:56 pm »
What I've been doing is using a rectifier bridge and a capacitor, to try to light the LEDs. The problem is that the voltage has been below 12V.

The only thing I can't change about the project is the 2.8A current power supply

In the image, the green signal is the current source 2.8A and the blue signal is the measurement on the LED.
« Last Edit: August 09, 2020, 02:22:16 pm by lfaborges »
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: [LTSpice] Simulate Led Strip
« Reply #8 on: August 09, 2020, 03:02:18 pm »
What I've been doing is using a rectifier bridge and a capacitor, to try to light the LEDs. The problem is that the voltage has been below 12V.

The only thing I can't change about the project is the 2.8A current power supply

In the image, the green signal is the current source 2.8A and the blue signal is the measurement on the LED.
Where are you getting the current source from in real life? LED strip is normally designed to work from a constant voltage source.

LEDs have a constant voltage characteristic and around 9V is exactly what you should expect from three LEDs connected in series.
 

Offline Ed.Kloonk

  • Super Contributor
  • ***
  • Posts: 4000
  • Country: au
  • Cat video aficionado
Re: [LTSpice] Simulate Led Strip
« Reply #9 on: August 09, 2020, 03:20:24 pm »
Think about factoring in any volt drop on the supply wires to the strip if it is far away from your power source.

iratus parum formica
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: [LTSpice] Simulate Led Strip
« Reply #10 on: August 09, 2020, 04:09:32 pm »
Think about factoring in any volt drop on the supply wires to the strip if it is far away from your power source.
Good point, but if it's a constant current supply, the voltage drop is less of an issue, as long as it can increase sufficiently increase the voltage to compensate.
 

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2766
  • Country: ca
Re: [LTSpice] Simulate Led Strip
« Reply #11 on: August 09, 2020, 04:51:56 pm »
What I've been doing is using a rectifier bridge and a capacitor, to try to light the LEDs. The problem is that the voltage has been below 12V.

The only thing I can't change about the project is the 2.8A current power supply

In the image, the green signal is the current source 2.8A and the blue signal is the measurement on the LED.

Are you measuring the voltage across D1, just the LEDs, or the voltage across C5?

The resistor R1, is part of the LED strip. Each three LED section of the strip has a 100 \$\Omega\$ resistor in series with three LEDs.

There will be voltage drop along the strip. This means if you feed the strip from one end the LEDs will be brighter at the end you feed than at the far end.

Please attach the .asc file to your posts.

You only need to run the simulation for 200ms, not 5 seconds.

Regards,
Jay_Diddy_B
 

Offline lfaborgesTopic starter

  • Newbie
  • Posts: 7
  • Country: br
Re: [LTSpice] Simulate Led Strip
« Reply #12 on: August 09, 2020, 05:33:07 pm »
What I've been doing is using a rectifier bridge and a capacitor, to try to light the LEDs. The problem is that the voltage has been below 12V.

The only thing I can't change about the project is the 2.8A current power supply

In the image, the green signal is the current source 2.8A and the blue signal is the measurement on the LED.

Are you measuring the voltage across D1, just the LEDs, or the voltage across C5?

The resistor R1, is part of the LED strip. Each three LED section of the strip has a 100 \$\Omega\$ resistor in series with three LEDs.

There will be voltage drop along the strip. This means if you feed the strip from one end the LEDs will be brighter at the end you feed than at the far end.

Please attach the .asc file to your posts.

You only need to run the simulation for 200ms, not 5 seconds.

Regards,
Jay_Diddy_B

I am measuring after the capacitor.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: [LTSpice] Simulate Led Strip
« Reply #13 on: August 09, 2020, 05:56:02 pm »
What I've been doing is using a rectifier bridge and a capacitor, to try to light the LEDs. The problem is that the voltage has been below 12V.

The only thing I can't change about the project is the 2.8A current power supply

In the image, the green signal is the current source 2.8A and the blue signal is the measurement on the LED.

Are you measuring the voltage across D1, just the LEDs, or the voltage across C5?

The resistor R1, is part of the LED strip. Each three LED section of the strip has a 100 \$\Omega\$ resistor in series with three LEDs.

There will be voltage drop along the strip. This means if you feed the strip from one end the LEDs will be brighter at the end you feed than at the far end.

Please attach the .asc file to your posts.

You only need to run the simulation for 200ms, not 5 seconds.

Regards,
Jay_Diddy_B

I am measuring after the capacitor.
What voltage did you think you'll measure?

It's what you should expect. M = length = 176, which means R1's value is divided by 176, leaving only 0.57 Ohms, so most of the voltage drop will be due to the LEDs' forward voltage. If you set length to 1, the voltage will increase to 192V.
 

Offline lfaborgesTopic starter

  • Newbie
  • Posts: 7
  • Country: br
Re: [LTSpice] Simulate Led Strip
« Reply #14 on: August 09, 2020, 06:51:27 pm »
What I've been doing is using a rectifier bridge and a capacitor, to try to light the LEDs. The problem is that the voltage has been below 12V.

The only thing I can't change about the project is the 2.8A current power supply

In the image, the green signal is the current source 2.8A and the blue signal is the measurement on the LED.

Are you measuring the voltage across D1, just the LEDs, or the voltage across C5?

The resistor R1, is part of the LED strip. Each three LED section of the strip has a 100 \$\Omega\$ resistor in series with three LEDs.

There will be voltage drop along the strip. This means if you feed the strip from one end the LEDs will be brighter at the end you feed than at the far end.

Please attach the .asc file to your posts.

You only need to run the simulation for 200ms, not 5 seconds.

Regards,
Jay_Diddy_B

I am measuring after the capacitor.
What voltage did you think you'll measure?

It's what you should expect. M = length = 176, which means R1's value is divided by 176, leaving only 0.57 Ohms, so most of the voltage drop will be due to the LEDs' forward voltage. If you set length to 1, the voltage will increase to 192V.

I expect 12V. I tested an LM7812, but the input voltage was low and the output resulted in approximately 8V. I thought about using a TRIAC or a Zener Diode if the voltage went up too much. But I can never find the perfect model to find 12V on the LED.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: [LTSpice] Simulate Led Strip
« Reply #15 on: August 09, 2020, 08:10:56 pm »
What I've been doing is using a rectifier bridge and a capacitor, to try to light the LEDs. The problem is that the voltage has been below 12V.

The only thing I can't change about the project is the 2.8A current power supply

In the image, the green signal is the current source 2.8A and the blue signal is the measurement on the LED.

Are you measuring the voltage across D1, just the LEDs, or the voltage across C5?

The resistor R1, is part of the LED strip. Each three LED section of the strip has a 100 \$\Omega\$ resistor in series with three LEDs.

There will be voltage drop along the strip. This means if you feed the strip from one end the LEDs will be brighter at the end you feed than at the far end.

Please attach the .asc file to your posts.

You only need to run the simulation for 200ms, not 5 seconds.

Regards,
Jay_Diddy_B

I am measuring after the capacitor.
What voltage did you think you'll measure?

It's what you should expect. M = length = 176, which means R1's value is divided by 176, leaving only 0.57 Ohms, so most of the voltage drop will be due to the LEDs' forward voltage. If you set length to 1, the voltage will increase to 192V.

I expect 12V. I tested an LM7812, but the input voltage was low and the output resulted in approximately 8V. I thought about using a TRIAC or a Zener Diode if the voltage went up too much. But I can never find the perfect model to find 12V on the LED.
That's hardly surprising, since the LM7812 is only rated to 1A, it would have current limited.
 

Offline ozcar

  • Frequent Contributor
  • **
  • Posts: 344
  • Country: au
Re: [LTSpice] Simulate Led Strip
« Reply #16 on: August 09, 2020, 11:21:22 pm »
As stated, the problem is how to drive exactly 528 of the LEDs from a 2800mA CC supply. As somebody already calculated each segment of strip (three LEDs) draws around 20.8mA, so 2800mA drives 2800/20.8 = 134 segments, or only 402 LEDs. 528 LEDs worth will light up, but will not be running at full brightness. Connected like that the choice is 402 LEDs at full brightness, or some larger number of LEDs with diminishing brightness of each LED as more are added.

The voltaqge range that the power supply can operate over was not specified. If it can output 24V (I would guess not), you could connect two lengths of strip, each with 402 LEDs, in series, but then you have 804 LEDs rather than the desired 528.

As a theoretical exercise, I suppose this could be an interesting challenge.

Myself, I would drive the strip from a 12V CV supply as the maker intended.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: [LTSpice] Simulate Led Strip
« Reply #17 on: August 10, 2020, 08:56:23 am »
First thanks for everyone for the answers.

I need to make this led strip light up in a system that is powered by a constant current regulator (2.8A). I did some field tests and the input voltage was 7V.

I will still test the model proposed here in the forum and in the future I will give more answers.
Presumably your constant current regulator outputs DC? If so, then you made a mistake in your simulation by using an AC current source.

You need a constant voltage source, to power your LED strip. If it's 10W per metre and you're using 4.4m, then that's a total of 44W.

I = P/V = 44/12 = 32/3A

Swap the 2.8A constant current power supply for a 12V power supply rated to above 32/3A, so 4A or 5A will do.
« Last Edit: August 10, 2020, 08:58:05 am by Zero999 »
 

Offline lfaborgesTopic starter

  • Newbie
  • Posts: 7
  • Country: br
Re: [LTSpice] Simulate Led Strip
« Reply #18 on: August 10, 2020, 11:54:34 am »
First thanks for everyone for the answers.

I need to make this led strip light up in a system that is powered by a constant current regulator (2.8A). I did some field tests and the input voltage was 7V.

I will still test the model proposed here in the forum and in the future I will give more answers.
Presumably your constant current regulator outputs DC? If so, then you made a mistake in your simulation by using an AC current source.

You need a constant voltage source, to power your LED strip. If it's 10W per metre and you're using 4.4m, then that's a total of 44W.

I = P/V = 44/12 = 32/3A

Swap the 2.8A constant current power supply for a 12V power supply rated to above 32/3A, so 4A or 5A will do.

The circuit in which I am going to install this LED, has this constant current source of 2.8A [AC]. So I said that it is something that I cannot change in the project.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: [LTSpice] Simulate Led Strip
« Reply #19 on: August 10, 2020, 12:16:11 pm »
First thanks for everyone for the answers.

I need to make this led strip light up in a system that is powered by a constant current regulator (2.8A). I did some field tests and the input voltage was 7V.

I will still test the model proposed here in the forum and in the future I will give more answers.
Presumably your constant current regulator outputs DC? If so, then you made a mistake in your simulation by using an AC current source.

You need a constant voltage source, to power your LED strip. If it's 10W per metre and you're using 4.4m, then that's a total of 44W.

I = P/V = 44/12 = 32/3A

Swap the 2.8A constant current power supply for a 12V power supply rated to above 32/3A, so 4A or 5A will do.

The circuit in which I am going to install this LED, has this constant current source of 2.8A [AC]. So I said that it is something that I cannot change in the project.
Then you're out of luck. The LED strip is completely unsuitable for your power supply  |O
 

Offline lfaborgesTopic starter

  • Newbie
  • Posts: 7
  • Country: br
Re: [LTSpice] Simulate Led Strip
« Reply #20 on: August 10, 2020, 03:00:44 pm »
First thanks for everyone for the answers.

I need to make this led strip light up in a system that is powered by a constant current regulator (2.8A). I did some field tests and the input voltage was 7V.

I will still test the model proposed here in the forum and in the future I will give more answers.
Presumably your constant current regulator outputs DC? If so, then you made a mistake in your simulation by using an AC current source.

You need a constant voltage source, to power your LED strip. If it's 10W per metre and you're using 4.4m, then that's a total of 44W.

I = P/V = 44/12 = 32/3A

Swap the 2.8A constant current power supply for a 12V power supply rated to above 32/3A, so 4A or 5A will do.

The circuit in which I am going to install this LED, has this constant current source of 2.8A [AC]. So I said that it is something that I cannot change in the project.
Then you're out of luck. The LED strip is completely unsuitable for your power supply  |O

Don't say that haha ​​I need to find a solution  :scared:
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: [LTSpice] Simulate Led Strip
« Reply #21 on: August 10, 2020, 03:18:09 pm »
First thanks for everyone for the answers.

I need to make this led strip light up in a system that is powered by a constant current regulator (2.8A). I did some field tests and the input voltage was 7V.

I will still test the model proposed here in the forum and in the future I will give more answers.
Presumably your constant current regulator outputs DC? If so, then you made a mistake in your simulation by using an AC current source.

You need a constant voltage source, to power your LED strip. If it's 10W per metre and you're using 4.4m, then that's a total of 44W.

I = P/V = 44/12 = 32/3A

Swap the 2.8A constant current power supply for a 12V power supply rated to above 32/3A, so 4A or 5A will do.

The circuit in which I am going to install this LED, has this constant current source of 2.8A [AC]. So I said that it is something that I cannot change in the project.
Then you're out of luck. The LED strip is completely unsuitable for your power supply  |O

Don't say that haha ​​I need to find a solution  :scared:
You need to use plain LEDs, designed to work off a constant current source.

Please post a schematic of the whole thing.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf