开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Checking the schematic by SPICE simulation


 

开云体育

As I understand it, I have to make a copy of the schematic and add voltage sources (power and signal) and a load. Then add to that the simulation command. But how do I introduce the models and subcircuits for the active components?

What would be much easier for me is to be able to copy the schematic into LTspice (as that is what I use) and do the simulation in that environment. But is is possible to do that, i.e. can KiCad export a schematic (or even a netlist) that SPICE understands?

This is important because it can be a costly mistake not to realise that the KiCad opamp symbol has the + input uppermost, whereas it is most common, I think, to see the - input uppermost. The EDR can't detect that error, of course.

--
OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying

Virus-free.


 

I believe the most recent version (which I believe is what you are using) of kicad can export to LTspice. I haven't tried it but presume there is a specific export section in the file menu, least that is where I would expect to find it.


On Fri, 21 Jun 2024 at 16:05, John Woodgate via <jmw=[email protected]> wrote:

As I understand it, I have to make a copy of the schematic and add voltage sources (power and signal) and a load. Then add to that the simulation command. But how do I introduce the models and subcircuits for the active components?

What would be much easier for me is to be able to copy the schematic into LTspice (as that is what I use) and do the simulation in that environment. But is is possible to do that, i.e. can KiCad export a schematic (or even a netlist) that SPICE understands?

This is important because it can be a costly mistake not to realise that the KiCad opamp symbol has the + input uppermost, whereas it is most common, I think, to see the - input uppermost. The EDR can't detect that error, of course.

--
OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying

Virus-free.


 

开云体育

Thank you. I will investigate whether I can work on it in the SPICE environment.

On 2024-06-21 16:53, Alan Pearce via groups.io wrote:
I believe the most recent version (which I believe is what you are using) of kicad can export to LTspice. I haven't tried it but presume there is a specific export section in the file menu, least that is where I would expect to find it.


On Fri, 21 Jun 2024 at 16:05, John Woodgate via <jmw=[email protected]> wrote:

As I understand it, I have to make a copy of the schematic and add voltage sources (power and signal) and a load. Then add to that the simulation command. But how do I introduce the models and subcircuits for the active components?

What would be much easier for me is to be able to copy the schematic into LTspice (as that is what I use) and do the simulation in that environment. But is is possible to do that, i.e. can KiCad export a schematic (or even a netlist) that SPICE understands?

This is important because it can be a costly mistake not to realise that the KiCad opamp symbol has the + input uppermost, whereas it is most common, I think, to see the - input uppermost. The EDR can't detect that error, of course.

--
OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying

Virus-free.
--
OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying


 

Yes the pin positions are more common with -ive uppermost, but not
always.

The EDR cannot detect this because it in NOT an error it's just how the
symbol was drawn. It's down to the designer to connect the components to
the correct pin.

If you don't like it, then change the symbol...
I can't stand the American electrolytic symbol, so I change that to the
one that I've used for decades, the filled box for -ive and unfilled for
+ive

This highlights a VERY important point for ANY CAD system be it Kicad,
Eagle, Autocad, or any other design tool.

You NEVER use the provided symbols for live work. You ONLY use symbols
that you have checked and verified as good. These you save in your own
libraries and that's what you use when building your design on the
screen. It protects you from an unknown change being distributed to the
system that you don't spot, so when you use the part again you get
something different.

Not a problem on a single board "kitchen sink" project you just curse at
it, and bodge it. But if that happens on your 4000 board production run
you might be looking for a new job :-)

When you think about it, you only use a very small handful of components
in amateur projects so it does not take long to build up your own
libraries, and most of the provided ones will be perfectly OK so it's
just a matter of copying therm across to your own libs.


Andy



On Fri, 21 Jun 2024 16:04:18 +0100
"John Woodgate" <jmw@...> wrote:

As I understand it, I have to make a copy of the schematic and add
voltage sources (power and signal) and a load. Then add to that the
simulation command. But how do I introduce the models and subcircuits
for the active components?

What would be much easier for me is to be able to copy the schematic
into LTspice (as that is what I use) and do the simulation in that
environment. But is is possible to do that, i.e. can KiCad export a
schematic (or even a netlist) that SPICE understands?

