Skip to content

Add symbols for ideal voltage, current, and controlled sources

Graham Keeth requested to merge gkeeth/kicad-symbols:v8-spice-sources into master

This MR adds 4 new spice sources: I, V, FSOURCE (current-controlled current source), and HSOURCE (current-controlled voltage source). This supersedes !3579 (closed), taking the original commit from that MR and updating based on the feedback I gave there (the submitter was unfortunately not responsive). I kept the original submitter's commit and then added a fixup commit that updated to v8, moved to a new library, and applied the other feedback.

V and I, set up as DC sources with amplitude 1:

Screen_Shot_2024-02-23_at_6.48.57_PM

HSOURCE and FSOURCE, set up as dependent sources with gain 1, controlled by the current through a voltage source VCONTROL:

Screen_Shot_2024-02-23_at_6.49.13_PM

With this MR merged, we now have symbols for the full range of ngspice independent and dependent sources. Here's a family portrait:

Screen_Shot_2024-02-23_at_6.47.37_PM

Here is a v8 project that can be used to test the symbols in this MR, with a sim workbook.

new-source-demo.zip


Required Settings:

Please configure your personal fork of the KiCad project with the following settings:

  1. Settings->General->Visibility->Pipelines should be enabled and set to "Everyone with access".
  2. Settings->CI/CD->General Pipelines timeout should be set to >3h .

Configure the merge request as follows:

  1. The "Allow commits from members who can merge to the target branch." option check box at the bottom of your merge request must be checked.
  • This can later be enabled via the edit button found at the top right (in case you forgot to do it when creating the merge request).

#General Guidelines: All contributions to the kicad library must follow the KiCad library convention

Thanks for creating a pull request to contribute to the KiCad libraries! To speed up integration of your PR, please check the following items:

  • Remove the instructional content of this template
  • [n/a] Provide a URL to a datasheet for the symbol(s) you are contributing
  • An example screenshot image is very helpful
  • [n/a] Ensure that the associated footprints match the official footprint library
    • A new fitting footprint must be submitted if the library does not yet contain one.
  • [n/a] If there are matching footprint PRs, provide link(s) as appropriate
  • Check the output of the automated check scripts - fix any errors as required
  • [n/a] Give a reason behind any intentional library convention rule violation.

Be patient, we maintainers are volunteers with limited time and need to check your contribution against the datasheet. You can speed up the process by providing all the necessary information (see above). Providing a dimensioned drawing of your contribution can speed up the review process. More information on that can be found here:

Merge request reports