开云体育

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

KiCad 8.0 - Simple transformer simulation


 

Hello,
I am trying to simulate a simple transformer in KiCad 8.0.0 release build. I attach the project files for reference. I am using the 'coupled inductor' model with a .SUBCKT but I do not see the expected results in simulation when driving one inductor with a sinusoid. Would greatly appreciate any advice or pointing out any errors in the way I've implemented this.
Thank you.




 

开云体育


On 28/02/2024 17:21, CW via groups.io wrote:
I am trying to simulate a simple transformer in KiCad 8.0.0 release build. I attach the project files for reference. I am using the 'coupled inductor' model with a .SUBCKT but I do not see the expected results in simulation when driving one inductor with a sinusoid. Would greatly appreciate any advice or pointing out any errors in the way I've implemented this.
The problem is your transformer subckt:

.SUBCKT BasicTransformer 1 2 3 4
L1 1 2 10m
L2 2 3 100m ---------> should be L2 3 4 100m
K12 L1 L2 0.99
.ENDS BasicTransformer

The secondary was not connected.

--
Regards,
Tony


 

Hah! Embarassing. Thank you very much Tony, you're quite right. You solved my problem. Much appreciated.