This is important because it can be a costly mistake not to realise that
the KiCad opamp symbol has the + input uppermost, whereas it is most
common, I think, to see the - input uppermost. The EDR can't detect that
error, of course.

--
Signature OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com





 

开云体育

I can accept all you say, but for my limited work I think that creating new libraries is not justified. The point about the opamp is that the EDR won't tell you that you have provided strong positive feedback because you have not noticed that the + input is at the top. An .AC might also not tell you, but a .TRAN would. My projects are now 'kitchen sink' - special test equipment, usually one-off, but when I was in industry, 4000 would be a very modest run. In those days, it was black tape on drafting film.

On 2024-06-21 21:46, Andy wrote:
Yes the pin positions are more common with -ive uppermost, but not
always. 

The EDR cannot detect this because it in NOT an error it's just how the
symbol was drawn. It's down to the designer to connect the components to
the correct pin.

If you don't like it, then change the symbol...
I can't stand the American electrolytic symbol, so I change that to the
one that I've used for decades, the filled box for -ive and unfilled for
+ive

This highlights a VERY important point for ANY CAD system be it Kicad,
Eagle,  Autocad, or any other design tool.

You NEVER use the provided symbols for live work. You ONLY use symbols
that you have checked and verified as good. These you save in your own
libraries and that's what you use when building your design on the
screen. It protects you from an unknown change being distributed to the
system that you don't spot, so when you use the part again you get
something different.

Not a problem on a single board "kitchen sink" project you just curse at
it, and bodge it. But if that happens on your 4000 board production run
you might be looking for a new job :-)

When you think about it, you only use a very small handful of components
in amateur projects so it does not take long to build up your own
libraries, and most of the provided ones will be perfectly OK so it's
just a matter of copying therm across to your own libs.


Andy



On Fri, 21 Jun 2024 16:04:18 +0100
"John Woodgate" <jmw@...> wrote:

As I understand it, I have to make a copy of the schematic and add 
voltage sources (power and signal) and a load. Then add to that the 
simulation command. But how do I introduce the models and subcircuits 
for the active components?

What would be much easier for me is to be able to copy the schematic 
into LTspice (as that is what I use) and do the simulation in that 
environment. But is is possible to do that, i.e. can KiCad export a 
schematic (or even a netlist) that SPICE understands?

This is important because it can be a costly mistake not to realise that 
the KiCad opamp symbol has the + input uppermost, whereas it is most 
common, I think, to see the - input uppermost. The EDR can't detect that 
error, of course.

-- 
Signature OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying

-- 
This email has been checked for viruses by AVG antivirus software.










--
OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying

Virus-free.


 

Creating libs etc is very easy and moving things from one lib to another
is also easy. It's a task worth getting to know.

The EDR is not there to tell you that your design won't work, its to
ensure that your connection are all there.

I've never used the LTspice or Spice function of Kicad, but I do use LT
spice stand alone.

When I started, I did only one board with tape and dots.. Fortunately it
was a training exercise, and very shortly after we got an early PCB
layout system Racal Kadet I think. The layout techs would not let us
engineers near the thing, I think they thought (probably correctly) that
we would have it in bits to see what made it tick :-]

Andy





On Fri, 21 Jun 2024
22:10:37 +0100 "John Woodgate" <jmw@...> wrote:

I can accept all you say, but for my limited work I think that creating
new libraries is not justified. The point about the opamp is that the
EDR won't tell you that you have provided strong positive feedback
because you have not noticed that the + input is at the top. An .AC
might also not tell you, but a .TRAN would. My projects are now
'kitchen sink' - special test equipment, usually one-off, but when I
was in industry, 4000 would be a very modest run. In those days, it was
black tape on drafting film.

On 2024-06-21 21:46, Andy wrote:
Yes the pin positions are more common with -ive uppermost, but not
always.

The EDR cannot detect this because it in NOT an error it's just how
the symbol was drawn. It's down to the designer to connect the
components to the correct pin.

If you don't like it, then change the symbol...
I can't stand the American electrolytic symbol, so I change that to
the one that I've used for decades, the filled box for -ive and
unfilled for +ive

This highlights a VERY important point for ANY CAD system be it Kicad,
Eagle, Autocad, or any other design tool.

