LTspice simulation of behavioural voltage sources

Discussion in 'Circuit Simulation & PCB Design' started by desan2012, May 9, 2017.

1. desan2012New Member

Joined:
May 9, 2017
Messages:
10
Likes:
0
Hi everyone,

I am using LTSpice IV version 4.231.

I have a polynomial fit to a current-voltage characteristic curve and would like to simulate in LTSpice using B sources.

The polynomial fit is:

Joined:
Jul 10, 2011
Messages:
9,318
Likes:
1,230
Location:
Cardiff, Wales
Welcome to ETO!
Set the bv source value to V=05407*i(n)**5+4.8027*i(n)**4 etc, where n is the identifier of the component in which current x flows.

• Like x 1
3. desan2012New Member

Joined:
May 9, 2017
Messages:
10
Likes:
0
many thanks alec_t.

Do I place the identifier 'n' on the schematic?

The equation is a polynomial fit for the I-V characteristics of a photovoltaic cell.

I carried out a couple of experiments in the lab and plotted the I-V curve at a specific irradiance.

Would 'n' therefore be Rs or Rp on the PV model?

4. DaveNew Member

Joined:
Jan 12, 1997
Messages:
-
Likes:
0

Joined:
Jul 10, 2011
Messages:
9,318
Likes:
1,230
Location:
Cardiff, Wales

I don't know what PV model you're using, but if you're interested in the Rs current then put Rs in place of n.
Here's an example with a LED and a bv source.

Joined:
Mar 17, 2009
Messages:
11,129
Likes:
564
Location:
AZ 86334
Are you saying that at a given irradiance,
the Voltage V from the panel = 0.5407*I**5 + 4.2807*I**4 + 14.649*I**3 + 16.603*I**2 + 8.4911*I + 261.88, where I is the Current output of the panel?

The attached .asc file is how to model that:

I1 is the independent variable of the simulation. The red trace shows the MPPT.

Attached Files:

• Draft36l.asc
File size:
695 bytes
Views:
55
Last edited: May 9, 2017
• Informative x 1
7. desan2012New Member

Joined:
May 9, 2017
Messages:
10
Likes:
0
Many thanks to alec_t and MikeMI.

My apologies for not getting back yesterday.

The PV equivalent circuit is the single diode model with Rs and Rsh.

My apologies for the misunderstanding. The equation is actually:

I=0.5407v^5+4.8027v^4+14.649v^3+16.603v^2-8.9411v+261.88

where I is the output current supplied by the PV cell and V is the voltage across it.

Joined:
Mar 17, 2009
Messages:
11,129
Likes:
564
Location:
AZ 86334
That would say that the short-circuit (V=0) panel current is 261.88A. I would like to see your panel

The way I interpreted the equation is that the open-circuit (I=0) output voltage of the panel is 261V and per my plot, the short-circuit (v=0) output current of the panel is ~4.2A, which is more like real panels I have worked with.

Which is it?

Last edited: May 11, 2017
9. desan2012New Member

Joined:
May 9, 2017
Messages:
10
Likes:
0
MikeMI let me cross-check with the graph and get back to you.

10. desan2012New Member

Joined:
May 9, 2017
Messages:
10
Likes:
0
Another misunderstanding. When V=0, the panel current is 261 uA (micro amperes).

For simplicity, the PV cell is the AM-1816CA. I am using it for indoor PV energy harvesting.

Joined:
Apr 17, 2007
Messages:
7,365
Likes:
973
Location:
Loveland, CO USA
ONLINE

Joined:
Jul 10, 2011
Messages:
9,318
Likes:
1,230
Location:
Cardiff, Wales
According to the spec, at 200 Lux you can harvest ~250uW. Doesn't seem much. What do you plan to do with the energy harvested?

13. desan2012New Member

Joined:
May 9, 2017
Messages:
10
Likes:
0
The AM-1816CA can produce a short-circuit current of 261 uA for a light intensity of 500 lux incident on it.

The intended application is Internet-of-things. Looking into powering low-power sensors e.g. proximity, CO2, temperature, light level sensors.

Joined:
Mar 17, 2009
Messages:
11,129
Likes:
564
Location:
AZ 86334
Units are important..., so are boundary conditions.

Here it is again:

File size:
715 bytes
Views:
41
15. desan2012New Member

Joined:
May 9, 2017
Messages:
10
Likes:
0
Appreciate the assistance MikeMI, alec_t and ronsimpson

Will keep in mind to always specify units and boundary conditions in the future.

Kind regards.

16. desan2012New Member

Joined:
May 9, 2017
Messages:
10
Likes:
0
MikeMI, could you explain how you derived the spice equation. New to LTSpice.

Read in an article online that the polynomial fit curve needs to be converted to Laplace transform for use in LTSpice??

Joined:
Mar 17, 2009
Messages:
11,129
Likes:
564
Location:
AZ 86334
You are making it too hard. Read the Help file for
B. Arbitrary Behavioral Voltage or Current Sources.

and

.DC -- Perform a DC Source Sweep Analysis