The examples have not yet been tested with KiCad 7. I will wait for KiCad 7.0.2 to do so.
Your error message indicates that there is a bug in Eeschema, as it does not transfer a correct trrandom to ngspice. There should be some parameters inside of the brackets.
This is a bug in V7 of KiCad. I will provide a bug report. The automatic transfer from V6 to V7 is buggy.
I needed to change 2 things in V7:
On the Eeschama canvas: Change the text window, sim command into the first row, .include path as absolute path. For me it is:
Edit the models for V1, V2 (the trrandom voltage sources): Double click onto the symbol of V1, → Simulation Model… → Built-in Spice model: type Random normal, mean 0, stddev 0.05, dt ‘ttime/varia’, td 0 → OK → OK. Do the same with V2.
Then the simulation will run, internally, but also with external ngspice.
Potentiometer / potmeter example made by Holger.
This simulation has the setpoints in it, and that is a new feature of KiCad V7.99.
Recently, on Friday the 13th of October 2023, Holger stated a new thread for simulations in the new KiCad version.
The simulation plot doesn’t match yours above. The first 555 isn’t outputting a delayed pulse. Also the netlist outputted by KiCAD 7.0 looks and simulates differently than the one supplied in the example.
I detailed what I found over at the ngspice forum.
This is an oscillator circuit with all its quirks, especially the start-up of the oscillator depends on tiny details of the simulation setup. I have added a start-up pulse to allow early starting of the oscillation. And due to its using CMOS it is inevitable to not set ngbehavior to ps.
These are Eeschema error messages. The automatic translation to KiCad 8 does not do correctly, as the simulator interface has changed a lot. I have started doing the translation manually for a few examples, as listed here More simulation examples for KiCad/Eeschema/ngspice - #4 by holger. I will add to this list as time allows. You are welcome to support me with this task.
I am available to do testing. I will look at the changes you made but I already “updated” the examples with the ones you recently posted but some like the “new” Q17 don’t work with KiCad 8 either. I upgraded to KiCad 8 because I couldn’t open these files with KiCad 7.0.10. Now I have lot’s of files that don’t work in 8 and won’t open with 7.0.10. I’m looking for a newer version of “7” that works with your newer files but I downloaded [kicad-7.0-testing_7.0.10.171] and Q17 still won’t load.
The files in this thread are made with KiCad6 and all are tested with KiCad 6.0.2 or 6.0.10.
They may or may not run with KiCad 7 (not tested!) and several will not run with KiCad8, as there have been a lot of changes.
The examples shown in More simulation examples for KiCad/Eeschema/ngspice will not open in KiCad6 or KiCad7, as they are made with KiCad 7.99 or recent KiCad8RC2. They will open only in the latest nightly, which is moving towards KiCad8.
EDIT: Indeed Q17 does not run with the current nighly. I have uploaded a new version of this project.
I found three “versions” of Dual-NMOS-Amp-VDMOS. Only the one I attached opens and works with KiCad 7.
To get it to partially to work with KiCad 8 I have to delete the “thermal” parameter from M1/M2. Of course then the thermal model doesn’t work.
Can you explain why Sim pins for M1/M2 has duplicate entries?
1=D 1=D 2=G 2=G 3=S 3=S 4=TJ 4=TJ 5=TCASE 5=TCASE
Is it possible to “fool” KiCad to open newer version files by altering the header in the sch file? I do this for other SW. I did notice version 8 sch files have a lot of differences from version 6/7.
I have already published a modifies F5 to the KiCad8 example page.
You have to modify the model subcircuits. The .param lines from within the subcircuit have to be shifted to the top, to the .subckt line itself. In ngspice both syntaxes are eqivalent, new Escheema wants them to be on the .subckt line.