Giter Site home page Giter Site logo

ltspice2kicad's People

Contributors

laurentc2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ltspice2kicad's Issues

sch_LTspice2Kicad.py - "ValueError: max() arg is an empty sequence" with LTSpice ver. Jan 11 2019

Script execution stopped in sch_LTspice2Kicad.py he line after the coment:

Calcul of min and max of X and Y to choose the page size : A4, A3, A2 A1 or A0

with error

ValueError: max() arg is an empty sequence

because theres no RECTANGLE in my file.asc.

Dirty solved: Commented out every "..rectangle.." array.

X_max = max(max(sym_X),max(wireX1),max(wireX2),max(text_X)) #,max(rectangleX1),max(rectangleX2)

After that, i can use the script and after a few errors while loading it to KiCAD 5.0.2, i got the schematik.
Thank you for your work!

Thats my file.asc for debugging, if you like to.
LTSpice Version: Jan 11 2019

"Version 4
SHEET 1 944 680
WIRE 256 -80 64 -80
WIRE 368 -80 320 -80
WIRE 368 -48 368 -80
WIRE 464 -48 368 -48
WIRE 656 -48 544 -48
WIRE 256 0 176 0
WIRE 368 0 368 -48
WIRE 368 0 320 0
WIRE -32 48 -80 48
WIRE 256 48 32 48
WIRE 272 48 256 48
WIRE 448 48 352 48
WIRE 464 48 448 48
WIRE 544 48 528 48
WIRE 656 48 656 -48
WIRE 656 48 624 48
WIRE 256 80 256 48
WIRE -80 96 -80 48
WIRE 64 96 64 -80
WIRE 176 96 176 0
WIRE 864 128 656 128
WIRE 448 144 448 48
WIRE 656 144 656 128
WIRE 448 224 416 224
WIRE 64 240 64 176
WIRE 112 240 64 240
WIRE 176 240 176 176
WIRE 176 240 112 240
WIRE -80 256 -80 176
WIRE 112 256 112 240
WIRE 112 256 -80 256
WIRE 176 256 176 240
WIRE 256 256 256 144
WIRE 256 256 176 256
WIRE 416 256 416 224
WIRE 416 256 256 256
WIRE 656 256 656 224
WIRE 656 256 416 256
WIRE 864 256 864 208
WIRE 864 256 656 256
WIRE 112 272 112 256
FLAG 112 272 0
FLAG -80 48 TinySound
FLAG 64 -80 DFSound1
FLAG 176 0 DFSound2
FLAG 368 -48 DFmixed
SYMBOL voltage 64 80 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
SYMATTR InstName V1
SYMATTR Value SINE(0 1 2675)
SYMATTR SpiceLine Rser=8
SYMBOL voltage 176 80 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
SYMATTR InstName V2
SYMATTR Value SINE(0 1 12432)
SYMATTR SpiceLine Rser=8
SYMBOL voltage -80 80 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
SYMATTR InstName V3
SYMATTR Value PULSE(0 5 0.5ms 0 0 5u 50u)
SYMATTR SpiceLine Rser=120
SYMBOL res 432 128 R0
SYMATTR InstName R2
SYMATTR Value 120
SYMBOL cap 320 -96 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 10µ
SYMBOL cap 320 -16 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C2
SYMATTR Value 10µ
SYMBOL res 640 128 R0
SYMATTR InstName R3
SYMATTR Value 25k
SYMBOL res 560 -64 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 10k
SYMBOL res 640 32 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R5
SYMATTR Value 20k
SYMBOL ind 368 32 R90
WINDOW 0 5 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName L1
SYMATTR Value 1m
SYMATTR SpiceLine Ipk=0.05 Rser=60 Rpar=5.07313e+007 Cpar=0
SYMBOL res 640 32 R0
SYMATTR InstName R6
SYMATTR Value 100k
SYMBOL res 848 112 R0
SYMATTR InstName R7
SYMATTR Value 100k
SYMBOL cap 528 32 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C3
SYMATTR Value 100µ
SYMBOL diode 272 144 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D1
SYMBOL diode -32 32 M90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D2
TEXT -156 296 Left 2 !.tran 2ms startup
"

Contribution to Open Source Tools

Dear Laurent,

I am from eSim Team of FOSSEE, IIT Bombay. We work in promoting the eSim Open Source Tools. Here is our website:

  1. https://esim.fossee.in/home
  2. https://fossee.in/

We were quite inspired by your LTSpice to KiCAD Converter. Even we have a similar converter for PSpice. Would you like to work with us?

Please share your contact details with us at the following email address:
contact-esim[at]fossee[dot]in

Thank You.

Regards,
Sumanto Kar
eSim Team

Utilisation de votre convertisseur de bibliothèques

Bonjour,
je réalise actuellement une interface KiCad vers LTspice pour que la saisie de schéma se fasse totalement sous KiCad et la simulation sous LTspice. Mon interface permet de configurer la simulation .ac, .tran, ..., Monte Carlo, Worst Case ...
J'ai réalisé un convertisseur pour les composants standards (.ind, .cap, .bead) et comme j'ai vu votre convertisseur (que j'ai modifié pour "détecter" les fichiers utf-16le et le rendre compatible avec KiCad 5), je souhaiterai intégrer cette version modifiée à mon dépôt à venir.
M'y autorisez-vous ?
Cordialement,
Eric PERONNIN

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.