You NEVER use the provided symbols for live work. You ONLY use symbols
that you have checked and verified as good. These you save in your own
libraries and that's what you use when building your design on the
screen. It protects you from an unknown change being distributed to
the system that you don't spot, so when you use the part again you get
something different.

Not a problem on a single board "kitchen sink" project you just curse
at it, and bodge it. But if that happens on your 4000 board
production run you might be looking for a new job :-)

When you think about it, you only use a very small handful of
components in amateur projects so it does not take long to build up
your own libraries, and most of the provided ones will be perfectly
OK so it's just a matter of copying therm across to your own libs.


Andy



On Fri, 21 Jun 2024 16:04:18 +0100
"John Woodgate"<jmw@...> wrote:

As I understand it, I have to make a copy of the schematic and add
voltage sources (power and signal) and a load. Then add to that the
simulation command. But how do I introduce the models and subcircuits
for the active components?

What would be much easier for me is to be able to copy the schematic
into LTspice (as that is what I use) and do the simulation in that
environment. But is is possible to do that, i.e. can KiCad export a
schematic (or even a netlist) that SPICE understands?

This is important because it can be a costly mistake not to realise
that the KiCad opamp symbol has the + input uppermost, whereas it is
most common, I think, to see the - input uppermost. The EDR can't
detect that error, of course.

--
Signature OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com






--
Signature OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying





 

开云体育

I expect you are right, and I'm into learning still, but it takes time to grasp the nettle.

On 2024-06-21 23:07, Andy wrote:
Creating libs etc is very easy and moving things from one lib to another
is also easy. It's a task worth getting to know.

The EDR is not there to tell you that your design won't work, its to
ensure that your connection are all there.

I've never used the LTspice or Spice function of Kicad, but I do use LT
spice stand alone.

When I started, I did only one board with tape and dots.. Fortunately it
was a training exercise, and very shortly after we got an early PCB
layout system Racal Kadet I think. The layout techs would not let us
engineers near the thing, I think they thought (probably correctly) that
we would have it in bits to see what made it tick :-]

Andy
 

 


 On Fri, 21 Jun 2024
22:10:37 +0100 "John Woodgate" <jmw@...> wrote:

I can accept all you say, but for my limited work I think that creating 
new libraries is not justified. The point about the opamp is that the 
EDR won't tell you that you have provided strong positive feedback 
because you have not noticed that the + input is at the top. An .AC 
might also not tell you, but a .TRAN would. My projects are now
'kitchen sink' - special test equipment, usually one-off, but when I
was in industry, 4000 would be a very modest run. In those days, it was
black tape on drafting film.

On 2024-06-21 21:46, Andy wrote:
Yes the pin positions are more common with -ive uppermost, but not
always.

The EDR cannot detect this because it in NOT an error it's just how
the symbol was drawn. It's down to the designer to connect the
components to the correct pin.

If you don't like it, then change the symbol...
I can't stand the American electrolytic symbol, so I change that to
the one that I've used for decades, the filled box for -ive and
unfilled for +ive

This highlights a VERY important point for ANY CAD system be it Kicad,
Eagle,  Autocad, or any other design tool.

You NEVER use the provided symbols for live work. You ONLY use symbols
that you have checked and verified as good. These you save in your own
libraries and that's what you use when building your design on the
screen. It protects you from an unknown change being distributed to
the system that you don't spot, so when you use the part again you get
something different.

Not a problem on a single board "kitchen sink" project you just curse
at it, and bodge it. But if that happens on your 4000 board
production run you might be looking for a new job :-)

When you think about it, you only use a very small handful of
components in amateur projects so it does not take long to build up
your own libraries, and most of the provided ones will be perfectly
OK so it's just a matter of copying therm across to your own libs.


Andy



On Fri, 21 Jun 2024 16:04:18 +0100
"John Woodgate"<jmw@...>  wrote:
 
As I understand it, I have to make a copy of the schematic and add
voltage sources (power and signal) and a load. Then add to that the
simulation command. But how do I introduce the models and subcircuits
for the active components?

What would be much easier for me is to be able to copy the schematic
into LTspice (as that is what I use) and do the simulation in that
environment. But is is possible to do that, i.e. can KiCad export a
schematic (or even a netlist) that SPICE understands?

This is important because it can be a costly mistake not to realise
that the KiCad opamp symbol has the + input uppermost, whereas it is
most common, I think, to see the - input uppermost. The EDR can't
detect that error, of course.

