Having errors when trying to simulate this Linear Power Supply AC circuit in KiCad 8

Hi all,
I am new to KiCad . I want to simulate my Linear power supply circuit . This is the schematics.

Also got this ERC errors.

[power_pin_not_driven]: Input Power pin not driven by any Output Power pins
@(7100.00 mils, 3700.00 mils): Symbol U1 Pin 1 [VI, Power input, Line]

[power_pin_not_driven]: Input Power pin not driven by any Output Power pins
@(7400.00 mils, 4000.00 mils): Symbol U1 Pin 2 [GND, Power input, Line]

Kindly help me out and also point me to resources to learn related to AC circuit simulation.

Thanks!

You got no spice GND symbol, required for the solver to work. Only put one and the best place would be on the secondary (simulation wise, not practically wise)

The input to the reg expects a power source and while the rectifier will produce this, Kicad doesn’t know the intent of the circuit and thus you need to put a power node symbol down to inform Kicad that power really does get provided at this node

1 Like

There is an example project available in Simulation examples for KiCad/Eeschema/ngspice - #4 by holger (made with KiCad6).

Each node in a ngspice netlist has to have a dc path to ground. Otherwise the simulator cannot decide on a dc potential for this node when looking for the operating point. So both sides (primary and secondary) of the transformer have to have a ground connection, either directly or (as in my example on the primary side) via a (large) resistor.

1 Like

To avoid complete floating, I recommend connecting maybe (1 nF in parallel with 1 Meg ohm) between output ground and (one side or maybe a center tap) of the transformer primary.

I do not use NGSpice but this seems to be a workable approach in LTSpice.

You do need to have ground somewhere, and everything referenced to it somehow.

1 Like

Thanks. I am completely new to this. Could you please suggest some tutorials

A tutorial that helped me a lot with kicad/ngspice and walks you through a lot of things is the one on the ngspice website: KiCad Eeschema as GUI for ngspice, tutorial for setting up the simulation

I believe it was written by @holger. Also the links to examples at the bottom of that page are very valuable.