Kicad, an open-source software suite, is famous among electronic engineers for its PCB design capabilities. However, Kicad also offers a lesser-known but powerful feature: simulation. Kicad simulation, while not as extensive as dedicated circuit simulation software like SPICE, provides sufficient tools for basic circuit analysis. Here's a step-by-step guide to using Kicad for simulation, illustrated with an example.

Before we dive in, ensure you're using the latest version of Kicad. While older versions had limited simulation capability, the recent addition of theISCEDA simulator in Kicad 5.x has improved this significantly. Now, let's explore Kicad simulation with a simple RC low-pass filter example.

Setting Up the Circuit for Simulation
First, we'll create our RC filter in Kicad Eeschema. For this example, use a 1kΩ resistor and a 10nF capacitor connected in series between a voltage source (Vcc) and ground.

Once your circuit is designed, it's time to prepare it for simulation. Right-click in the schematic and select 'Simulation settings.' In the dialogue box that appears, ensure 'Analog' is selected for the Simulation type. Click 'OK' to save the settings.
Linear Circuit Analysis

Kicad's built-in linear circuit analyzer can handle DC analysis, AC analysis, and noise analysis. Let's perform an AC analysis to examine the circuit's frequency response.
To do this, right-click on the schematic and select 'Run simulation.' In the simulation setup dialogue, choose 'Analog' as the Circuit type, 'AC' as the Point of analysis, and select 'Output' as the Point of measurement. Set your start and stop frequencies (e.g., 1Hz to 10kHz) and the number of points (e.g., 1000). Click 'OK' to run the simulation.
spécifiques Circuit Schematic Editor

For more complex analyses, Kicad's schematic editor comes with specific simulation tools. For our example, you can add a BODE frequency response plot or a gain/phase plot by right-clicking on the schematic and selecting 'Simulation.' This will add the respective components (BODE plotter or gain/phase tester) to your circuit.
Again, set up your simulation settings as before, run the simulation, and observe the results. The BODE plot or gain/phase plot will update with the analysis results.
Simulating With ISCEDA

ISCEDA, a powerful simulator bundled with Kicad 5.x, offers more advanced simulation capabilities, including transient analysis and model libraries. Let's add a simpleop-amp to our circuit and use ISCEDA for a transient simulation.
First, add a 741 op-amp to your circuit and connect it to mimic a noninverting amplifier. Then, set up your simulation settings – choose 'Analog' as the Circuit type, 'Transient' as the Point of analysis, and select your points of measurement. Set your start and stop times and the output step time, then click 'OK' to run the simulation.




















fichier De Modélisation (Model File)
ISCEDA's power lies in its extensibility through model files. These files contain component models that you can use in your circuits. For instance, you can find a 741 op-amp model file online, download it, and load it into your simulation setup for more accurate results.
To do this, click on the 'Models' tab in the simulation setup dialogue, then click on 'Add.' Navigate to your model file (e.g., '741.asc') and click 'Open.' Now, verify your component model in the 'Model' column, then run your simulation.
Kicad simulation allows you to analyze simple circuits and verify basic circuit behavior. While it may not replace dedicated SPICE software, it provides essential tools for electronic engineers to validate designs within their PCB design environment. So, whether you're a beginner exploring circuit analysis or an experienced engineer eager to optimize your workflow, integrating simulation into your Kicad routine can save time and improve the quality of your PCBs. Happy designing!