-- 
Signature OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying

-- 
This email has been checked for viruses by AVG antivirus software.





 


 
-- 
Signature OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying









--
OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying

Virus-free.


 

Just had a thought,
If you normally hide the power pins and have them auto connected, then
you can mirror the symbol which will flip the + and - locations.

If you have the power pins visible then they will also flip, but you
might be able to live with that.

Andy



On Fri, 21 Jun 2024 23:11:20 +0100
"John Woodgate" <jmw@...> wrote:

I expect you are right, and I'm into learning still, but it takes time
to grasp the nettle.

On 2024-06-21 23:07, Andy wrote:
Creating libs etc is very easy and moving things from one lib to another
is also easy. It's a task worth getting to know.

The EDR is not there to tell you that your design won't work, its to
ensure that your connection are all there.

I've never used the LTspice or Spice function of Kicad, but I do use LT
spice stand alone.

When I started, I did only one board with tape and dots.. Fortunately it
was a training exercise, and very shortly after we got an early PCB
layout system Racal Kadet I think. The layout techs would not let us
engineers near the thing, I think they thought (probably correctly) that
we would have it in bits to see what made it tick :-]

Andy





On Fri, 21 Jun 2024
22:10:37 +0100 "John Woodgate"<jmw@...> wrote:

I can accept all you say, but for my limited work I think that creating
new libraries is not justified. The point about the opamp is that the
EDR won't tell you that you have provided strong positive feedback
because you have not noticed that the + input is at the top. An .AC
might also not tell you, but a .TRAN would. My projects are now
'kitchen sink' - special test equipment, usually one-off, but when I
was in industry, 4000 would be a very modest run. In those days, it was
black tape on drafting film.

On 2024-06-21 21:46, Andy wrote:
Yes the pin positions are more common with -ive uppermost, but not
always.

The EDR cannot detect this because it in NOT an error it's just how
the symbol was drawn. It's down to the designer to connect the
components to the correct pin.

If you don't like it, then change the symbol...
I can't stand the American electrolytic symbol, so I change that to
the one that I've used for decades, the filled box for -ive and
unfilled for +ive

This highlights a VERY important point for ANY CAD system be it Kicad,
Eagle, Autocad, or any other design tool.

You NEVER use the provided symbols for live work. You ONLY use symbols
that you have checked and verified as good. These you save in your own
libraries and that's what you use when building your design on the
screen. It protects you from an unknown change being distributed to
the system that you don't spot, so when you use the part again you get
something different.

Not a problem on a single board "kitchen sink" project you just curse
at it, and bodge it. But if that happens on your 4000 board
production run you might be looking for a new job :-)

When you think about it, you only use a very small handful of
components in amateur projects so it does not take long to build up
your own libraries, and most of the provided ones will be perfectly
OK so it's just a matter of copying therm across to your own libs.


Andy



On Fri, 21 Jun 2024 16:04:18 +0100
"John Woodgate"<jmw@...> wrote:

As I understand it, I have to make a copy of the schematic and add
voltage sources (power and signal) and a load. Then add to that the
simulation command. But how do I introduce the models and subcircuits
for the active components?

What would be much easier for me is to be able to copy the schematic
into LTspice (as that is what I use) and do the simulation in that
environment. But is is possible to do that, i.e. can KiCad export a
schematic (or even a netlist) that SPICE understands?

This is important because it can be a costly mistake not to realise
that the KiCad opamp symbol has the + input uppermost, whereas it is
most common, I think, to see the - input uppermost. The EDR can't
detect that error, of course.

--
Signature OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com





--
Signature OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying






--
Signature OOO - Own Opinions Only
Best wishes
John Woodgate, Rayleigh, Essex UK
Keep trying





 

开云体育

On 22/06/2024 10:42, Andy wrote:
Just had a thought,
If you normally hide the power pins and have them auto connected, then
you can mirror the symbol which will flip the + and - locations.

If you have the power pins visible then they will also flip, but you
might be able to live with that.
For opamps and similar, I always draw alternate (de Morgan) symbols, for the different input pin configurations. Then you don't have to tolerate power pins being upside-down, if you flip the symbol. (I do exactly the same thing in LTspice.)

--
Regards,
Tony