Buku Panduan

This document is Copyright © 2010-2022 by its contributors as listed below. You may distribute it and/or modify it under the terms of either the GNU General Public License (http://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0/), version 3.0 or later.

All trademarks within this guide belong to their legitimate owners.

Kontributor

Jean-Pierre Charras, Fabrizio Tappero.

Penerjemah

Triyan W. Nugroho.

Umpan balik

Silakan mengirimkan laporan bug, saran atau versi baru ke alamat berikut:

Tanggal Publikasi dan Versi Perangkat Lunak

Dipublikasikan pada tanggal 30 Mei 2015.

1. Introduction to the KiCad Schematic Editor

1.1. Deskripsi

The KiCad Schematic Editor is a schematic capture software distributed as a part of KiCad and available under the following operating systems:

  • Linux

  • Apple macOS

  • Windows

Regardless of the OS, all KiCad files are 100% compatible from one OS to another.

The Schematic Editor is an integrated application where all functions of drawing, control, layout, library management and access to the PCB design software are carried out within the editor itself.

The KiCad Schematic Editor is intended to cooperate with the KiCad PCB Editor, which is KiCad’s printed circuit design software. It can also export netlist files, which lists all the electrical connections, for other packages.

The Schematic Editor includes a symbol library editor, which can create and edit symbols and manage libraries. It also integrates the following additional but essential functions needed for modern schematic capture software:

  • Electrical rules check (ERC), sebagai kontrol otomatis untuk koneksi yang hilang atau tidak tepat

  • Ekspor berkas-berkas plot dalam berbagai format (Postscript, PDF, HPGL, dan SVG)

  • Pembuatan daftar komponen (Bill of Materials), melalui skrip Python atau XSLT, yang mampu menangani berbagai format fleksibel.

1.2. Tinjauan Teknis

The Schematic Editor is limited only by the available memory. There is thus no real limitation to the number of components, component pins, connections or sheets. In the case of multi-sheet schematics, the representation is hierarchical.

The Schematic Editor can use multi-sheet schematics in a few ways:

  • Hirarki sederhana (setiap skematik hanya digunakan satu kali saja).

  • Hirarki kompleks (beberapa skematik digunakan lebih dari sekali dan dapat dimunculkan beberapa kali).

  • Hirarki datar (skematik tidak terhubung secara eksplisit di dalam diagram utama).

2. Generic Schematic Editor commands

Perintah-perintah yang ada di Eeschema dapat dijalankan dengan cara:

  • Klik pada bilah menu (di bagian atas layar).

  • Klik pada ikon di bagian atas layar (untuk perintah-perintah umum).

  • Klik pada ikon di bagian kanan layar (untuk perintah atau "peralatan" khusus).

  • Klik pada ikon di bagian kiri layar (untuk berbagai opsi tampilan).

  • Menekan tombol tetikus (untuk perintah-perintah tambahan yang penting). Secara khusus, klik kanan pada tetikus akan membuka sebuah menu kontekstual untuk elemen yang berada di bawah kursor (Perbesar atau perkecil, pengaturan grid, dan pengeditan elemen).

  • Function keys (F1, F2, F3, F4, Insert and Space). Specifically: Escape cancels the command in progress. Insert allows the duplication of the last element created.

  • Pressing hotkeys. For a list of hotkeys, see the Help→List Hotkeys menu entry or press Ctrl+F1. Many hotkeys select a tool but do not perform the tool’s action until the canvas is clicked. This behavior can be changed by unchecking First hotkey selects tool in the Common Preferences pane. With this option unchecked, pressing a hotkey will select the tool and immediately perform the tool’s action at the current cursor location.

Gambaran umum perintah-perintah Eeschema

2.1. Perintah-perintah Tetikus

2.1.1. Perintah-perintah Dasar

Tombol kiri

  • Single click: Selects the item under the cursor and displays the item’s characteristics in the status bar.

  • Double click: edits the item if it is editable.

Tombol kanan

  • Opens a pop-up menu. If an item is selected, the items in the menu are related to the selected item. If an item is under the cursor when the right mouse button is clicked, the item is selected.

2.1.2. Selection operations

Schematic editor items can be selected by clicking on them. Multiple items can be selected at once. Add items to the selection with Shift
click, and remove items from the selection with Ctrl+Shift + click.

Note
On macOS, Cmd is used instead of Ctrl.

left mouse button

Select item.

Shift + left mouse button

Add item to selection.

Ctrl+Shift + left mouse button

Remove item from selection.

Ctrl + left mouse button

Highlight net.

Items can also be selected by drawing a box around them using the left mouse button.

Dragging from left to right includes all items fully enclosed by the box. Dragging from right to left includes all items touched by the box, even if they are not fully enclosed.

The Shift and Ctrl+Shift modifiers also work with drag selections to add and remove items from the selection, respectively.

2.2. Tombol Hotkey

  • The Ctrl+F1 displays the current hotkey list.

  • All hotkeys can be redefined using the hotkey editor (PreferencesPreferences…​Hotkeys).

The default hotkey list is below. Many additional actions do not have hotkeys by default, but hotkeys can be assigned to them with the hotkey editor.

Action Default Hotkey Description

Click

Return

Performs left mouse button click

Double-click

End

Performs left mouse button double-click

Cursor Down

Down

Cursor Down Fast

Ctrl+Down

Cursor Left

Left

Cursor Left Fast

Ctrl+Left

Cursor Right

Right

Cursor Right Fast

Ctrl+Right

Cursor Up

Up

Cursor Up Fast

Ctrl+Up

Switch to Fast Grid 1

Alt+1

Switch to Fast Grid 2

Alt+2

Switch to Next Grid

N

Switch to Previous Grid

Shift+N

Reset Grid Origin

Z

Grid Origin

S

Set the grid origin point

New…​

Ctrl+N

Create a new document in the editor

Open…​

Ctrl+O

Open existing document

Pan Down

Shift+Down

Pan Left

Shift+Left

Pan Right

Shift+Right

Pan Up

Shift+Up

Print…​

Ctrl+P

Print

Reset Local Coordinates

Space

Save

Ctrl+S

Save changes

Save As…

Ctrl+Shift+S

Save current document to another location

Always Show Cursor

Ctrl+Shift+X

Display crosshairs even in selection tool

Switch units

Ctrl+U

Switch between imperial and metric units

Update PCB from Schematic…

F8

Update PCB with changes made to schematic

Center

F4

Center

Zoom to Objects

Ctrl+Home

Zoom to Objects

Zoom to Fit

Home

Zoom to Fit

Zoom In at Cursor

F1

Zoom In at Cursor

Zoom Out at Cursor

F2

Zoom Out at Cursor

Refresh

F5

Refresh

Zoom to Selection

Ctrl+F5

Zoom to Selection

Change Edit Method

Ctrl+Space

Change edit method constraints

Copy

Ctrl+C

Copy selected item(s) to clipboard

Cut

Ctrl+X

Cut selected item(s) to clipboard

Delete

Del

Deletes selected item(s)

Duplicate

Ctrl+D

Duplicates the selected item(s)

Find

Ctrl+F

Find text

Find and Replace

Ctrl+Alt+F

Find and replace text

Find Next

F3

Find next match

Find Next Marker

Shift+F3

Paste

Ctrl+V

Paste item(s) from clipboard

Redo

Ctrl+Y

Redo last edit

Select All

Ctrl+A

Select all items on screen

Undo

Ctrl+Z

Undo last edit

List Hotkeys…​

Ctrl+F1

Displays current hotkeys table and corresponding commands

Preferences…​

Ctrl+,

Show preferences for all open tools

Clear Net Highlighting

~

Clear any existing net highlighting

Edit Library Symbol…​

Ctrl+Shift+E

Open the library symbol in the Symbol Editor

Edit with Symbol Editor

Ctrl+E

Open the selected symbol in the Symbol Editor

Highlight Net

`

Highlight net under cursor

Show Datasheet

D

Opens the datasheet in a browser

Add Sheet

S

Add a hierarchical sheet

Add Wire to Bus Entry

Z

Add a wire entry to a bus

Add Global Label

Ctrl+L

Add a global label

Add Hierarchical Label

H

Add a hierarchical label

Add Junction

J

Add a junction

Add Label

L

Add a net label

Add No Connect Flag

Q

Add a no-connection flag

Add Power

P

Add a power port

Add Text

T

Add text

Add Symbol

A

Add a symbol

Add Bus

B

Add a bus

Add Lines

I

Add connected graphic lines

Add Wire

W

Add a wire

Finish Wire or Bus

K

Complete drawing at current segment

Unfold from Bus

C

Break a wire out of a bus

Autoplace Fields

O

Runs the automatic placement algorithm on the symbol or sheet’s fields

Edit Footprint…

F

Displays footprint field dialog

Edit Reference Designator…​

U

Displays reference designator dialog

Edit Value…

V

Displays value field dialog

Mirror Horizontally

X

Flips selected item(s) from left to right

Mirror Vertically

Y

Flips selected item(s) from top to bottom

Properties…

E

Displays item properties dialog

Repeat Last Item

Ins

Duplicates the last drawn item

Rotate Counterclockwise

R

Rotates selected item(s) counter-clockwise

Drag

G

Drags the selected item(s)

Move

M

Moves the selected item(s)

Select Connection

Alt+4

Select a complete connection

Select Node

Alt+3

Select a connection item under the cursor

Leave Sheet

Alt+Back

Display the parent sheet in the schematic editor

Hotkeys are stored in the file user.hotkeys in KiCad’s configuration directory. The location is platform-specific:

  • Windows: %APPDATA%\kicad\6.0\user.hotkeys

  • Linux: ~/.config/kicad/6.0/user.hotkeys

  • macOS: ~/Library/Preferences/kicad/6.0/user.hotkeys

It is possible to import hotkey settings from a user.hotkeys file using menu PreferencesPreferences…​HotkeysImport Hotkeys…​.

2.3. Grid

In the Schematic Editor the cursor always moves over a grid. The grid can be customized:

  • Size can be changed using the right click menu or using ViewGrid Properties…​.

  • Color can be changed in the Colors page of the Preferences dialog (menu PreferencesGeneral Options).

  • Visibility can be switched using the left-hand toolbar button.

The default grid size is 50 mil (0.050") or 1.27 millimeters.

Ukuran tersebut adalah ukuran yang direkomendasikan untuk meletakkan simbol dan wire di skematik, dan untuk meletakkan pin pada saat mendesain sebuah simbol di Symbol Editor.

Kita juga bisa menggunakan ukuran grid yang lebih kecil, dari 25 mil hingga 10 mil. Ukuran ini hanya dimaksudkan untuk digunakan pada saat mendesain bentuk simbol atau meletakkan teks dan komentar, dan tidak direkomendasikan untuk digunakan pada saat meletakkan pin dan wire.

2.4. Pilihan Perbesaran/perkecilan

Untuk mengubah tingkat perbesaran/perkecilan:

  • Klik kanan untuk membuka menu pop-up dan pilih tingkat perbesaran/perkecilan yang diinginkan.

  • Or use hotkeys:

    • F1: Zoom in

    • F2: Zoom out

    • F4: Center the view around the cursor pointer position

    • Home: Zoom and center the view to fit the entire schematic sheet

    • Ctrl+Home: Zoom and center the view to fit all of the objects in the schematic

    • Ctrl+F5: Activate the Zoom to Selection tool

  • Perbesar/perkecil Jendela:

    • Mouse wheel: Zoom in/out

    • Shift+Mouse wheel: Pan up/down

    • Ctrl+Mouse wheel: Pan left/right

Mouse scroll gestures are configurable in the Mouse and Touchpad page of the Preferences dialog.

2.5. Menampilkan Koordinat Kursor

The display units are in inches, mils, or millimeters.

Informasi berikut ini ditampilkan pada bagian kanan bawah jendela:

  • Faktor perbesaran/perkecilan

  • Posisi absolut kursor

  • Posisi relatif kursor

  • The grid size

  • The active unit system

  • The active tool

Koordinat relatif dapat direset menjadi nol dengan menekan Spasi. Hal ini berguna untuk mengukur jarak antara dua titik atau untuk meluruskan suatu obyek.

status_bar

2.6. Bilah Menu Atas

bilah menu atas digunakan untuk membuka dan menyimpan skematik, konfigurasi program, dan untuk melihat dokumentasi.

menubar

2.7. Bilah Alat Bagian Atas

This toolbar gives access to the main functions of the Schematic Editor.

If the Schematic Editor is run in standalone mode, this is the available tool set:

images/toolbar_schedit_standalone.png

Jika KiCad dijalankan pada mode proyek, maka dua ikon pertama di atas tidak tersedia, karena ikon tersebut hanya bekerja dengan berkas-berkas individual.

New schematic icon

Create a new schematic (only in standalone mode).

Open schematic icon

Open a schematic (only in standalone mode).

Save schematic icon

Save complete schematic project.

Schematic Setup icon

Set the schematic-specific options.

Page Settings icon

Select the sheet size and edit the title block.

Print icon

Open print dialog.

Plot icon

Open plot dialog.

paste icon

Paste a copied/cut item or block to the current sheet.

undo icon

Undo: Revert the last change.

redo icon

Redo: Revert the last undo operation.

search icon

Show the dialog to search symbols and texts in the schematic.

search replace icon

Show the dialog to search and replace texts in the schematic.

refresh icon

Refresh screen.

zoom in icon

Zoom in.

zoom out icon

Zoom out.

zoom to fit icon

Zoom to fit the entire schematic sheet.

zoom fit to objects icon

Zoom to fit all objects in the schematic.

zoom fit to selection icon

Zoom to fit selected items.

hierarchy navigator icon

View and navigate the hierarchy tree.

leave sheet icon

Leave the current sheet and go up in the hierarchy.

rotate counter-clockwise icon

Rotate selected items counter-clockwise.

rotate clockwise icon

Rotate selected items clockwise.

mirror vertical icon

Mirror selected items vertically.

mirror horizontal icon

Mirror selected items horizontally.

symbol editor icon

Call the symbol library editor to view and modify libraries and symbols.

symbol library browser icon

Browse symbol libraries.

footprint editor icon

Open the footprint library editor to view and modify libraries and footprints.

annotate icon

Annotate symbols.

ERC icon

Electrical Rules Checker (ERC), automatically validate electrical connections.

run footprint assignment icon

Open the footprint assignment tool to assign footprints to symbols.

Symbol fields editor icon

Bulk edit symbol fields in a spreadsheet interface.

BOM icon

Generate the Bill of Materials (BOM).

pcb editor icon

Open the PCB editor.

python scripting console icon

Open the Python scripting console.

2.8. Bilah Alat Bagian Kanan

Bilah alat ini berisi berbagai alat untuk:

  • Meletakkan simbol, wire, bus, junction, label, teks, dsb.

  • Membuat lembar kerja hirarkis dan simbol-simbol koneksi.

Selection tool icon

Cancel the active command or tool and go into selection mode.

Highlight net icon

Highlight a net by marking its wires and net labels with a different color. If the PCB Editor is also open then copper corresponding to the selected net will be highlighted as well.

New Symbol icon

Display the symbol selector dialog to select a new symbol to be placed.

Add Power icon

Display the power symbol selector dialog to select a power symbol to be placed.

Draw Wire icon

Draw a wire.

Draw Bus icon

Draw a bus.

Draw wire to bus icon

Draw wire-to-bus entry points. These elements are only graphical and do not create a connection, thus they should not be used to connect wires together.

draw no connect flag icon

Place a "No Connect" flag. These flags should be placed on symbol pins which are meant to be left unconnected. It is done to notify the Electrical Rules Checker that lack of connection for a particular pin is intentional and should not be reported.

place junction icon

Place a junction. This connects two crossing wires or a wire and a pin, when it can be ambiguous (i.e. if a wire end or a pin is not directly connected to another wire end).

Local label icon

Place a local label. Local label connects items located in the same sheet. For connections between two different sheets, you have to use global or hierarchical labels.

Global label icon

Place a global label. All global labels with the same name are connected, even when located on different sheets.

Hierarchical label icon

Place a hierarchical label. Hierarchical labels are used to create a connection between a subsheet and the parent sheet that contains it.

Hierarchical subsheet icon

Place a hierarchical subsheet. You must specify the file name for this subsheet.

Import hierarchical label icon

Import a hierarchical pin from a subsheet. This command can be executed only on hierarchical subsheets. It will create hierarchical pins corresponding to hierarchical labels placed in the target subsheet.

draw dashed line icon

Draw a line. These are only graphical and do not connect anything.

place text icon

Place a text comment.

place bitmap icon

Place a bitmap image.

interactive delete tool icon

Delete clicked items.

2.9. Bilah Alat Sebelah Kiri

Bilah alat ini berfungsi untuk melakukan pengaturan tampilan:

grid visibility icon

Toggle grid visibility.

inch unit icon

Switch units to inches.

mil unit icon

Switch units to mils (0.001 inches).

millimeter unit icon

Switch units to millimeters.

cursor shape icon

Choose the cursor shape (full screen/small).

hidden pin icon

Toggle visibility of "invisible" pins.

free angle wire icon

Toggle free angle/90 degrees wires and buses placement.

2.10. Menu Pop-up dan Pengeditan Cepat

Klik kanan tetikus akan membuka sebuah menu kontekstual untuk elemen yang dipilih. Menu tersebut berisi:

  • Faktor perbesaran/perkecilan.

  • Pengaturan grid.

  • Copy/Paste/Delete commands.

  • Add Wire/Bus.

  • Parameter-parameter yang sering diedit untuk elemen yang dipilih.

3. Menu Utama

3.1. Menu File

Menu _File_
New Close current schematic and start a new one (only in standalone mode).

Open

Load a schematic project (only in standalone mode).

Open Recent

Open a schematic project from the list of recently opened files (only in standalone mode).

Save

Save current sheet and all its subsheets.

Save As…​

Save the current sheet under a new name (only in standalone mode).

Save Current Sheet Copy As…​

Save a copy of the current sheet under a new name (only in project mode).

Insert Schematic Sheet Content…​

Insert the contents of another schematic sheet into the current sheet (only in standalone mode).

Import

Import a non-KiCad schematic or a footprint assignment file.

Export

Export a netlist or a drawing of the schematic to the clipboard.

Schematic Setup…​

Set up schematic formatting, electrical rules, net classes, and text variables.

Page Settings…​

Configure page dimensions and title block.

Print

Print schematic project (See also chapter Plot and Print).

Plot

Export to PDF, PostScript, HPGL or SVG format (See chapter Plot and Print).

Quit

Terminate the application.

3.1.1. Schematic Setup

The Schematic Setup window is used to set schematic options that are specific to the currently active schematic. For example, the Schematic Setup window contains formatting options, electrical rule configuration, netclass setup, and schematic text variable setup.

3.2. Menu Preferences

Menu _Preferences_

Configure Paths…​

Set the default search paths.

Manage Symbol Library Tables…​

Add/remove symbol libraries.

Preferences…​

Preferences (units, grid size, field names, etc.).

Set Language

Select interface language.

3.2.1. Mengelola Tabel Pustaka Simbol

Tabel Pustaka Simbol

KiCad uses two library tables to store the list of available symbol libraries, which differ by the scope:

Pustaka Global

Libraries listed in the Global Library table are available to every project. They are saved in the sym-lib-table in the KiCad configuration directory, which is system-dependent:

  • Windows: %APPDATA%\kicad\6.0\sym-lib-table

  • Linux: ~/.config/kicad/6.0/sym-lib-table

  • macOS: ~/Library/Preferences/kicad/6.0/sym-lib-table

Pustaka Spesifik untuk Proyek

Libraries listed in Project Specific Libraries table are available to the currently opened project. They are saved in a sym-lib-table file in the project directory.

Both library tables are visible by clicking on Global Libraries or Project Specific Libraries tab in the Manage Library Tables window.

Menambahkan Pustaka Baru

Add a library either by clicking the Folder icon button and selecting a file or clicking the Plus icon button and typing a path to a library file. The selected library will be added to the currently opened library table (Global/Project Specific).

Menghapus Pustaka

Remove a library by selecting one or more libraries and clicking the Trash icon button.

Properti Pustaka

Setiap baris dari tabel pustaka berisi beberapa atribut untuk suatu pustaka:

Active

Enables/disables the library. It is useful to temporarily reduce the loaded library set.

Nickname

Nickname is a short, unique identifier used for assigning symbols to components. Symbols are represented by '<Library Nickname>:<Symbol Name>' strings.

Library Path

Path points to the library location.

Plugin Type

Determines the library file format. KiCad 6.0 libraries use the "KiCad" format, while KiCad 5.x libraries use the "Legacy" format. Legacy libraries are read-only.

Options

Stores library specific options, if used by plugin.

Description

Briefly characterizes the library contents.

3.2.2. Preferences

Common Preferences
Note
TODO: write this section
Common settings
Mouse and Touchpad

Center and warp cursor on zoom

If checked, the pointed location is warped to the screen center when zooming in/out.

Use touchpad to pan

When enabled, view is panned using scroll wheels (or touchpad gestures) and to zoom one needs to hold Ctrl. Otherwise scroll wheels zoom in/out and Ctrl/Shift are the panning modifiers.

Pan while moving object

If checked, automatically pans the window if the cursor leaves the window during drawing or moving.

Tombol Hotkey

Redefine hotkeys.

Hotkeys settings

Anda bisa mengubah tombol hotkey dengan cara klik-ganda pada aksi yang diinginkan. Klik-kanan pada salah satu aksi tersebut akan menampilkan menu pop-up berikut ini:

Edit

Define a new hotkey for the action (same as double click).

Undo Changes

Reverts the recent hotkey changes for the action.

Clear Assigned Hotkey

Restore Default

Sets the action hotkey to its default value.

Display Options
Display options

Grid Size

Grid size selection.

It is recommended to work with normal grid (0.050 inches or 1,27 mm). Smaller grids are used for component building.

Bus thickness

Pen size used to draw buses.

Line thickness

Pen size used to draw objects that do not have a specified pen size.

Part ID notation

Style of suffix that is used to denote symbol units (U1A, U1.A, U1-1, etc.)

Icon scale

Adjust toolbar icons size.

Show Grid

Grid visibility setting.

Restrict buses and wires to H and V orientation

If checked, buses and wires are drawn only with vertical or horizontal lines. Otherwise buses and wires can be placed at any orientation.

Show hidden pins:

Display invisible (or hidden) pins, typically power pins.

Show page limits

If checked, shows the page boundaries on screen.

Footprint previews in symbol chooser

Displays a footprint preview frame and footprint selector when placing a new symbol.

Note: it may cause problems or delays, use at your own risk.

Editing Options
Pengaturan tab _editing_

Measurement units

Select the display and the cursor coordinate units (inches or millimeters).

Horizontal pitch of repeated items

Increment on X axis during element duplication (default: 0) (after placing an item like a symbol, label or wire, a duplication is made by the Insert key)

Vertical pitch of repeated items

Increment on Y axis during element duplication (default: 0.100 inches or 2,54 mm).

Increment of repeated labels

Increment of label value during duplication of texts ending in a number, such as bus members (usual value 1 or -1).

Default text size

Text size used when creating new text items or labels.

Auto-save time interval

Time in minutes between saving backups.

Automatically place symbol fields

If checked, symbol fields (e.g. value and reference) in newly placed symbols might be moved to avoid collisions with other items.

Allow field autoplace to change justification

Extension of 'Automatically place symbol fields' option. Enable text justification adjustment for symbol fields when placing a new part.

Always align autoplaced fields to the 50 mil grid

Extension of 'Automatically place symbol fields' option. If checked, fields are autoplaced using 50 mils grid, otherwise they are placed freely.

Tab Colors

Tab ini berisi skema warna untuk berbagai elemen grafis. Klik pada kotak warna untuk memilih warna baru untuk elemen yang diinginkan.

Color settings
Tab Default Fields

Tab ini digunakan untuk membuat atribut-atribut tambahan yang akan muncul pada simbol yang baru diletakkan.

Default Fields settings

3.3. Menu Help

Akses ke bantuan on-line (dokumen ini) yang berisi tutorial KiCad.

Use the Report a Bug item to report a bug online. Full KiCad version and user system information is available via the Copy Version Info button in the About KiCad window.

4. Bilah Atas Umum

4.1. Manajemen Lembar Kerja

The Sheet Settings icon (Sheet Settings icon) allows you to define the sheet size and the contents of the title block.

Page Settings

Penomoran lembar kerja diperbarui secara otomatis. Anda dapat mengatur tanggal agar menampilkan tanggal saat ini dengan menekan tombol panah ke kiri pada kotak "Issue Date", tetapi tanggal ini tidak akan berubah secara otomatis.

4.2. Alat Pencari

The Find icon (Find icon) can be used to access the search tool.

Find dialog

Anda dapat melakukan pencarian referensi, nilai atau teks pada lembar kerja yang sedang dibuka atau pada keseluruhan hirarki. Ketika elemen yang dicari telah ditemukan, kursor akan diposisikan pada elemen tersebut di dalam anak lembar kerja yang sesuai.

4.3. Alat Netlist

The Netlist icon (Netlist icon) opens the netlist generation tool.

Alat ini akan membuat sebuah berkas yang berisi penjelasan koneksi pada keseluruhan hirarki.

Pada hirarki dengan banyak lembar kerja, label lokal hanya akan ditampilkan di dalam lembar kerja dimana ia berada. Sebagai contoh, label LABEL1 pada lembar kerja 3 berbeda dengan LABEL1 pada lembar kerja 5 (jika tidak ada koneksi yang dibuat untuk menghubungkan kedua label tersebut). Hal ini karena nama lembar kerja terhubung secara internal dengan label lokal.

Note
Even though there is no text length limit for labels in KiCad, please take into account that other programs reading the generated netlist may have such constraints.
Note
Avoid spaces in labels, because they will appear as separated words in the generated file. It is not a limitation of KiCad, but of many netlist formats, which often assume that a label has no spaces.
Netlist dialog

Opsi:

Default Format

Jika dicentang, maka Pcbnew akan digunakan sebagai format default.

Eeschema juga bisa menghasilkan berkas dengan beberapa format berikut ini:

  • Orcad PCB2

  • CadStar

  • Spice (simulator)

Plugin eksternal juga bisa ditambahkan untuk mendukung format netlist yang lain (Pada gambar di atas, ditambahkan plugin PadsPcb).

Informasi lebih lanjut mengenai pembuatan netlist dapat dilihat pada bagian Membuat Netlist.

4.4. Alat Anotasi

The icon Annotate icon launches the annotation tool. This tool assigns references to components.

Untuk komponen-komponen multi-part (misalnya 7400 TTL yang memiliki 4 gate), kita perlu mengalokasikan sufiks multi-part (maka U3 untuk 7400 TTL akan dibagi menjadi U3A, U3B, U3C, dan U3D).

Anda bisa memberikan anotasi pada keseluruhan komponen atau hanya untuk komponen-komponen baru, yaitu komponen yang belum diberikan anotasi sebelumnya.

annotate-dialog_img

Pilihan Scope

Use the entire schematic All sheets are re-annotated (default).

Use the current page only

Only the current sheet is re-annotated (this option is to be used only in special cases, for example to evaluate the amount of resistors in the current sheet.).

Keep existing annotation

Conditional annotation, only the new components will be re-annotated (default).

Reset existing annotation

Unconditional annotation, all the components will be re-annotated (this option is to be used when there are duplicated references).

Reset, but do not swap any annotated multi-unit parts

Keeps all groups of multiple units (e.g. U2A, U2B) together when reannotating.

Urutan Anotasi (Annotation Order)

Pilih urutan penomoran komponen (secara horisontal atau vertikal).

Pilihan Anotasi (Annotation Choice)

Pilih format referensi yang akan diterapkan.

4.5. Alat Electrical Rules Check

The icon ERC icon launches the electrical rules check (ERC) tool.

Peralatan ini digunakan untuk melakukan verifikasi desain dan mampu mendeteksi koneksi yang belum terhubung, serta inkonsistensi.

Once you have run the ERC, KiCad places markers to highlight problems. The error description is displayed after left clicking on the marker. An error report file can also be generated.

4.5.1. Kotak Dialog Utama ERC

ERC dialog

Kesalahan yang ditemukan akan ditampilkan pada kotak dialog ERC, beserta:

  • Jumlah kesalahan dan peringatan.

  • Jumlah kesalahan.

  • Jumlah peringatan.

Opsi:

Create ERC file report

Centang opsi ini untuk membuat berkas laporan ERC.

Perintah:

Delete Markers

Hapus semua penanda kesalahan/peringatan ERC.

Run

Menjalankan Electrical Rules Check.

Close

Tutup kotak dialog.

  • Klik pada pesan kesalahan akan menampilkan penanda yang terkait di skematik.

4.5.2. Kotak Dialog Opsi ERC

ERC Options dialog

Tab ini digunakan untuk mendefinisikan aturan konektivitas antar pin; Anda dapat memilih salah satu dari pilihan berikut, untuk setiap kasus:

  • Tidak ada kesalahan

  • Peringatan

  • Kesalahan

Setiap kotak pada matriks dapat dimodifikasi dengan melakukan klik pada kotak tersebut.

Opsi:

Test similar labels

Melaporkan label yang sama namun menggunakan huruf besar/kecil yang berbeda (contohnya label/Label/LaBeL). Nama net bersifat case-sensitive, sehingga label dengan penggunaan huruf besar/kecil yang berbeda akan diperlakukan sebagai net yang terpisah.

Test unique global labels

Melaporkan label global yang muncul hanya satu kali saja untuk suatu net. Seharusnya diperlukan setidaknya dua buah label untuk membuat satu koneksi.

Perintah:

Initialize to Default

Mengembalikan pengaturan ke awal.

4.6. Alat Daftar Komponen (Bill of Materials)

The icon BOM icon launches the bill of materials (BOM) generator. This tool generates a file listing the components and/or hierarchical connections (global labels).

BOM dialog

The Schematic Editor’s BOM generator makes use of external plugins, either as XSLT or Python scripts. There are a few examples installed inside the KiCad program files directory.

Daftar properti komponen yang diperlukan untuk membuat BOM antara lain:

  • Value - nama unik untuk setiap komponen yang digunakan.

  • Footprint - bisa dibuat secara manual atau dari anotasi-mundur (lihat di bawah).

  • Field1 - nama manufaktur.

  • Field2 - nomor part manufaktur.

  • Field3 - nomor part distibutor.

Contoh:

Component Properties dialog

Pada MS Windows, kotak dialog pembuat BOM memiliki opsi khusus (ditunjukkan oleh panah berwarna merah) untuk menampilkan jendela plugin eksternal. + Secara default, perintah pembuat BOM diekseksusi oleh jendela konsol secara tersembunyi dan hasilnya akan diteruskan ke kotak Plugin info. Centang pilihan ini untuk menampilkan jendela perintah yang sedang berjalan. Hal ini mungkin diperlukan jika plugin menyediakan antarmuka grafis.

BOM dialog extra option on MS Windows

4.7. Alat Pengaturan Atribut

The icon Edit Fields icon opens a spreadsheet to view and modify field values for all symbols.

Symbol Dialog

Jika Anda sudah selesai memodifikasi nilai suatu atribut, Anda harus menerima perubahan dengan klik tombol 'Apply' atau membatalkan modifikasi dengan klik tombol 'Revert'.

4.7.1. Tricks to simplify fields filling

There are several special copy/paste methods in spreadsheet. They may be useful when entering field values that are repeated in a few components.

These methods are illustrated below.

Copy (Ctrl+C) Selection Paste (Ctrl+V)

1copy

1selection

1paste

2copy

2selection

2paste

3copy

3selection

3paste

4copy

4selection

4paste

5copy

5selection

5paste

Note
These techniques are also available in other dialogs with a grid control element.

4.8. Peralatan Impor Footprint

4.8.1. Cara mengakses:

The icon Import Footprint Names icon launches the back-annotate tool.

This tool allows footprint changes made in the PCB Editor to be imported back into the footprint fields in the Schematic Editor.

5. Manajemen Pustaka Simbol

Symbol libraries hold collections of symbols used when creating schematics. Each symbol in a schematic is uniquely identified by a full name that is composed of a library nickname and a symbol name. An example is Audio:AD1853.

5.1. Tabel Pustaka Simbol (Symbol Library Table)

The symbol library table holds a list of all library files KiCad knows about. The symbol library table is constructed from the global symbol library table file and the project specific symbol library table file.

When a symbol is loaded, KiCad uses the library nickname, Audio in our example, to lookup the library location in the symbol library table.

The image below shows the symbol library table editing dialog which can be opened by invoking the Manage Symbol Libraries…​ entry in the Preferences menu.

sym lib table dlg

5.1.1. Tabel Pustaka Simbol Global

The global symbol library table contains the list of libraries that are always available regardless of the currently loaded project file. The table is saved in the file sym-lib-table in the user’s KiCad configuration folder. The location of this folder is dependent upon the operating system being used.

5.1.2. Tabel Pustaka Simbol Proyek

Tabel pustaka simbol yang spesifik terhadap proyek berisi daftar pustaka yang tersedia secara khusus untuk berkas proyek yang saat ini sedang dibuka. Tabel pustaka simbol proyek ini hanya dapat diedit ketika dibuka bersama dengan berkas proyek. Jika tidak ada berkas proyek yang sedang dibuka, atau jika tidak ada berkas tabel pustaka simbol di path proyek yang saat ini sedang dibuka, maka akan dibuat sebuah tabel kosong yang bisa diedit dan disimpan kemudian bersama dengan berkas proyek.

5.1.3. Konfigurasi Awal

The first time the KiCad Schematic Editor is run and the global symbol table file sym-lib-table is not found in the KiCad configuration folder, KiCad will present the "Configure Global Symbol Library Table" dialog to the user. The dialog presents the user with three options.

  • Copy default global symbol library table (recommended). If this option is selected, KiCad will copy the default symbol library table file stored in the system’s Kicad template folder to the file sym-lib-table in the user’s KiCad configuration folder. If the default template sym-lib-table file cannot be found, this option will be grayed out. The missing default table is usually caused by the KiCad default libraries not being installed (on some systems they are installed by a separate package). If the libraries are installed in a non-standard location, use the second option and browse to the library table location manually.

  • Copy custom global symbol library table. If this option is selected, the user must browse to the desired symbol library table file, which will be copied to the user’s KiCad configuration directory.

  • Create an empty global symbol library table. An empty symbol library table file will be created in the user’s KiCad configuration directory. The user must add libraries to the table manually.

symbol library table initial configuration
Note

Tabel pustaka simbol default berisi keseluruhan pustaka simbol yang terinstal sebagai bagian dari KiCad. Hal ini bisa menjadi keuntungan maupun kerugian, tergantung dari penggunaan dan kecepatan sistem. Jumlah waktu yang dibutuhkan untuk memuat pustaka simbol proporsional terhadap jumlah pustaka di dalam tabel pustaka simbol. Jika waktu muat suatu pustaka simbol terlalu lama, hapuslah pustaka yang tidak pernah atau jarang digunakan dari tabel pustaka global dan tambahkan pustaka tersebut ke tabel pustaka proyek jika diperlukan.

5.1.4. Menambahkan Entri Tabel

Untuk dapat menggunakan sebuah pustaka simbol, sebelumnya pustaka tersebut harus ditambahkan ke tabel global atau tabel proyek. Tabel proyek hanya bisa digunakan jika Anda sedang membuka sebuah berkas proyek.

Note
Each library entry must have a unique nickname.

The library nickname does not have to be related in any way to the actual library file name or path. The colon : and \ characters cannot be used anywhere in the library nickname. Each library entry must have a valid path and/or file name depending on the type of library. Paths can be defined as absolute, relative, or by environment variable substitution (see section below).

The appropriate library format must be selected in order for the library to be properly read. "KiCad" format is used for KiCad version 6 libraries (.kicad_sym files), while "Legacy" format is used for libraries from older versions of KiCad (.lib files). Legacy libraries are read-only, but can be migrated to KiCad format libraries using the Migrate Libraries button (see section Migrating Legacy Libraries).

Terdapat kolom 'Description' untuk menambahkan penjelasan mengenai entri pustaka tersebut. Kolom 'Option' saat ini tidak digunakan dan tidak ada efek saat memuat pustaka.

  • Ingat bahwa Anda tidak diperkenankan memiliki nama panggilan yang sama di dalam satu tabel. Namun, dimungkinkan untuk memiliki nama panggilan yang sama di dalam tabel pustaka global dan proyek. Entri pada tabel pustaka proyek akan lebih didahulukan daripada entri pada tabel pustaka global jika ada nama panggilan yang sama. Ketika kita memasukkan suatu entri pada tabel pustaka proyek, sebuah berkas 'sym-lib-table' yang berisi entri tersebut akan dituliskan ke dalam folder berkas proyek yang saat ini dibuka. - -

5.1.5. Substitusi Environment Variable

One of the most powerful features of the symbol library table is environment variable substitution. This allows for definition of custom paths to where symbol libraries are stored in environment variables. Environment variable substitution is supported by using the syntax ${ENV_VAR_NAME} in the library path.

By default, at run time KiCad defines two environment variables relevant for locating symbol libraries:

  • the $KIPRJMOD environment variable that always points to the currently open project directory. $KIPRJMOD cannot be modified.

  • the $KICAD6_SYMBOL_DIR environment variable. This points to the path where the default symbol libraries that were installed with KiCad.

You can override $KICAD6_SYMBOL_DIR by redefining it in PreferencesConfigure Paths…​. This is useful for using libraries installed in a nonstandard location.

$KIPRJMOD allows you to store libraries in the project path without having to define the absolute path (which is not always known) to the library in the project specific symbol library table.

5.1.6. Pola Pemakaian

Symbol libraries can be defined either globally or specifically to the currently loaded project. Symbol libraries defined in the user’s global table are always available and are stored in the sym-lib-table file in the user’s KiCad configuration folder. The project-specific symbol library table is active only for the currently open project file.

Ada keuntungan dan kerugian untuk masing-masing metode tersebut. Mendefinisikan keseluruhan pustaka di dalam tabel global berarti pustaka-pustaka tersebut akan selalu tersedia saat dibutuhkan. Namun kerugiannya adalah waktu yang dibutuhkan untuk memuat pustaka-pustaka tersebut akan bertambah.

Mendefinisikan keseluruhan pustaka simbol di dalam tabel proyek berarti bahwa Anda hanya memiliki pustaka yang dibutuhkan oleh proyek saja, sehingga akan mengurangi waktu yang dibutuhkan untuk memuat pustaka-pustaka tersebut. Namun kekurangannya adalah Anda harus selalu mengingat untuk menambahkan setiap pustaka simbol yang dibutuhkan untuk setiap proyek.

Maka pola pemakaian yang baik adalah mendefinisikan secara global pustaka-pustaka yang umum digunakan. Sedangkan untuk pustaka-pustaka yang spesifik yang hanya dibutuhkan oleh proyek, kita definisikan di dalam tabel pustaka proyek. Tidak ada batasan bagi suatu pustaka untuk didefinisikan ke tabel manapun.

5.1.7. Migrating Legacy Libraries

Legacy libraries (.lib files) are read-only, but they can be migrated to KiCad version 6 libraries (.kicad_sym). KiCad version 6 libraries cannot be viewed or edited by KiCad versions older than 6.0.0.

Legacy libraries can be converted to KiCad 6 libraries by selecting them in the symbol library table and clicking the Migrate Libraries button. Multiple libraries can be selected and migrated at once by Ctrl-clicking or shift-clicking.

Libraries can also be converted one at a time by opening them in the Symbol Editor and saving them as a new library.

5.1.8. Pemetaan Ulang Proyek 'Legacy'

When loading a schematic created prior to the symbol library table implementation, KiCad will attempt to remap the symbol library links in the schematic to the appropriate library table symbols. The success of this process is dependent on several factors:

  • pustaka asli yang digunakan di skematik masih tersedia dan belum berubah dari saat simbol ditambahkan ke dalam skematik.

  • semua operasi penyelamatan telah dilakukan ketika terdeteksi untuk membuat sebuah pustaka penyelamat atau menjaga agar pustaka penyelamat yang ada tetap dalam kondisi terkini.

  • integritas pustaka tembolok simbol proyek tidak dalam kondisi rusak.

Warning

Proses pemetaan ulang akan membuat cadangan untuk keseluruhan berkas yang berubah selama proses pemetaan, di dalam folder 'rescue-backup' di folder proyek. Selalu buat cadangan secara manual untuk proyek Anda sebelum melakukan pemetaan ulang, untuk berjaga-jaga jika pemetaan tidak berjalan sebagaimana mestinya.

Warning

Operasi penyelamatan dilakukan walaupun telah dinonaktifkan, untuk memastikan bahwa simbol-simbol yang tepat telah tersedia untuk dipetakan ulang. Jangan membatalkan operasi ini atau pemetaan ulang akan gagal untuk memetakan simbol-simbol skematik secara benar. Setiap tautan simbol yang rusak harus diperbaiki secara manual.

Note

If the original libraries have been removed and the rescue was not performed, the cache library can be used as a recovery library as a last resort. Copy the cache library to a new file name and add the new library file to the top of the library list using a version of KiCad prior to the symbol library table implementation.

6. Membuat dan Mengedit Skematik

6.1. Pengenalan

Sebuah skematik dapat direpresentasikan oleh satu lembar kerja saja. Namun jika skematik tersebut berukuran besar, akan dibutuhkan beberapa lembar kerja.

A schematic represented by several sheets is hierarchical, and all its sheets (each one represented by its own file) constitute a complete KiCad schematic. The manipulation of hierarchical schematics will be described in the Hierarchical Schematics chapter.

6.2. Pertimbangan Umum

A schematic designed with KiCad is more than a simple graphic representation of an electronic device. It is normally the entry point of a development chain that allows for:

Sebuah skematik berisi sejumlah simbol, wire, label, juction, bus, dan power port. Agar skematik lebih mudah dipahami, Anda bisa meletakkan elemen-elemen grafis tambahan seperti jalur masuk bus, komentar, dan garis poligon.

Symbols are added to the schematic from symbol libraries. After the schematic is made, the set of connections and footprints is imported into the PCB editor for designing a board.

6.3. Meletakkan dan Mengedit Simbol

6.3.1. Mencari dan Meletakkan Simbol

To load a symbol into your schematic you can use the icon New Symbol icon. A dialog box allows you to type the name of the symbol to load.

Choose Component dialog

Kotak Dialog 'Choose Symbols' akan menyaring simbol berdasarkan nama, kata kunci, dan deskripsi menurut apa yang Anda ketikkan ke dalam kotak pencarian. Penyaringan lebih jauh dapat digunakan dengan cara mengetikkan ke dalam kotak pencarian:

  • Wildcards: gunakan karakter ? dan * yang berarti "karakter apapun" dan "karakter sepanjang apapun".

  • Relasional: jika sebuah deskripsi atau kata kunci memiliki tagar dengan format "Key:123", Anda bisa melakukan pencarian relatif terhadap tagar tersebut dengan mengetikkan "Key>123" (lebih besar dari), "Key<123" (kurang dari), dsb. Angka bisa terdiri dari salah satu sufiks berikut ini: (huruf besar dan huruf kecil dianggap sama)

    p

    n

    u

    m

    k

    meg

    g

    t

    10-12

    10-9

    10-6

    10-3

    103

    106

    109

    1012

    ki

    mi

    gi

    ti

    210

    220

    230

    240

  • Regular expression: jika Anda biasa menggunakan regular expression, Anda bisa menggunakannya di sini. Gaya regular expression yang digunakan adalah wxWidgets Advanced Regular Expression style, yang mirip dengan regular expression Perl.

If the symbol specifies a default footprint, this footprint will be previewed in the lower right. If the symbol includes footprint filters, alternate footprints that satisfy the footprint filters can be selected in the footprint dropdown menu at right.

After selecting a symbol to place, the symbol will be attached to the cursor. Left clicking the desired location in the schematic places the symbol into the schematic. Before placing the symbol in the schematic, you can rotate it, mirror it, and edit its fields, by either using the hotkeys or the right-click context menu. These actions can also be performed after placement.

Berikut ini contoh peletakan simbol:

component during placement

If the "Place repeated copies" option is checked, after placing a symbol KiCad will start placing another copy of the symbol. This process continues until the user presses Esc.

For symbols with multiple units, if the "Place all units" option is checked, after placing the symbol KiCad will start placing the next unit in the symbol. This continues until the last unit has been placed or the user presses Esc.

6.3.2. Placing power ports

A power port symbol is a symbol representing a connection to a power net. The symbols are grouped in the power library, so they can be placed using the symbol chooser. However, as power placements are frequent, the Add Power icon tool is available. This tool is similar, except that the search is done directly in the power library.

6.3.3. Mengedit dan Modifikasi Simbol (untuk komponen yang telah diletakkan)

Ada dua cara untuk mengedit sebuah simbol:

  • Modifikasi pada simbol itu sendiri: posisi, orientasi, pemilihan satuan pada simbol dengan pilihan satuan.

  • Modifikasi pada atribut simbol: referensi, nilai, footprint, dsb.

Setelah simbol diletakkan pada lembar kerja, Anda mungkin perlu untuk mengubah nilainya (khusunya untuk resistor, kapasitor, dsb.), namun Anda tidak perlu segera memberikan nomor referensi, atau memilih satuan (kecuali untuk komponen dengan satuan terkunci, di mana Anda harus memilih secara manual). Hal ini dapat dilakukan secara otomatis dengan menggunakan fungsi anotasi.

Modifikasi Simbol

Untuk memodifikasi fitur-fitur dari sebuah simbol, letakkan kursor pada simbol, dan lakukan salah satu dari aksi berikut:

  • Klik-ganda pada simbol untuk membuka kotak dialog editor simbol.

  • Klik-kanan untuk membuka menu konteks dan gunakan salah satu dari perintah berikut: Pindahkan, Putar, Edit, Hapus, dsb.

  • Use a hotkey to perform an action on the symbol (E to open the properties dialog, R to rotate, etc.). Note that hotkeys act on the selected symbol; if no symbol is selected hotkeys act on the symbol under the cursor.

Symbols can also be selected by clicking on them or drag-selecting them. Selected symbols can be modified by clicking relevant buttons in the top toolbar or using a hotkey.

Modifikasi Atribut Teks

Anda dapat memodifikasi referensi, nilai, posisi, orientasi, ukuran teks, dan tampilan dari atribut dengan cara berikut:

  • Klik-ganda pada atribut teks untuk melakukan modifikasi.

  • Klik-kanan untuk membuka menu konteks dan gunakan salah satu dari perintah berikut: Pindahkan, Putar, Edit, Hapus, dsb.

  • Position the cursor over the field (if nothing is selected) or select the field and press E to edit the field.

  • Position the cursor over the symbol (if nothing is selected) or select the symbol and press V, U, or F hotkeys to directly edit the symbol’s value, reference designator, or footprint fields, respectively.

Untuk modifikasi lanjutan, atau untuk membuat suatu atribut, klik-ganda pada simbol untuk membuka kotak dialog 'Symbol Properties'.

Component Properties dialog

Setiap atribut dapat ditampilkan atau disembunyikan, dan dapat ditampilkan secara vertikal atau horisontal. Posisi yang dipilih selalu diindikasikan untuk simbol yang ditampilkan secara normal (tidak diputar atau dicerminkan) dan relatif terhadap titik jangkar dari simbol.

The position and orientation properties of each field may be hidden in this dialog. They can be shown by right-clicking on the column header of the fields table and enabling the "Orientation", "X Position", and/or "Y Position" columns. Other columns can be shown or hidden as desired.

The "Update Symbol from Library…​" button is used to update the schematic’s copy of the symbol to match the copy in the library. The "Change Symbol…​" button is used to swap the current symbol to a different symbol in the library.

"Edit Symbol…​" opens the Symbol Editor to edit the copy of the symbol in the schematic. Note that the original symbol in the library will not be modified. The "Edit Library Symbol…​" button opens the Symbol Editor to edit the original symbol in the library. In this case, the symbol in the schematic will not be modified until the user clicks the "Update Symbol from Library…​" button.

6.4. Electrical Connections

6.4.1. Pengenalan

There are a number of elements that can be added to a schematic to electrically connect components. All of these elements can be placed with the buttons on the vertical right toolbar or using hotkeys.

Elemen-elemen tersebut antara lain:

  • Wires: direct connection between pins.

  • Buses: connections for a group of signals.

  • Bus entries: connections between wires and buses.

  • No-connection flags: terminations for pins or wires that are intentionally unconnected. These flags prevent ERC violations for unconnected pins.

  • Junctions: connections between crossing wires or buses.

  • Net labels: local name for a signal. Signals within a sheet that have the same net label are connected.

  • Global labels: global name for a signal. Signals with the same global label are connected even if they are not in the same sheet.

  • Hierarchical labels: a label for a signal in a subsheet that enables the signal to be accessed in a parent sheet. See the Hierarchical Schematics section for more information about hierarchical labels, sheets, and pins.

  • Hierarchical sheets: an instantiation of a subsheet within a parent sheet. The parent sheet can connect to the subsheet through the subsheet’s hierarchical pins.

  • Hierarchical pins: connection points between a parent sheet and a subsheet. Hierarchical pins appear at the parent sheet’s level and correspond to hierarchical labels in the subsheet.

Several other types of items can be placed on the schematic but do not affect connectivity:

  • Graphical lines: graphical lines for presentation.

  • Text: textual comments and annotations.

  • Bitmap images: raster graphics from an external file.

This section will also discuss two special types of symbols that can be added with the "Power port" button on the right toolbar:

  • Power ports: symbols for connecting wires to a power or ground net.

  • PWR_FLAG: a specific symbol for indicating that a net is powered when it is not connected to a power output pin (for example, a power net that is supplied by an off-board connector).

6.4.2. Koneksi (Wire dan Label)

Ada dua cara untuk membuat suatu koneksi:

  • Wire dari pin ke pin.

  • Label.

Gambar berikut menunjukkan dua metode tersebut:

Wires labels
Label Connections

The point of "contact" of a label is the small square in the corner of the label. The square disappears when the label is connected. The position of the connection point relative to the label text can be changed by choosing a different label orientation in the label properties, or by mirroring/rotating the label.

The label’s connection point must be in contact with a wire or the end of a pin for the label to be connected.

Wire Connections

Untuk membuat suatu koneksi, satu segmen dari wire ujungnya harus dihubungkan ke segmen yang lain atau ke sebuah pin.

Jika terjadi wire yang saling melintas (jika sebuah wire melewati sebuah pin, namun tidak terhubung ke ujung pin), maka koneksi tidak terjadi.

Note
Wires connect with other wires or pins only if their ends conincide exactly. Therefore it is important to keep symbol pins and wires aligned to the grid. It is recommended to always use a 50 mil grid when placing symbols and drawing wires because the KiCad standard symbol library and all libraries that follow its style also use a 50 mil grid.
Note
Symbols, wires, and other elements that are not aligned to the grid can be snapped back to the grid by selecting them, right clicking, and selecting "Align Elements to Grid."
Wire Junctions

Wires that cross are not implicitly connected. It is necessary to join them with a junction dot if a connection is desired. Junction dots will be automatically added to wires that start or end on top of an existing wire.

Junction dots are used in the previous figure on the wires connected to P1 pins 18, 19, 20, 21, 22, and 23.

Nets with Multiple Names

A signal can only have one name. If two different labels are placed on the same net, an ERC violation will be generated. Only one of the net names will be used in the netlist.

6.4.3. Wiring

To begin connecting elements, you may either use the 'Wire' or 'Bus' tools from the right-hand toolbar, or you can auto-start a new wire from any existing pin or unconnected wire.

The wire drag action will drag the entire wire if you start dragging from the middle of the wire. Alternatively, it will drag just one corner if you start the drag action over a corner where two wires connect

6.4.4. Koneksi (Bus)

Pada skematik berikut, ada beberapa pin yang terhubung ke bus.

Example schematic with buses
Anggota Bus

Buses are a way to group related signals in the schematic in order to simplify complicated designs. Buses can be drawn like wires using the bus tool, and are named using labels the same way signal wires are. There are two types of bus in KiCad 6.0 and later: vector buses and group buses.

A vector bus is a collection of signals that start with a common prefix and end with a number. Vector buses are named <PREFIX>[M..N] where PREFIX is any valid signal name, M is the first suffix number, and N is the last suffix number. For example, the bus DATA[0..7] contains the signals DATA0, DATA1, and so on up to DATA7. It doesn’t matter which order M and N are specified in, but both must be non-negative.

A group bus is a collection of one or more signals and/or vector buses. Group buses can be used to bundle together related signals even when they have different names. Group buses use a special label syntax:

<OPTIONAL_NAME>{SIGNAL1 SIGNAL2 SIGNAL3}

The members of the group are listed inside curly braces ({}) separated by space characters. An optional name for the group goes before the opening curly brace. If the group bus is unnamed, the resulting nets on the PCB will just be the signal names inside the group. If the group bus has a name, the resulting nets will have the name as a prefix, with a period (.) separating the prefix from the signal name.

For example, the bus {SCL SDA} has two signal members, and in the netlist these signals will be SCL and SDA. The bus USB1{DP DM} will generate nets called USB1.DP and USB1.DM. For designs with larger buses that are repeated across several similar circuits, using this technique can save time.

Group buses can also contain vector buses. For example, the bus MEMORY{A[7..0] D[7..0] OE WE} contains both vector buses and plain signals, and will result in nets such as MEMORY.A7 and MEMORY.OE on the PCB.

Bus wires can be drawn and connected in the same manner as signal wires, including using junctions to create connections between crossing wires. Like signals, buses cannot have more than one name — if two conflicting labels are attached to the same bus, an ERC violation will be generated.

Koneksi Antar Anggota Bus

Pins connected between the same members of a bus must be connected by labels. It is not possible to connect a pin directly to a bus; this type of connection will be ignored by KiCad.

Pada contoh di atas, koneksi dibuat dengan menggunakan label yang diletakkan pada wire yang terhubung ke pin. Jalur masuk bus (wire dengan sudut 45 derajat) hanya bersifat grafis, dan tidak diperlukan untuk membuat koneksi logis.

In fact, using the repetition command (Insert), connections can be very quickly made in the following way, if component pins are aligned in increasing order (a common case in practice on components such as memories, microprocessors…​):

  • Place the first label (for example PCA0)

  • Use the repetition command as much as needed to place members. KiCad will automatically create the next labels (PCA1, PCA2…​) vertically aligned, theoretically on the position of the other pins.

  • Tariklah wire di bawah label pertama. Lalu gunakan perintah repetisi untuk meletakkan wire berikutnya di bawah label yang sudah dibuat.

  • Jika diperlukan, letakkan jalur masuk bus dengan cara yang sama (Letakkan jalur masuk yang pertama, lalu gunakan perintah repetisi).

Note

In the Schematic EditorEditing Options section of the Preferences menu, you can set the repetition parameters:

  • Horizontal pitch.

  • Vertical pitch.

  • Label increment (labels can be incremented or decremented by 1, 2, 3, etc.).

Bus unfolding

The unfold tool allows you to quickly break out signals from a bus. To unfold a signal, right-click on a bus object (a bus wire, etc) and choose Unfold from Bus. Alternatively, use the Unfold Bus hotkey (default: C) when the cursor is over a bus object. The menu allows you to select which bus member to unfold.

After selecting the bus member, the next click will place the bus member label at the desired location. The tool automatically generates a bus entry and wire leading up to the label location. After placing the label, you can continue placing additional wire segments (for example, to connect to a component pin) and complete the wire in any of the normal ways.

Bus aliases

Bus aliases are shortcuts that allow you to work with large group buses more efficiently. They allow you to define a group bus and give it a short name that can then be used instead of the full group name across the schematic.

To create bus aliases, open the Bus Definitions dialog in the Tools menu.

Bus Definitions Dialog

An alias may be named any valid signal name. Using the dialog, you can add signals or vector buses to the alias. As a shortcut, you can type or paste in a list of signals and/or buses separated by spaces, and they will all be added to the alias definition. In this example, we define an alias called USB with members DP, DM, and VBUS.

After defining an alias, it can be used in a group bus label by putting the alias name inside the curly braces of the group bus: {USB}. This has the same effect as labeling the bus {DP DM VBUS}. You can also add a prefix name to the group, such as USB1{USB}, which results in nets such as USB1.DP as described above. For complicated buses, using aliases can make the labels on your schematic much shorter. Keep in mind that the aliases are just a shortcut, and the name of the alias is not included in the netlist.

Bus aliases are saved in the schematic file. Any aliases created in a given schematic sheet are available to use in any other schematic sheet that is in the same hierarchical design.

Buses with more than one label

KiCad 5.0 and earlier allowed the connection of bus wires with different labels together, and would join the members of these buses during netlisting. This behavior has been removed in KiCad 6.0 because it is incompatible with group buses, and also leads to confusing netlists because the name that a given signal will receive is not easily predicted.

If you open a design that made use of this feature in a modern version of KiCad, you will see the Migrate Buses dialog which guides you through updating the schematic so that only one label exists on any given set of bus wires.

Bus Migration Dialog

For each set of bus wires that has more than one label, you must choose the label to keep. The drop-down name box lets you choose between the labels that exist in the design, or you can choose a different name by manually entering it into the new name field.

Hidden Power Pins

When the power pins of a symbol are visible, they must be connected, as with any other signal.

However, symbols such as gates and flip-flops are sometimes drawn with hidden power input pins which are connected implicitly.

KiCad automatically connects invisible pins with type "power input" to a global net with the same name as the pin. For example, if a symbol has a hidden power input pin named VCC, this pin will automatically be connected to the global VCC net.

Note
Care must be taken with hidden power input pins because they can create unintentional connections. By nature, hidden pins are invisible and do not display their pin name. This makes it easy to accidentally connect two power pins to the same net. For this reason, the use of invisible power pins in symbols is not recommended outside of power port symbols, and is only supported for compatibility with legacy designs and symbols.
Note
Hidden pins can be shown in the schematic by checking the Show hidden pins option in the Schematic EditorDisplay Options section of the preferences, or by selecting ViewShow hidden pins. There is also a toggle icon hidden pin 24 on the left (options) toolbar.

It may be necessary to join power nets of different names (for example, GND in TTL components and VSS in MOS components). To accomplish this, add a power port symbol for each net and connect them with a wire.

It is not recommended to use labels for power connection. These only have a "local" connection scope, and will not connect to invisible power pins.

6.4.5. Power Ports

Power port symbols are conventionally used to connect pins to power nets. Power port symbols have a single pin which is invisible and marked as a power input. As described in the hidden power pins section, any wire connected to the pin of a power port is therefore automatically connected to the power net with the same name as the port’s pin.

In the KiCad standard library, power ports are found in the power library, but power port symbols can be created in any library. To create a custom power port, make a new symbol with a hidden pin marked as a power input. Name the pin according to the desired power net.

Gambar di bawah ini menampilkan sebuah contoh koneksi port power.

Power ports example

In this example, power ports symbols are used to connect the positive and negative terminals of the capacitors to the VCC and GND nets, respectively.

Power port symbols are found in the power symbol library. They can also be created by drawing a symbol with a hidden "power input" pin that has the name of the desired power net.

6.4.6. PWR_FLAG

Two PWR_FLAG symbols are visible. They indicate to ERC that the two power nets VCC and GND are actually connected to a power source, as there is no explicit power source such as a voltage regulator output attached to either net.

Without these two flags, the ERC tool would diagnose: Error: Input Power pin not driven by any Output Power pins.

The PWR_FLAG symbol is found in the power symbol library. The same effect can be achieved by connecting any "Power Output" pin to the net.

6.4.7. No-connection flag

No-connection flags (No-connection icon) are used to indicate that a pin is intentionally unconnected. These flags do not have any effect on the schematic’s connectivity, but they prevent "unconnected pin" ERC warnings for pins that are intentionally unconnected.

6.5. Peralatan Pelengkap Gambar

6.5.1. Text comments and graphic lines

It can be useful to place annotations such as text fields and frames to aid in understanding the schematic. Text fields (text 24) and graphic lines (add dashed line 24) are intended for this use, as opposed to labels and wires, which are connection elements.

The image below shows graphic lines and text in addition to wires, local labels, and hierarchical labels.

Frame with comment example

6.5.2. Blok Judul pada Lembar Kerja

The title block is edited with the Page Settings tool (Page Settings tool).

Page settings dialog

Each field in the title block can be edited, as well as the paper size and orientation. If the "Export to other sheets" option is checked for a field, that field will be updated in the title block of all sheets, rather than only the current sheet.

A drawing sheet template file can also be selected.

Title block

The sheet number (Sheet X/Y) is automatically updated, but sheet page numbers can also be manually set using EditEdit Sheet Page Number…​.

6.6. Menyelamatkan tembolok simbol

By default, KiCad loads symbols from the project libraries according to the set paths and library order. This can cause a problem when loading a very old project: if the symbols in the library have changed or have been removed or the library no longer exists since they were used in the project, the ones in the project would be automatically replaced with the new versions. The new versions might not line up correctly or might be oriented differently leading to a broken schematic.

When a project is saved, a cache library with the contents of the current library symbols is saved along with the schematic. This allows the project to be distributed without the full libraries. If you load a project where symbols are present both in its cache and in the system libraries, KiCad will scan the libraries for conflicts. Any conflicts found will be listed in the following dialog:

Rescue conflicts dialog

Anda bisa melihat pada contoh di atas bahwa proyek yang awalnya menggunakan sebuah dioda dengan katoda berada di atas, namun pustaka yang tersedia sekarang berisi dioda dengan katoda berada di bawah. Perubahan ini akan membuat skematik menjadi rusak! Jika kita menekan tombol OK, maka pustaka tembolok akan disimpan ke dalam pustaka khusus "'rescue'" dan semua simbol akan dinamai ulang untuk mencegah konflik dalam penamaan.

If you press Cancel, no rescues will be made, so KiCad will load all the new components by default. If you save the schematic at this point, your cache will be overwritten and the old symbols will not be recoverable. If you have saved the schematic, you can still go back and run the rescue function again by selecting "Rescue Cached Components" in the "Tools" menu to call up the rescue dialog again.

Jika Anda tidak ingin menampilkan kotak dialog ini, Anda bisa memilih tombol "'Never show Again'". Secara default, Eeschema tidak akan melakukan apapun dan akan memuat seluruh komponen baru. Pilihan ini dapat diubah kembali pada menu "'Preferences'".

7. Skematik Hirarkis

7.1. Pengenalan

Representasi hirarkis secara umum menjadi solusi yang baik untuk proyek yang lebih besar dari beberapa lembar kerja. Jika Anda ingin menangani proyek semacam ini, Anda perlu untuk:

  • Menggunakan lembar kerja yang besar, yang akan menyebabkan skematik menjadi sulit ditangani dan dicetak.

  • Menggunakan beberapa lembar kerja, yang akan menjadikan skematik terstruktur secara hirarkis.

Skematik yang lengkap akan terdiri dari satu lembar kerja utama, yang disebut lembar kerja 'root', dan anak lembar kerja yang menyusun hirarki. Pembagian desain menjadi beberapa lembar kerja yang terpisah bisa memudahkan pembacaan.

From the root sheet, you must be able to find all sub-sheets. Hierarchical schematics management is very easy with KiCad, thanks to an integrated "hierarchy navigator" accessible via the icon Hierarchy navigator icon of the top toolbar.

Ada dua tipe hirarki, di mana keduanya bisa digunakan bersamaan: tipe pertama telah umum digunakan. Tipe kedua terdiri dari pembuatan simbol-simbol pada pustaka yang tampak seperti simbol biasa di skematik, tetapi sebenarnya berhubungan dengan sebuah skematik yang menjelaskan struktur internalnya.

Tipe yang kedua digunakan untuk mengembangkan 'Integrated Circuit', karena dalam kasus ini Anda harus menggunakan pustaka fungsi di dalam skematik.

KiCad currently doesn’t treat this second case.

Sebuah hirarki bisa:

  • sederhana: satu lembar kerja hanya digunakan satu kali saja

  • kompleks: satu lembar kerja dapat digunakan lebih dari satu kali (beberapa kali kemunculan)

  • rata: adalah hirarki yang sederhana, namun koneksi antar lembar kerja tidak digambarkan.

KiCad can deal with all these hierarchies.

Pembuatan skematik hirarkis sangat mudah, keseluruhan hirarki ditangani mulai dari skematik utama, seperti jika anda hanya memiliki satu skematik.

Dua langkah penting untuk dipahami antara lain:

  • Bagaimana cara membuat anak lembar kerja.

  • Bagaimana cara membangun koneksi-koneksi elektrikal antar anak lembar kerja.

Navigation among sub-sheets is acheived by using the navigator tool accessible via the button Hierarchy navigator icon on the top toolbar.

hierarchy_navigator_dialog_png

Untuk memilih lembar kerja, klik pada nama lembar kerja tersebut. Untuk membuka, klik-kanan pada nama lembar kerja, dan pilih 'Enter Sheet' atau klik-ganda dalam batas lembar kerja.

Untuk keluar dari lembar kerja yang sedang dibuka menuju ke lembar kerja utama, klik-kanan pada skematik, dan pilih 'Leave Sheet' pada menu konteks, atau tekan 'Alt+Backspace'.

7.3. Label Lokal, Hirarkis, dan Global

7.3.1. Properti

Local labels, tool Local label icon, are connecting signals only within a sheet. Hierarchical labels (tool Hierarchical label icon) are connecting signals only within a sheet and to a hierarchical pin placed in the parent sheet.

Global labels (tool Global label icon) are connecting signals across all the hierarchy. Power pins (type power in and power out) invisible are like global labels because they are seen as connected between them across all the hierarchy.

Note
Di dalam satu hirarki (sederhana atau kompleks), kita bisa menggunakan label hirarkis maupun label global.

7.4. Membuat Hirarki

Anda perlu melakukan:

  • Meletakkan simbol hirarki "'sheet symbol'" di lembar kerja utama.

  • Masuk ke skematik baru (anak lembar kerja) dengan menggunakan navigator, dan menggambar skematik seperti biasa.

  • Menggambar koneksi-koneksi elektrik antar kedua skematik dengan meletakkan label global (HLabels) pada skematik yang baru (anak lembar kerja), dan label yang memiliki nama yang sama di lembar kerja utama, disebut SheetLabels. SheetLabels akan terhubung ke simbol lembar kerja dari lembar kerja utama ke elemen-elemen yang lain dari skematik, seperti pin-pin simbol standar.

7.5. Simbol Lembar Kerja

Kita perlu membuat sebuah persegi yang akan menggambarkan anak lembar kerja.

Ukuran dari persegi ini harus cukup untuk meletakkan label-label dan pin hirarkis, yang berhubungan dengan label global (HLabels) pada anak lembar kerja.

These labels are similar to usual symbol pins. Select the tool Add hierarchical subsheet icon.

Klik untuk meletakkan sudut kiri atas persegi. Klik sekali lagi untuk meletakkan sudut kanan bawah, dan pastikan ukuran persegi cukup besar.

Akan muncul kotak dialog untuk mengatur nama berkas dan nama lembar kerja yang dibuat. Nama lembar kerja ini digunakan untuk mengakses skematik menggunakan navigator hirarki.

hsheet_properties_1_png

Anda harus menuliskan setidaknya sebuah nama berkas. Jika tidak ada nama lembar kerja, maka nama berkas akan digunakan sebagai nama lembar kerja.

7.6. Koneksi - Pin Hirarkis

Anda akan membuat titik koneksi (pin-pin hirarki) untuk simbol yang telah dibuat.

Titik-titik koneksi tersebut mirip dengan pin simbol normal, namun bisa menghubungkan sebuah bus yang lengkap dengan hanya satu titik koneksi.

7.6.1. Importing Hierarchical Sheet Pins

  • Select the tool Import hierarchical pin icon.

  • Click on the hierarchical sheet from where you want to import the pins corresponding to hierarchical labels placed in the corresponding schematic. A hierarchical pin appears, if a new hierarchical label exists, i.e. not corresponding to an already placed pin.

  • Klik di mana Anda ingin meletakkan pin ini.

All necessary pins can thus be placed quickly and without error. Their aspect is in accordance with corresponding hierarchical labels.

7.7. Koneksi - Label Hirarkis

Each pin of the sheet symbol just created, must correspond to a label called hierarchical Label in the sub-sheet. Hierarchical labels are similar to labels, but they provide connections between sub-sheet and root sheet. The graphical representation of the two complementary labels (pin and hierarchical labels) is similar. Hierarchical labels are made with the tool Add hierarchical label icon.

Lihat contoh lembar kerja utama di bawah ini:

hierarchical_label_root_png

Perhatikan pin VCC_PIC, terhubung ke konektor JP1.

Berikut adalah koneksi yang terkait pada anak lembar kerja:

hierarchical_label_sub_png

Kembali Anda temukan dua label hirarkis yang terkait, yang menghubungkan antar dua lembar kerja hirarkis.

Note
Anda bisa menggunakan label hirarkis dan pin hirarkis untuk menghubungkan dua bus, menurut sintaks (Bus [N..m]) yang telah dijelaskan sebelumnya.

7.7.1. Label, Label Hirarkis, Label Global, dan Pin Power Tersembunyi

Berikut beberapa komentar mengenai berbagai cara untuk membuat suatu koneksi, selain koneksi wire.

Label Sederhana

Label sederhana memiliki koneksi dengan kapasitas lokal, yaitu terbatas pada lembar kerja skematik di mana label tersebut diletakkan. Hal ini karena:

  • Setiap lembar kerja memiliki nomor lembar kerja.

  • Nomor lembar kerja ini terkait dengan label.

Maka, jika Anda meletakkan label "TOTO" pada lembar kerja n° 3, sebenarnya nama label ini adalah "TOTO_3". Jika Anda juga meletakkan sebuah label "TOTO" pada lembar kerja n° 1 (lembar kerja utama), Anda sebenarnya meletakkan label "TOTO_1", berbeda dari "TOTO_3". Hal ini berlaku meskipun hanya ada satu lembar kerja saja.

Label Hirarkis

Sifat-sifat label sederhana juga berlaku untuk label hirarkis.

Dengan demikian pada lembar kerja yang sama, sebuah label hirarkis "TOTO" akan terhubung ke label lokal "TOTO", tetapi tidak terhubung ke label hirarkis atau label "TOTO" di lembar kerja lain.

Label hirarkis akan terhubung ke simbol pin lembar kerja yang sesuai pada simbol hirarkis yang diletakkan di lembar kerja utama.

Pin Power Tersembunyi

Pin power yang tersembunyi akan saling terhubung jika memiliki nama yang sama. Maka pin power tersembunyi dengan nama VCC akan terhubung dengan semua pin power tersembunyi lainnya yang juga bernama VCC, namun hanya di dalam satu lembar kerja saja.

Artinya, jika Anda meletakkan label VCC pada suatu anak lembar kerja, label tersebut tidak akan terhubung ke pin VCC, karena nama sebenarnya dari label ini adalah VCC_n, di mana n adalah nomor lembar kerja.

Jika Anda ingin supaya label VCC tersebut terhubung dengan label VCC di keseluruhan skematik, Anda harus menghubungkannya secara eksplisit ke pin power tersembunyi melalui simbol power VCC.

7.7.2. Label Global

Label global yang memiliki nama yang sama akan terhubung di keseluruhan hirarki.

(label power seperti vcc …​ adalah label global)

7.8. Hirarki Kompleks

Berikut adalah suatu contoh. Skematik yang sama digunakan sebanyak dua kali (dua kemunculan). Dua buah lembar kerja berbagi skematik yang sama karena kedua lembar kerja tersebut menggunakan nama berkas yang sama ("other_sheet.sch"). Sedangkan nama lembar kerja harus unik.

eeschema_complex_hierarchy_png

7.9. Hirarki Datar

Anda bisa membuat sebuah proyek menggunakan banyak lembar kerja tanpa harus membuat koneksi antar lembar kerja tersebut (hirarki datar) jika Anda mengikuti aturan berikut:

  • Buat sebuah lembar kerja utama berisi lembar kerja yang lain, yang berfungsi sebagai tautan antara lembar kerja.

  • Tidak diperlukan koneksi eksplisit.

  • Gunakan label global pada semua lembar kerja, dan jangan menggunakan label hirarkis.

Berikut adalah contoh lembar kerja utama.

eeschema_flat_hierarchy_png

Berikut ini dua halaman yang terhubung oleh label global.

Berikut adalah pic_programmer.sch.

eeschema_flat_hierarchy_1_png

Berikut adalah pic_sockets.sch.

eeschema_flat_hierarchy_2_png

Perhatikan label global yang digunakan.

eeschema_flat_hierarchy_3_png

8. Alat Anotasi Simbol

8.1. Pengenalan

The annotation tool allows you to automatically assign a designator to symbols in your schematic. Annotation of symbols with multiple units will assign a unique suffix to minimize the number of these symbols. The annotation tool is accessible via the icon Annotate icon. Here you find its main window.

annotate-dialog_img

Berikut skema anotasi yang tersedia:

  • Memberikan anotasi pada semua simbol (mereset pilihan anotasi sebelumnya)

  • Memberikan anotasi pada semua simbol, namun jangan melakukan anotasi ulang pada simbol yang terdiri dari beberapa bagian, yang telah mendapatkan anotasi sebelumnya.

  • Memberikan anotasi hanya pada simbol yang belum mendapatkan anotasi sebelumnya. Simbol yang belum mendapatkan anotasi akan memiliki penunjuk yang berakhiran dengan tanda "'?'".

  • Memberikan anotasi pada keseluruhan hirarki (gunakan opsi 'Use the entire schematic').

  • Memberikan anotasi hanya pada lembar kerja yang sedang dibuka (gunakan opsi 'Use the current page only').

Opsi 'Reset, but do not swap any annotated multi-unit parts' akan mempertahankan semua asosiasi yang telah ada pada simbol yang terdiri dari beberapa bagian. Sebagai contoh, U2A dan U2B bisa mendapatkan anotasi ulang ke U1A dan U1B, namun mereka tidak akan mendapatkan anotasi ulang meenjadi U1A dan U2A, ataupun ke U2B dan U2A. Hal ini berguna jika Anda ingin memastikan agar pengelompokan pin tetap terjaga.

Kita bisa memilih urutan anotasi untuk mengatur nomor referensi di dalam setiap lembar kerja pada hirarki.

Kecuali untuk kasus-kasus tertentu, anotasi otomatis dapat diterapkan ke keseluruhan proyek (semua lembar kerja) dan ke komponen baru, jika Anda tidak ingin mengubah hasil anotasi sebelumnya.

Kita bisa memilih metode yang digunakan untuk melakukan kalkulasi referensi:

  • 'Use first free number in schematic': komponen akan diberikan anotasi mulai dari angka 1 (untuk tiap prefiks referensi). Jika sudah ada anotasi sebelumnya, maka nomor yang akan diberikan hanya nomor yang belum digunakan.

  • 'Start to sheet number*100 and use first free number': anotasi akan dimulai dari 101 untuk lembar kerja 1, dari 201 untuk lembar kerja 2, dst. Jika terdapat lebih dari 99 item yang memiliki prefiks referensi yang sama (U, R) di dalam lembar kerja 1, maka alat anotasi akan menggunakan nomor 200 dan seterusnya, dan anotasi untuk lembar kerja 2 akan dimulai dari nomor bebas berikutnya.

  • 'Start to sheet number*1000 and use first free number': anotasi dimulai dari 1001 untuk lembar kerja 1, dari 2001 untuk lembar kerja 2.

8.2. Contoh Penggunaan

8.2.1. Urutan Anotasi

Contoh berikut menunjukkan 5 buah elemen yang telah diletakkan, namun belum dilakukan anotasi.

eeschema_annotation_order_none_png

Setelah alat anotasi dijalankan, didapatkan hasil berikut.

Diurutkan berdasarkan sumbu X.

eeschema_annotation_order_x_png

Diurutkan berdasarkan sumbu Y.

eeschema_annotation_order_y_png

Amati bahwa keempat gate 74LS00 didistribusikan sebagai paket U1, sedangkan 74LS00 yang kelima mendapatkan penomoran berikutnya, yaitu U2.

8.2.2. Pilihan Anotasi

Berikut adalah anotasi pada lembar kerja 2 di mana digunakan opsi 'Use first free number in schematic'.

eeschema_annotation_choice_free_png

Opsi 'start to sheet number*100 and use first free number' memberikan hasil berikut.

eeschema_annotation_choice_x100_png

Opsi 'Start to sheet number*1000 and use first free number' memberikan hasil berikut.

eeschema_annotation_choice_x1000_png

9. Verifikasi Desain dengan Electrical Rules Check

9.1. Pengenalan

Electrical Rules Check (ERC) bertugas melakukan pemeriksaan otomatis pada skematik Anda. ERC akan memeriksa adanya kesalahan pada lembar kerja Anda, seperti pin yang belum terhubung, simbol hirarkis yang belum terhubung, keluaran yang mengalami hubung-singkat, dsb. Namun perlu diingat bahwa pemeriksaan otomatis tidak bisa memeriksa secara sempurna, dan perangkat lunak yang mampu mendeteksi semua kesalahan desain belum sepenuhnya lengkap. Pemeriksaan seperti ini sangat berguna, karena Anda bisa mendeteksi kekeliruan dan kesalahan-kesalahan kecil dengan mudah.

In fact all detected errors must be checked and then corrected before proceeding as normal. The quality of the ERC is directly related to the care taken in declaring electrical pin properties during symbol library creation. ERC output is reported as errors'' or warnings''.

ERC dialog

9.2. Penggunaan ERC

ERC can be started by clicking on the icon ERC icon.

Akan muncul penanda pada elemen skematik yang menyebabkan kesalahan ERC (pin atau label).

Note
  • Pada kotak dialog ini, saat Anda melakukan klik pada pesan kesalahan, Anda akan diarahkan ke penanda yang terkait pada skematik.

  • Pada skematik, klik-kanan pada penanda untuk mengakses pesan hasil pemeriksaan yang terkait.

You can also delete error markers from the dialog and set specific ERC messages to be suppressed by using the right-click context menu.

Ignore ERC warning

9.3. Contoh ERC

ERC pointers

Pada gambar di atas, Anda bisa melihat adanya empat kesalahan:

  • Dua keluaran telah tersambung secara tidak sengaja (tanda panah warna merah).

  • Dua masukan belum tersambung (tanda panah warna hijau).

  • Terdapat kesalahan pada port power tersembunyi, dimana tidak ada bendera power (tanda panah warna hijau di atas).

9.4. Menampilkan Hasil Pemeriksaan

Klik-kanan pada penanda kesalahan. Akan muncul menu pop-up untuk mengakses kotak dialog hasil pemeriksaan ERC.

ERC pointers info

Klik 'Marker Error Info' untuk menampilkan deskripsi kesalahan.

ERC pointers message

9.5. Pin dan Bendera Power

Kita akan sering menjumpai kesalahan atau peringatan pada pin-pin power, meskipun sepertinya semuanya tampak normal. Perhatikan contoh di atas. Hal ini terjadi karena, pada kebanyakan desain, power disediakan oleh konektor yang bukan merupakan sumber tenaga (seperti keluaran regulator, yang dinyatakan sebagai Power out).

Maka, ERC tidak akan menemukan adanya pin Power out untuk mengendalikan wire ini, dan akan menyatakan bahwa wire tersebut tidak terhubung ke sumber tenaga.

Untuk menghindari peringatan ini, Anda harus meletakkan sebuah "PWR_FLAG" pada port power tersebut. Perhatikan contoh berikut:

Power pins and flags

Penanda kesalahan akan menghilang.

Seringkali, PWR_FLAG harus dihubungkan ke GND, karena regulator memiliki keluaran yang dinyatakan sebagai Power out, akan tetapi pin ground bukanlah Power out (atribut normalnya adalah Power in), sehingga tanpa adanya simbol PWR_FLAG, ground tidak akan tampak terhubung ke sumber tenaga.

9.6. Konfigurasi

The Pin Conflicts Map panel in Schematic Setup allows you to configure connectivity rules to define electrical conditions for errors and warnings based on what types of pins are connected to each other

Schematic ERC Pin Conflicts Map

Aturan dapat diubah dengan melakukan klik pada kotak yang diinginkan pada matriks. Pilihan yang tersedia adalah 'normal', 'warning', dan 'error'.

Schematic ERC severity settings

The Violation Severity panel in Schematic Setup lets you configure what types of ERC messages should be reported as Errors, Warnings or ignored.

9.7. Berkas Laporan ERC

Berkas laporan ERC dapat dibuat dan disimpan dengan memilih opsi 'Write ERC report'. Ekstensi berkas untuk laporan ERC adalah .erc. Berikut adalah contoh dari berkas laporan ERC.

ERC control (4/1/1997-14:16:4)

***** Sheet 1 (INTERFACE UNIVERSAL)
ERC: Warning Pin input Unconnected @ 8.450, 2.350
ERC: Warning passive Pin Unconnected @ 8.450, 1.950
ERC: Warning: BiDir Pin connected to power Pin (Net 6) @ 10.100, 3.300
ERC: Warning: Power Pin connected to BiDir Pin (Net 6) @ 4.950, 1.400

>> Errors ERC: 4

10. Membuat Netlist

10.1. Gambaran Umum

Netlist adalah sebuah berkas yang berisi penjelasan koneksi elektrikal antar simbol. Koneksi tersebut disebut sebagai net. Pada berkas Netlist, Anda akan menemukan:

  • Daftar simbol

  • Daftar koneksi (net) antar simbol.

Ada beragam format Netlist yang berbeda. Terkadang, daftar simbol dan daftar net dibuat menjadi dua berkas yang terpisah. Netlist ini sangat penting dalam penggunaan perangkat lunak pembuat skematik, karena Netlist akan menjadi penghubung dengan perangkat lunak CAD elektronik lainnya seperti:

  • Perangkat lunak pembuat tata letak PCB.

  • Simulator skematik dan sinyal elektrikal.

  • Kompiler CPLD (dan IC terprogram lainnya).

The KiCad Schematic Editor supports several netlist formats.

  • Format PCBNEW (papan PCB).

  • Format PCB2 ORCAD (papan PCB).

  • Format CADSTAR (papan PCB).

  • Format Spice, untuk berbagai simulator (format Spice juga digunakan untuk berbagai simulator lain).

10.2. Format-format Netlist

Pilih ikon Netlist icon untuk membuka kotak dialog pembuatan Netlist.

Tab Pcbnew

eeschema_netlist_dialog_pcbnew_png

Tab Spice

eeschema_netlist_dialog_spice_png

Anda dapat memilih format yang diinginkan dengan memilih tab yang sesuai. Pada format Spice, Anda dapat membuat Netlist dengan menggunakan nama net yang akan menjadikan berkas SPICE lebih mudah dibaca, atau menggunakan nomor net yang digunakan oleh Spice versi lama. Setelah menekan tombol Netlist, Anda harus menuliskan nama Netlist yang diinginkan.

Note
Pembuatan Netlist bisa memerlukan waktu hingga beberapa menit untuk skematik yang besar.

10.3. Contoh Netlist

Contoh berikut ini adalah sebuah desain skematik menggunakan pustaka PSPICE:

eeschema_netlist_schematic_png

Contoh berkas Netlist PCBNEW:

# Eeschema Netlist Version 1.0 generee le 21/1/1997-16:51:15
(
(32E35B76 $noname C2 1NF {Lib=C}
(1 0)
(2 VOUT_1)
)
(32CFC454 $noname V2 AC_0.1 {Lib=VSOURCE}
(1 N-000003)
(2 0)
)
(32CFC413 $noname C1 1UF {Lib=C}
(1 INPUT_1)
(2 N-000003)
)
(32CFC337 $noname V1 DC_12V {Lib=VSOURCE}
(1 +12V)
(2 0)
)
(32CFC293 $noname R2 10K {Lib=R}
(1 INPUT_1)
(2 0)
)
(32CFC288 $noname R6 22K {Lib=R}
(1 +12V)
(2 INPUT_1)
)
(32CFC27F $noname R5 22K {Lib=R}
(1 +12V)
(2 N-000008)
)
(32CFC277 $noname R1 10K {Lib=R}
(1 N-000008)
(2 0)
)
(32CFC25A $noname R7 470 {Lib=R}
(1 EMET_1)
(2 0)
)
(32CFC254 $noname R4 1K {Lib=R}
(1 +12V)
(2 VOUT_1)
)
(32CFC24C $noname R3 1K {Lib=R}
(1 +12V)
(2 N-000006)
)
(32CFC230 $noname Q2 Q2N2222 {Lib=NPN}
(1 VOUT_1)
(2 N-000008)
(3 EMET_1)
)
(32CFC227 $noname Q1 Q2N2222 {Lib=NPN}
(1 N-000006)
(2 INPUT_1)
(3 EMET_1)
)
)
# End

Berikut adalah Netlist dalam format PSPICE:

* Eeschema Netlist Version 1.1 (Spice format) creation date: 18/6/2008-08:38:03

.model Q2N2222 npn (bf=200)
.AC 10 1Meg \*1.2
.DC V1 10 12 0.5


R12   /VOUT N-000003 22K
R11   +12V N-000003 100
L1   N-000003 /VOUT 100mH
R10   N-000005 N-000004 220
C3   N-000005 0 10uF
C2   N-000009 0 1nF
R8   N-000004 0 2.2K
Q3   /VOUT N-000009 N-000004 N-000004 Q2N2222
V2   N-000008 0 AC 0.1
C1   /VIN N-000008 1UF
V1   +12V 0 DC 12V
R2   /VIN 0 10K
R6   +12V /VIN 22K
R5   +12V N-000012 22K
R1   N-000012 0 10K
R7   N-000007 0 470
R4   +12V N-000009 1K
R3   +12V N-000010 1K
Q2   N-000009 N-000012 N-000007 N-000007 Q2N2222
Q1   N-000010 /VIN N-000007 N-000007 Q2N2222

.print ac v(vout)
.plot ac v(nodes) (-1,5)

.end

10.4. Catatan Mengenai Netlist

10.4.1. Penamaan Netlist

Kebanyakan perangkat lunak yang menggunakan Netlist tidak menerima penggunaan spasi pada nama komponen, pin, net, atau informasi-informasi lainnya. Hindari penggunaan spasi pada label, atau atribut nama atau nilai pada komponen atau pin-pinnya, untuk memastikan kompatibilitas maksimum.

In the same way, special characters other than letters and numbers can cause problems. Note that this limitation is not related to KiCad, but to the netlist formats that can then become untranslatable to software that uses netlist files.

10.4.2. Netlist PSPICE

Untuk simulator Pspice, Anda harus memasukkan beberapa baris perintah pada Netlist itu sendiri (.PROBE, .AC, dsb).

Setiap baris teks yang ada pada diagram skematik yang dimulai dari kata kunci -pspice atau -gnucap akan dimasukkan (tanpa kata kunci) pada bagian atas Netlist.

Setiap baris teks yang ada pada diagram skematik yang dimulai dari kata kunci +pspice atau +gnucap akan dimasukkan (tanpa kata kunci) pada bagian akhir netlist.

Berikut adalah contoh penggunaan beberapa teks satu baris dan satu teks dengan lebih dari satu baris:

eeschema_pspice_netlist_png

Sebagai contoh, jika Anda menuliskan teks berikut (jangan menggunakan label!):

-PSPICE .PROBE

Sebuah baris .PROBE akan dimasukkan ke dalam Netlist.

Pada contoh sebelumnya, ada tiga baris yang dimasukkan di awal Netlist, dan dua di akhir Netlist dengan teknik ini.

Jika Anda menggunakan teks dengan lebih dari satu baris, kata kunci +pspice atau +gnucap hanya diperlukan satu kali saja:

+PSPICE .model NPN NPN
.model PNP PNP
.lib C:\Program Files\LTC\LTspiceIV\lib\cmp\standard.bjt
.backanno

menghasilkan empat baris:

.model NPN NPN
.model PNP PNP
.lib C:\Program Files\LTC\LTspiceIV\lib\cmp\standard.bjt
.backanno

Perhatikan juga bahwa net GND harus dinamai 0 (zero) untuk Pspice.

10.5. Format Lain

For other netlist formats you can add netlist converters in the form of plugins. These converters are automatically launched by KiCad. Chapter 14 gives some explanations and examples of converters.

A converter is a text file (xsl format) but one can use other languages like Python. When using the xsl format, a tool (xsltproc.exe or xsltproc) read the intermediate file created by KiCad, and the converter file to create the output file. In this case, the converter file (a sheet style) is very small and very easy to write.

10.5.1. Memulai Kotak Dialog

Anda bisa menambahkan sebuah plugin Netlist melalui tombol 'Add Plugin'.

eeschema_netlist_dialog_add_plugin_png

Berikut tampilan pengaturan plugin PadsPcb:

eeschema_netlist_dialog_padspcb_png

Pengaturan ini membutuhkan:

  • Sebuah judul (sebagai contoh, nama dari format Netlist).

  • Plugin yang akan dijalankan.

Ketika Netlist telah berhasil dibuat:

  1. KiCad creates an intermediate file *.tmp, for example test.tmp.

  2. KiCad runs the plug-in, which reads test.tmp and creates test.net.

10.5.2. Format Baris Perintah

Berikut adalah contoh penggunaan xsltproc.exe sebagai alat untuk mengkonversi berkas .xsl, dan sebuah berkas netlist_form_pads-pcb.xsl sebagai gaya lembar kerja konverter:

f:/kicad/bin/xsltproc.exe -o %O.net f:/kicad/bin/plugins/netlist_form_pads-pcb.xsl %I

Dengan:

f:/kicad/bin/xsltproc.exe A tool to read and convert xsl file

-o %O.net

Output file: %O will define the output file.

f:/kicad/bin/plugins/netlist_form_pads-pcb.xsl

File name converter (a sheet style, xsl format).

%I

Will be replaced by the intermediate file created by KiCad (*.tmp).

Untuk sebuah skematik dengan nama test.sch, baris perintahnya adalah:

f:/kicad/bin/xsltproc.exe -o test.net f:/kicad/bin/plugins/netlist_form_pads-pcb.xsl test.tmp.

10.5.3. Konverter dan Gaya Lembar Kerja (Plugin)

Ini adalah perangkat lunak yang sangat sederhana, karena tugasnya hanya untuk mengkonversi sebuah berkas teks masukan (berkas teks antara) menjadi berkas teks yang lain. Lebih lanjut lagi, dari berkas teks antara, Anda dapat membuat sebuah daftar BOM.

Ketika menggunakan xsltproc sebagai konverter, hanya gaya lembar kerja yang akan dibuat.

10.5.4. Format Berkas Netlist Antara

Lihat Bab 14 untuk mendapatkan penjelasan lebih mengenai xsltproc, penjelasan mengenai format berkas antara, dan beberapa contoh dari gaya lembar kerja untuk konverter.

11. Plot dan Cetak

11.1. Pengenalan

Anda bisa mengakses perintah cetak dan plot melalui menu 'File'.

eeschema_file_menu_plot_png

Format keluaran yang didukung adalah Postscript, PDF, SVG, DXF, dan HPGL. Anda juga bisa mencetak secara langsung ke mesin pencetak Anda.

11.2. Perintah Pencetak Umum

'Plot Current Page'

Mencetak hanya satu berkas untuk lembar kerja yang saat ini dibuka.

'Plot All Pages'

Mencetak plot untuk keseluruhan hirarki (akan dibuat satu berkas cetak untuk setiap lembar kerja).

11.3. Plot dalam Format Postscript

Perintah berikut akan menghasilkan berkas PostScript.

eeschema_plot_postscript_png

Nama berkas yang dihasilkan akan menggunakan nama lembar kerja dengan ekstensi .ps. Anda bisa menonaktifkan opsi "'Plot border and title block'". Hal ini berguna jika Anda ingin membuat sebuah berkas Postscript sebagai enkapsulasi (format .eps) yang kadang digunakan untuk memasukkan sebuah diagram ke dalam perangkat lunak pengolah kata. Kotak 'Messages' akan menampilkan nama berkas yang berhasil dibuat.

11.4. Plot dalam Format PDF

eeschema_plot_pdf.png

Anda bisa membuat berkas plot menggunakan format PDF. Nama berkas yang dihasilkan akan menggunakan nama lembar kerja, dengan ekstensi .pdf.

11.5. Plot dalam Format SVG

eeschema_plot_svg_png

Anda bisa membuat berkas plot menggunakan format vektor SVG. Nama berkas yang dihasilkan akan menggunakan nama lembar kerja, dengan ekstensi .svg.

11.6. Plot dalam Format DXF

eeschema_plot_dxf_png

Anda bisa membuat berkas plot menggunakan format DXF. Nama berkas yang dihasilkan akan menggunakan nama lembar kerja dengan ekstensi .dxf.

11.7. Plot dalam Format HPGL

Perintah ini akan menghasilkan sebuah berkas HPGL. Dalam format ini, Anda dapat menentukan:

  • Ukuran halaman.

  • Pangkal halaman (origin).

  • Lebar pena (dalam mm).

Berikut tampilan kotak dialog pengaturan plotter:

eeschema_plot_hpgl_png

Nama berkas yang dihasilkan akan menggunakan nama lembar kerja dengan ekstensi .plt.

11.7.1. Pemilihan Ukuran Lembar Kerja

Umumnya, ukuran halaman akan menyesuaikan ukuran lembar kerja. Pada kasus ini, akan digunakan ukuran lembar kerja yang dipilih pada pengaturan blok judul, dan skala yang dipilih adalah 1. Jika dipilih ukuran lembar kerja yang lain (A4 dengan A0, atau A dengan E), maka skala akan diatur secara otomatis untuk mengisi halaman.

11.7.2. Pengaturan Offset

Untuk semua ukuran standar, Anda dapat mengatur offset untuk memposisikan gambar seakurat mungkin di posisi tengah. Karena mesin plotter memiliki titik pangkal (origin) di tengah atau di sudut kiri bawah lembar kerja, kita perlu mengatur offset agar hasil plot sesuai keinginan kita.

Secara umum:

  • Untuk mesin plotter yang memiliki titik pangkal di tengah lembar kerja, maka offset harus bernilai negatif dan diatur setengah dari ukuran lembar kerja.

  • Untuk mesin plotter yang memiliki titik pangkal di sudut kiri bawah lembar kerja, maka offset harus bernilai 0.

Untuk mengatur offset:

  • Pilih ukuran lembar kerja.

  • Atur offset X dan offset Y.

  • Klik untuk menerapkan pengaturan.

This command, available via the icon Print icon, allows you to visualize and generate design files for the standard printer.

print_dialog_png

Opsi "'Print sheet reference and title block'" akan mengaktifkan atau menonaktifkan referensi lembar kerja dan blok judul.

Opsi "'Print in black and white'" akan mengatur hasil cetak dengan warna monokrom. Opsi ini diperlukan jika Anda menggunakan mesin cetak laser hitam putih, karena warna selain itu akan dicetak secara buram atau abu-abu, sehingga terkadang sulit dibaca.

12. Editor Pustaka Simbol

12.1. Informasi Umum

A symbol is a schematic element which contains a graphical representation, electrical connections, and fields defining the symbol. Symbols used in a schematic are stored in symbol libraries. KiCad provides a symbol library editing tool that allows you to create libraries, add, delete or transfer symbols between libraries, export symbols to files, and import symbols from files. The library editing tool provides a simple way to manage symbol library files.

12.2. Tentang Pustaka Simbol

Suatu pustaka simbol memiliki satu atau lebih simbol. Secara umum, simbol dikelompokkan berdasarkan fungsi, jenis, dan/atau manufaktur.

Sebuah simbol terdiri dari:

  • Item-item grafis (garis, lingkaran, busur, teks, dsb) yang menyediakan definisi simbolis.

  • Pin-pin yang memiliki properti grafis (line, clock, inverted, low level active, dsb) dan properti elektrikal (input,output,bidirectional, dsb) yang digunakan oleh pengujian Electrical Rules Check (ERC).

  • Atribut-atribut seperti referensi, nilai, nama footprint yang terkait untuk desain PCB, dsb.

  • Alias yang digunakan untuk mengasosiasikan suatu simbol umum seperti 7400 beserta derivatifnya misalnya 74LS00, 74HC00, dan 7437. Keseluruhan alias tersebut berbagi pustaka simbol yang sama.

Desain simbol yang baik memerlukan hal-hal sebagai berikut:

  • Menentukan apakah simbol perlu dibuat dalam bentuk lebih dari satu bagian.

  • Menentukan apakah simbol memiliki gaya bentuk alternatif yang disebut representasi De Morgan.

  • Membuat desain representasi simbolis menggunakan garis, persegi, lingkaran, poligon, dan teks.

  • Menambahkan pin dengan mendefinisikan secara teliti setiap elemen grafis pin, nama, penomoran, dan properti elektrikal (input, output, tri-state, power port, dsb).

  • Menambahkan alias jika simbol lain memiliki desain dan susunan pin yang sama, atau menghapus salah satu jika simbol yang diperlukan telah tersedia dari simbol yang lain.

  • Menambahkan atribut opsional seperti nama footprint yang digunakan oleh perangkat lunak desain PCB, dan/atau menentukan bagian-bagian yang perlu ditampilkan.

  • Mendokumentasikan simbol dengan menambahkan deskripsi dan tautan ke lembar data, dsb.

  • Menyimpan ke dalam pustaka yang diinginkan.

12.3. Tentang Editor Pustaka Simbol

Tampilan jendela utama editor pustaka simbol ditunjukkan pada gambar di bawah ini. Editor ini terdiri dari tiga bilah alat yang digunakan untuk mengakses secara cepat fitur-fitur umum, dan satu area untuk melihat/mengedit simbol. Tidak semua perintah tersedia pada bilah alat, namun dapat diakses melalui menu.

libedit_main_window_png

12.3.1. Bilah Alat Utama

Bilah alat utama terletak di bagian atas jendela utama seperti ditunjukkan pada gambar di bawah. Bilah alat utama terdiri dari peralatan manajemen pustaka, perintah batalkan/ulangi (undo/redo), perintah perbesar/perkecil tampilan (zoom), dan dialog properti simbol.

images/toolbar_libedit.png

New symbol icon

Create a new symbol.

Save icon

Save the currently selected library. The button will be disabled if no library is currently selected or no changes to the currently selected library have been made.

Undo icon

Undo last edit.

Redo icon

Redo last undo.

Refresh icon

Refresh display.

Zoom in icon

Zoom in.

Zoom out icon

Zoom out.

Zoom to fit page icon

Zoom to fit symbol in display.

Zoom to selection icon

Zoom to fit selection.

Rotate counterclockwise icon

Rotate counter-clockwise.

Rotate clockwise icon

Rotate clockwise.

Mirror horizontally icon

Mirror horizontally.

Mirror vertically icon

Mirror vertically.

Symbol properties icon

Edit the current symbol properties.

Pin table icon

Edit the current symbol properties.

Datasheet icon

Show the associated documentation. The button will be disabled if no documentation is defined for the current symbol.

ERC icon

Test the current symbol for design errors.

Normal body style icon

Select the normal body style. The button is disabled if the current symbol does not have an alternate body style.

Alternate body style icon

Select the alternate body style. The button is disabled if the current symbol does not have an alternate body style.

Unit dropdown

Select the unit to display. The drop down control will be disabled if the current symbol is not derived from multiple units.

Synchronized pin edit mode icon

Pin editing: independent editing for pin shape and position for symbols with multiple units and alternate symbols.

12.3.2. Bilah Alat Elemen

Bilah alat vertikal yang berada di sisi kanan jendela utama berguna untuk meletakkan semua elemen yang diperlukan untuk mendesain sebuah simbol. Tabel di bawah ini menjelaskan setiap tombol pada bilah alat.

Cursor icon

Select tool. Right-clicking with the select tool opens the context menu for the object under the cursor. Left-clicking with the select tool displays the attributes of the object under the cursor in the message panel at the bottom of the main window. Double-left-clicking with the select tool will open the properties dialog for the object under the cursor.

Pin icon

Pin tool. Left-click to add a new pin.

Text icon

Graphical text tool. Left-click to add a new graphical text item.

Add rectangle icon

Rectangle tool. Left-click to begin drawing the first corner of a graphical rectangle. Left-click again to place the opposite corner of the rectangle.

Add circle icon

Circle tool. Left-click to begin drawing a new graphical circle from the center. Left-click again to define the radius of the circle.

Add arc icon

Arc tool. Left-click to begin drawing a new graphical arc item from the center. Left-click again to define the first arc end point. Left-click again to define the second arc end point.

Add line icon

Connected line tool. Left-click to begin drawing a new graphical line item in the current symbol. Left-click for each additional connected line. Double-left-click to complete the line.

Anchor icon

Anchor tool. Left-click to set the anchor position of the symbol.

Delete icon

Delete tool. Left-click to delete an object from the current symbol.

12.3.3. Bilah Alat Opsi

Bilah alat vertikal yang berada di sisi kiri jendela utama berguna untuk mengatur opsi-opsi gambar yang Anda buat. Tabel di bawah ini menjelaskan setiap tombol pada bilah alat.

Grid icon

Toggle grid visibility on and off.

Inch unit icon

Set units to inches.

Millimeter unit icon

Set units to mils (0.001 inch).

Millimeter unit icon

Set units to millimeters.

Cursor shape icon

Toggle full screen cursor on and off.

Show pintype icon

Toggle display of pin electrical types.

Symbol tree icon

Toggle display of libraries and symbols.

12.4. Pemilihan dan Pemeliharaan Pustaka

The selection of the current library is possible via the Symbol tree icon which shows you all available libraries and allows you to select one. When a symbol is loaded or saved, it will be put in this library. The library name of symbol is the contents of its value field.

12.4.1. Memilih dan Menyimpan Simbol

Pemilihan Simbol

Clicking the Symbol tree icon icon on the left tool bar toggles the treeview of libraries and symbols. Clicking on a symbol opens that symbol.

Note
Some symbols are derived from other symbols. Derived symbol names are displayed in italics in the treeview. If a derived symbol is opened, its symbol graphics will not be editable. Its symbol fields will be editable as normal. To edit the graphics of a base symbol and all of its derived symbols, open the base symbol.
Menyimpan Simbol

After modification, a symbol can be saved in the current library or a different library.

To save the modified symbol in the current library, click the Save icon icon. The modifications will be written to the existing symbol.

To save the symbol changes to a new symbol, click FileSave As…​. The symbol can be saved in the current library or a different library. A new name can be set for the symbol.

To create a new file containing only the current symbol, click FileExportSymbol…​. This file will be a standard library file which will contain only one symbol.

12.5. Membuat Simbol Pustaka

12.5.1. Membuat Simbol Baru

A new symbol can be created by clicking the New symbol icon. You will be asked for a symbol name (this name is used as default value for the value field in the schematic editor), the reference designator (U, IC, R…​), the number of units per package (for example a 7400 is made of 4 units per package) and if an alternate body style (sometimes referred to as DeMorgan) is desired. If the reference designator field is left empty, it will default to "U". These properties can be changed later, but it is preferable to set them correctly at the creation of the symbol.

eeschema_symbol_properties_png

Simbol yang baru akan dibuat menggunakan properti di atas, dan akan muncul pada layar editor seperti gambar di bawah ini.

eeschema_libedit_new_png

12.5.2. Membuat Simbol dari Simbol yang Lain

Terkadang, simbol yang ingin Anda buat berbentuk mirip dengan simbol yang sudah ada di pustaka. Anda dapat memuat dan memodifikasi simbol yang sudah ada dengan mudah.

  • Muat simbol yang akan digunakan sebagai titik mulai.

  • Save a new copy of the symbol using FileSave As…​.

  • Edit simbol baru sesuai keinginan Anda.

  • Save the modified symbol.

12.5.3. Properti Simbol

Symbol properties should be carefully set during the symbol creation or alternatively they are inherited from the copied symbol. To change the symbol properties, click on the Symbol properties icon to show the dialog below.

eeschema_properties_for_symbol_png

Sangat penting untuk mengisi jumlah bagian per paket dan representasi simbolis alternatif secara benar, jika diaktifkan, karena saat pin diedit atau dibuat, pin-pin yang terkait pada setiap bagian akan terkena efeknya. Jika Anda mengubah jumlah bagian per paket setelah membuat dan mengedit pin, maka akan ada pekerjaan tambahan untuk menambahkan pin-pin bagian dan simbol yang baru. Meskipun demikian, kita bisa mengubah nilai properti tersebut kapanpun.

Opsi "'Show pin number'" dan "'Show pin name'" akan menampilkan atau menyembunyikan teks nomor pin dan nama pin. Teks ini akan tampak jika opsi yang sesuai dicentang. Opsi "'Place pin names inside'" akan menentukan posisi nama pin relatif terhadap badan pin. Teks ini akan ditampilkan di dalam garis bentuk simbol jika opsi ini dicentang. Dalam kasus ini, properti "'Pin Name Position Offset'" akan menentukan pergeseran teks dari badan luar pin. Anda bisa menggunakan nilai dari 30 ke 40 (dalam 1/1000 inci).

Contoh di bawah ini menampilkan sebuah simbol dengan opsi "'Place pin name inside'" dicentang. Perhatikan posisi dari nama dan nomor pin.

eeschema_uncheck_pin_name_inside_png

12.5.4. Simbol dengan Representasi Simbolis Alternatif

If the symbol has more than one symbolic repersentation, you will have to select one representation to edit them. To edit the normal representation, click the Normal representation icon.

To edit the alternate representation, click on the Alternate representation icon. Use the images/toolbar_libedit_part.png shown below to select the unit you wish to edit.

eeschema_libedit_select_unit_png

12.6. Elemen Grafis

Elemen grafis hanya digunakan untuk menciptakan representasi simbol dan tidak memiliki informasi koneksi elektrikal. Desain elemen grafis bisa dilakukan dengan menggunakan peralatan berikut:

  • Garis dan poligon, didefinisikan oleh titik awal dan titik akhir.

  • Persegi, didefinisikan oleh dua sudut diagonal.

  • Lingkaran, didefinisikan oleh titik tengah dan radius.

  • Busur, didefinisikan oleh titik mulai dan titik akhir busur dan titik tengahnya. Busur bisa memiliki sudut 0° hingga 180°.

Bilah alat vertikal di sebelah kanan jendela utama berguna untuk meletakkan semua elemen grafis yang diperlukan untuk mendesain tampilan sebuah simbol.

12.6.1. Keanggotaan Elemen Grafis

Setiap elemen grafis (garis, busur, lingkaran, dsb) dapat didefinisikan sebagai bentuk umum untuk keseluruhan bagian dan/atau gaya bentuk atau spesifik untuk bagian dan/atau gaya bentuk tertentu. Opsi-opsi elemen dapat diakses dengan klik-kanan pada elemen untuk menampilkan menu konteks elemen yang dipilih. Gambar di bawah menampilkan menu konteks untuk elemen garis.

eeschema_libedit_context_menu_png

Anda juga bisa melakukan klik-ganda pada sebuah elemen untuk mengubah propertinya. Gambar di bawah menampilkan dialog properti untuk elemen poligon.

eeschema_libedit_polyline_properties_png

Properti dari suatu elemen grafis antara lain:

  • Lebar garis, mendefinisikan lebar dari garis elemen pada gambar yang sedang dikerjakan.

  • Pengaturan "'Common to all units in symbol'" menentukan apakah elemen grafis digambar untuk setiap bagian untuk simbol yang terdiri dari beberapa bagian per paket, ataukah elemen grafis hanya digambar untuk satu bagian saja.

  • Pengaturan "'Common by all body styles (DeMorgan)'" menentukan apakah elemen grafis digambar untuk setiap representasi simbolis pada simbol dengan gaya bentuk alternatif, ataukah elemen grafis hanya digambar untuk gaya bentuk saat ini saja.

  • Pengaturan "'Fill Style'" menentukan apakah simbol yang didefinisikan oleh elemen grafis akan digambar berupa garis saja tanpa diwarnai, ataukah diisi menggunakan warna latar depan atau latar belakang.

12.6.2. Elemen Teks Grafis

The Text icon allows for the creation of graphical text. Graphical text is always readable, even when the symbol is mirrored. Please note that graphical text items are not fields.

12.7. Simbol dengan Beberapa Bagian dan Gaya Bentuk Alternatif

Simbol bisa memiliki dua representasi simbolis (simbol standar dan simbol alternatif yang biasa disebut "DeMorgan") dan/atau memiliki lebih dari satu bagian per paket (misalnya gerbang logika). Beberapa simbol bisa memiliki lebih dari satu bagian per paket, dan masing-masing bagian memiliki konfigurasi pin dan simbol yang berbeda.

Sebagai contoh, sebuah relay dengan dua saklar bisa didesain menjadi sebuah simbol dengan tiga bagian yang berbeda: satu buah koil, saklar 1, dan saklar 2. Mendesain sebuah simbol dengan beberapa bagian per paket dan/atau gaya bentuk alternatif sangatlah fleksibel. Suatu pin atau item simbol bentuk bisa bersifat umum untuk semua bagian atau spesifik untuk satu bagian tertentu, juga bisa bersifat umum untuk kedua jenis representasi simbolis maupun spesifik untuk salah satu representasi simbolis.

Secara default, pin bersifat spesifik untuk setiap representasi simbolis dari tiap bagian, karena nomor pin adalah spesifik ke satu bagian, dan bentuknya bergantung kepada representasi simbolis. Ketika pin bersifat umum untuk setiap bagian atau setiap representasi simbolis, Anda hanya perlu membuatnya sekali saja untuk keseluruhan unit dan keseluruhan representasi simbolis (hal ini biasanya digunakan untuk pin power). Hal ini juga berlaku untuk bentuk tampilan grafis dan teks, yang bisa bersifat umum untuk setiap bagian (namun biasanya spesifik untuk setiap representasi simbolis).

12.7.1. Contoh Simbol dengan Beberapa Bagian dengan Simbol Berbeda:

Berikut adalah contoh sebuah relay yang memiliki tiga bagian per paket, yaitu saklar 1, saklar 2, dan koil:

Opsi: pin-pin tidak terkait. Kita bisa menambahkan atau mengedit pin untuk tiap bagian tanpa ada pengaruh ke pin di bagian yang lain.

eeschema_libedit_pins_per_part_png

Opsi "'All units are not interchangeable'" harus dicentang.

eeschema_libedit_not_interchangeable_png

Bagian 1

eeschema_libedit_unit1_png

Bagian 2

eeschema_libedit_unit2_png

Bagian 3

eeschema_libedit_unit3_png

Bagian ini tidak memiliki tata letak pin dan simbol yang sama, maka tidak dapat dipertukarkan dengan bagian 1 dan 2.

Elemen Simbolis Grafis

Gambar di bawah ini menunjukkan properti untuk sebuah elemen bentuk grafis. Dari contoh relay di atas, ketiga bagian memiliki representasi simbolis yang berbeda. Maka, setiap bagian dibuat secara terpisah dan pada tiap elemen bentuk grafis, opsi "'Common to all units in symbol'" harus dinonaktifkan.

eeschema_libedit_disable_common_png

12.8. Membuat dan Mengedit Pin

You can click on the Pin icon icon to create and insert a pin. The editing of all pin properties is done by double-clicking on the pin or right-clicking on the pin to open the pin context menu. Pins must be created carefully, because any error will have consequences on the PCB design. Any pin already placed can be edited, deleted, and/or moved.

12.8.1. Tentang Pin

Sebuah pin didefinisikan oleh representasi grafis, nama, dan "nomor". Penomoran pin didefinisikan oleh satu set 4 huruf dan/atau angka. Supaya dapat diuji oleh alat Electrical Rules Check (ERC), tipe elektrikal dari pin harus didefinisikan secara benar (input, output, tri-state…​). JIka tipe ini tidak didefinisikan secara benar, maka hasil pengujian ERC akan menjadi tidak akurat.

Catatan penting:

  • Jangan menggunakan tanda spasi pada nama dan nomor pin.

  • To define a pin name with an inverted signal (overline) use the ~ (tilde) character followed by the text to invert in braces. For example ~{FO}O would display FO O.

  • JIka nama pin dikurangi menjadi satu simbol saja, maka pin akan dianggap tidak memiliki nama.

  • Pin names starting with # are reserved for power port symbols.

  • Nomor pin terdiri dari 1 hingga 4 huruf dan/atau angka. Contoh nomor yang valid adalah 1,2,…​9999. A1, B3, Anod, Gnd, Wire, dsb juga dianggap valid.

  • Tidak boleh ada nomor pin yang sama pada satu simbol.

12.8.2. Properti Pin

eeschema_libedit_pin_properties_png

Kotak dialog properti pin digunakan untuk mengedit karakteristik dari sebuah pin. Kotak dialog ini akan muncul secara otomatis ketika Anda membuat sebuah pin atau melakukan klik-ganda pada pin yang sudah ada. Kotak dialog ini dapat digunakan untuk mengubah:

  • Nama dan ukuran teksnya.

  • Nomor dan ukuran teksnya.

  • Panjang.

  • Tipe elektrikal dan grafis.

  • Keanggotaan pada bagian dan representasi alternatif.

  • Tampilan.

12.8.3. Gaya Grafis Pin

Gambar di bawah ini menampilkan beberapa gaya grafis suatu pin. Pilihan gaya grafis tidak akan mempengaruhi tipe elektrikal suatu pin.

eeschema_libedit_pin_properties_style_png

12.8.4. Tipe Elektrikal Pin

Penting untuk memilih tipe elektrikal yang benar untuk peralatan ERC. Tipe elektrikal yang bisa dipilih antara lain:

  • 'Bidirectional', mengindikasikan pin-pin dua-arah yang dapat digunakan sebagai masukan dan keluaran (misalnya bus data mikroprosesor).

  • 'Tri-state', digunakan untuk keluaran dengan tiga kondisi.

  • 'Passive', digunakan untuk pin simbol pasif, resistor, konektor, dsb.

  • 'Unspecified', dapat digunakan jika tidak diperlukan pengujian ERC.

  • 'Power input', digunakan untuk pin power simbol. Pin power akan terhubung secara otomatis ke pin power yang lain dengan nama yang sama.

  • 'Power output', digunakan untuk keluaran regulator.

  • Tipe 'Open emitter' dan 'Open collector' dapat digunakan untuk keluaran logika.

  • 'Not connected', digunakan ketika sebuah simbol memiliki pin yang tidak memiliki koneksi internal.

12.8.5. Properti Global Pin

Anda bisa mengubah panjang atau ukuran teks nama dan/atau nomor semua pin dengan menggunakan perintah 'Global' pada menu konteks pin. Klik pada parameter yang ingin diubah, dan ketik nilai yang baru, yang akan diterapkan ke semua pin simbol yang sedang dibuka.

eeschema_libedit_pin_context_menu_png

12.8.6. Mendefinisikan Pin untuk Banyak Bagian dan Representasi Simbolis Alternatif

Simbol yang terdiri dari beberapa bagian dan/atau representasi grafis akan menjadi problematis ketika kita membuat dan mengedit pin. Kebanyakan pin bersifat spesifik untuk setiap bagian (karena nomor pin bersifat spesifik untuk setiap bagian) dan untuk setiap representasi simbolis (karena bentuk dan posisinya spesifik untuk setiap representasi simbolis). Pembuatan dan pengeditan pin bisa menjadi problematis untuk simbol dengan beberapa bagian per paket dan representasi simbolis alternatif. Editor pustaka simbol bisa melakukan pembuatan banyak pin secara simultan. Secara default, perubahan yang dilakukan pada suatu pin akan diterapkan untuk keseluruhan bagian untuk simbol dengan beberapa bagian dan keseluruhan representasi untuk simbol dengan representasi simbolis alternatif.

The only exception to this is the pin’s graphical type and name. This dependency was established to allow for easier pin creation and editing in most of the cases. This dependency can be disabled by toggling the Synchronized pin edit mode icon on the main tool bar. This will allow you to create pins for each unit and representation completely independently.

A symbol can have two symbolic representations (representation known as "De Morgan") and can be made up of more than one unit as in the case of symbols with logic gates. For certain symbols, you may want several different graphic elements and pins. Like the relay sample shown in the previous section, a relay can be represented by three distinct units: a coil, switch contact 1, and switch contact 2.

Manajemen simbol dengan beberapa bagian dan simbol dengan representasi simbolis alternatif bersifat fleksibel. Sebuah pin bisa bersifat umum atau spesifik untuk suatu bagian tertentu. Sebuah pin juga bisa bersifat umum untuk kedua representasi simbolis atau spesifik untuk salah satu representasi simbolis saja.

Secara default, pin bersifat spesifik untuk setiap representasi untuk setiap bagian, karena penomorannya berbeda untuk setiap bagian, dan desainnya berbeda untuk setiap representasi simbolis. Jika sebuah pin bersifat umum untuk semua bagian, pin tersebut hanya perlu digambar sekali saja, seperti pada kasus pin power.

An example is the output pin 7400 quad dual input NAND gate. Since there are four units and two symbolic representations, there are eight separate output pins defined in the symbol definition. When creating a new 7400 symbol, unit A of the normal symbolic representation will be shown in the library editor. To edit the pin style in alternate symbolic representation, it must first be enabled by clicking the Alternate representation icon button on the tool bar. To edit the pin number for each unit, select the appropriate unit using the images/toolbar_libedit_alias.png drop down control.

12.9. Atribut-atribut Simbol

Semua simbol pustaka didefinisikan oleh empat atribut default. Atribut penunjuk referensi, nilai, footprint, dan tautan berkas dokumentasi akan dibuat setiap kali sebuah simbol dibuat atau disalin. Atribut yang dibutuhkan hanya penunjuk referensi dan nilai. Untuk atribut yang sudah ada, Anda bisa menggunakan perintah menu konteks dengan klik-kanan pada pin. Simbol yang yang ada di pustaka umumnya didefinisikan dengan empat atribut default tersebut. Atribut tambahan seperti vendor, nomor part, harga dsb dapat ditambahkan ke simbol namun umumnya hal ini dilakukan di editor skematik sehingga atribut-atribut tambahan tersebut dapat diaplikasikan ke semua simbol pada skematik.

12.9.1. Mengedit Atribut Simbol

Untuk mengedit atribut simbol yang sudah ada, klik-kanan pada teks atribut untuk menampilkan menu konteks atribut seperti ditunjukkan pada gambar di bawah ini.

eeschema_libedit_field_context_menu_png

To edit undefined fields, add new fields, or delete optional fields Component properties icon on the main tool bar to open the field properties dialog shown below.

eeschema_libedit_field_properties_png

Atribut merupakan seksi teks yang berasosiasi dengan simbol. Hal ini berbeda dengan teks yang ada pada representasi grafis suatu simbol.

Catatan penting:

  • Modifying value fields effectively changes the name of the symbol. The symbol’s name in the library will change when the symbol is saved.

  • Kotak dialog editor atribut di atas harus digunakan untuk mengedit atribut yang masih kosong atau jika memiliki atribut yang tak-tampak.

  • Footprint didefinisikan sebagai footprint absolut menggunakan format LIBNAME:FPNAME di mana LIBNAME adalah nama dari pustaka footprint yang didefinisikan pada tabel pustaka footprint (lihat bagian "'Footprint Library Table'" pada dokumen "'Pcbnew Reference Manual'"), dan FPNAME adalah nama footprint di pustaka LIBNAME.

12.10. Simbol Power

Power symbols are created the same way as normal symbols. It may be useful to place them in a dedicated library such as power. Power symbols consist of a graphical symbol and a pin of the type "Power input" that is marked hidden.

Power port symbols are handled like any other symbol by the schematic capture software. Some precautions are essential. Below is an example of a power +5V symbol.

eeschema_libedit_power_symbol_png

Untuk membuat sebuah simbol power, lakukan langkah-langkah berikut:

  • Add a pin of type "Power input" named +5V (important because this name will establish connection to the net +5V), with "Visible" unchecked, a pin number of 1 (number of no importance), a length of 0, and a "Line" "Graphic Style".

  • Letakkan sebuah lingkaran kecil dan sebuah segmen dari pin untuk membuat lingkaran seperti gambar.

  • Titik jangkar simbol ini berada di pin.

  • Nilai simbol adalah +5V.

  • Referensi simbol adalah #+5V. Teks referensi tidak penting, kecuali bahwa karakter pertama harus dimulai dengan # untuk mengindikasikan bahwa simbol ini adalah simbol power. Sesuai kesepakatan, setiap simbol yang atribut referensinya dimulai dengan # tidak akan muncul di daftar simbol atau di Netlist dan referensi dideklarasikan sebagai tak-tampak.

Metode yang lebih mudah untuk membuat simbol port power baru adalah dengan menggunakan simbol lain sebagai model:

  • Muat simbol power yang sudah ada.

  • Edit nama pin dengan nama simbol power yang baru.

  • Edit atribut nilai ke nama yang sama dengan nama pin, jika Anda ingin menampilkan nilai port power.

  • Simpan simbol yang baru.

13. LibEdit - Simbol

13.1. Gambaran Umum

Sebuah simbol terdiri dari elemen-elemen berikut ini:

  • Representasi grafis (bentuk geometris, teks).

  • Pin.

  • Atribut atau teks yang digunakan oleh post processor: Netlist, daftar simbol.

Ada dua atribut yang akan diinisialisasi: referensi dan nilai. Nama desain terkait dengan simbol, dan nama footprint yang terkait, atribut yang lain adalah atribut bebas, atribut tersebut bisa dibiarkan kosong, dan bisa diisi pada saat pembuatan skematik.

Bagaimanapun, manajemen dokumentasi yang terkait dengan simbol akan memudahkan riset, penggunaan, dan pemeliharaan pustaka. Dokumentasi terdiri dari:

  • Sebaris komentar.

  • Sebaris kata kunci seperti TTL CMOS NAND2, dipisahkan oleh spasi.

  • Nama berkas terlampir (contohnya catatan aplikasi atau berkas PDF).

    Direktori default untuk berkas terlampir:

    kicad/share/library/doc

    Jika idak ditemukan:

    kicad/library/doc

    Di Linux:

    /usr/local/kicad/share/library/doc

    /usr/share/kicad/library/doc

    /usr/local/share/kicad/library/doc

Penggunaan kata kunci akan memudahkan kita dalam melakukan pencarian secara selektif untuk suatu simbol berdasarkan berbagai kriteria seleksi. Komentar dan kata kunci ditampilkan di berbagai menu, dan terutama ketika Anda memilih sebuah simbol dari pustaka.

Simbol juga memiliki sebuah titik jangkar. Rotasi atau pencerminan dilakukan relatif terhadap titik jangkar, dan pada saat peletakan, titik ini digunakan sebagai posisi referensi. Oleh karena itu, kita perlu memposisikan titik jangkar secara akurat.

Sebuah simbol bisa memiliki alias, yaitu suatu nama ekuivalen. Dengan demikian, Anda bisa banyak mengurangi jumlah simbol yang harus dibuat (sebagai contoh, 74LS00 bisa memiliki alias seperti 7400, 74HC00, 74HCT00…​).

Simbol didistribusikan dalam bentuk pustaka (diklasifikasikan berdasarkan topik, atau manufaktur) untuk memfasilitasi manajemen simbol.

13.2. Memposisikan Jangkar Simbol

Jangkar berada pada koordinat (0,0) dan ditampilkan sebagai sumbu berwarna biru pada layar Anda.

eeschema_libedit_anchor_png

The anchor can be repositioned by selecting the icon Anchor icon and clicking on the new desired anchor position. The drawing will be automatically re-centered on the new anchor point.

13.3. Alias Simbol

Alias adalah nama lain yang terkait dengan simbol yang sama pada pustaka. Simbol dengan susunan pin dan representasi yang sama dapat diwakili oleh hanya satu simbol, dengan beberapa alias (misalnya 7400 dengan alias 74LS00, 74HC00, 74LS37).

Dengan menggunakan alias, kita bisa membangun pustaka yang lengkap dengan cepat. Selain itu, karena pustaka menjadi lebih ringkas, maka akan lebih cepat dimuat oleh KiCad.

To modify the list of aliases, you have to select the main editing window via the icon Symbol properties icon and select the alias folder.

eeschema_libedit_alias_png

Anda dapat menambahkan atau menghapus alias. Alias saat ini tidak dapat dihapus karena sudah diedit.

Untuk menghapus semua alias, Anda harus memilih simbol utama. Simbol pertama dalam daftar alias di jendela pemilihan bilah alat utama.

13.4. Atribut-atribut Simbol

The field editor is called via the icon Symbol properties icon.

Ada empat atribut khusus (teks yang terlampir pada simbol), dan beberapa atribut pengguna yang dapat dikonfigurasi.

eeschema_libedit_field_properties_png

Atribut khusus:

  • Referensi (reference).

  • Nilai (value). Yaitu nama simbol di pustaka dan atribut nilai default di skematik.

  • Footprint. Yaitu nama footprint yang digunakan untuk pembuatan PCB. Atribut ini tidak begitu berguna jika kita menggunakan CvPcb untuk membuat daftar footprint, namun bersifat wajib jika kita tidak menggunakan CvPcb.

  • Lembar kerja (sheet). Ini adalah atribut cadangan, namun pada saat tulisan ini dibuat, atribut ini belum digunakan.

13.5. Dokumentasi Simbol

To edit documentation information, it is necessary to call the main editing window of the symbol via the icon Symbol properties icon and to select the document folder.

eeschema_libedit_description_png

Pastikan untuk memilih alias yang benar, atau simbol utama, karena dokumentasi inilah yang akan membedakan antar alias. Tombol 'Copy Doc' berguna untuk menyalin informasi dokumentasi dari simbol utama ke alias yang saat ini sedang diedit.

13.5.1. Kata Kunci Simbol

Kata kunci berguna bagi kita untuk melakukan pencarian secara selektif untuk suatu simbol berdasarkan kriteria pemilihan yang spesifik (fungsi, teknologi, dsb.).

The KiCad search tool is not case sensitive. The most current key words used in the libraries are

  • CMOS TTL untuk keluarga logika

  • AND2 NOR3 XOR2 INV…​ untuk gerbang (AND2 = 2 masukan gerbang AND, NOR3 = 3 masukan gerbang NOR).

  • JKFF DFF…​ untuk fli-flop JK atau D.

  • ADC, DAC, MUX…​

  • OpenCol for the gates with open collector output. Thus if in the schematic capture software, you search the symbol: by keywords NAND2 OpenCol KiCad will display the list of symbols having these 2 key words.

13.5.2. Dokumentasi Simbol (Doc)

Baris komentar (dan kata kunci) ditampilkan di berbagai menu, terutama ketika Anda memilih sebuah simbol pada daftar simbol di pustaka dan di menu ViewLib.

jika berkas Doc. ini tersedia, kita bisa mengaksesnya pada perangkat lunak pembuat skematik, melalui menu pop-up yang akan tampil jika kita melakukan klik-kanan pada simbol.

13.5.3. Berkas Dokumen Terkait (DocFileName)

Bagian ini adalah berkas terlampir yang tersedia (dokumentasi, skematik aplikasi), dalam bentuk berkas PDF, diagram skematik, dsb.

13.5.4. Penyaring Footprint untuk CvPcb

Anda bisa memasukkan sebuah daftar yang berisi footprint yang diperbolehkan untuk simbol. Daftar ini berfungsi sebagai penyaring yang akan digunakan oleh CvPcb untuk menampilkan hanya footprint yang diperbolehkan. Daftar yang kosong akan diabaikan.

eeschema_libedit_footprint_png

Karakter wild-card boleh digunakan.

Kode SO14* artinya CvPcb akan menampilkan semua footprint dengan nama yang dimulai dengan SO14.

Untuk resistor, R? akan menampilkan semua footprint dengan nama 2 huruf yang dimulai dengan huruf R.

Gambar di bawah ini menampilkan contoh penggunaan penyaring.

Menggunakan penyaring

eeschema_cvpcb_with_filtering_png

Tanpa penyaring

eeschema_cvpcb_without_filtering_png

13.6. Pustaka Simbol

13.6.1. Mengekspor atau Membuat Simbol

A symbol can be exported with FileExportSymbol…​.

13.6.2. Mengimpor Simbol

Importing allows you to import a symbol into the selected library. Symbols can be imported using FileImport Symbol…​.

14. Peramban Pustaka Simbol

14.1. Pengenalan

The Symbol Library Browser allows you to quickly examine the content of symbol libraries. The Symbol Library Viewer can be accessed by clicking Library viewer icon icon on the main toolbar, ViewSymbol Library Browser…​, or clicking Select With Browser in the "Choose Symbol" window.

eeschema_viewlib_choose_png

14.2. Viewlib - Tampilan Utama

eeschema_viewlib_select_library_png

Untuk memeriksa isi pustaka, pilih satu pustaka dari daftar pada panel sebelah kiri. Semua simbol pada pustaka yang dipilih akan ditampilkan pada panel kedua. Pilh nama simbol untuk melihat simbol tersebut.

eeschema_viewlib_select_component_png

14.3. Bilah Alat Atas pada Peramban Pustaka Simbol

Bilah alat atas pada Peramban Pustaka Simbol ditampilkan pada gambar di bawah.

images/toolbar_viewlib.png

The available commands are:

Symbol selection icon

Selection of the symbol which can be also selected in the displayed list.

Previous symbol icon

Display previous symbol.

Next symbol icon

Display next symbol.

refresh 24 zoom in 24 zoom out 24 zoom fit in page 24

Zoom tools.

morgan1 24 morgan2 24

Selection of the representation (normal or alternate) if an alternate representation exists.

images/toolbar_viewlib_part.png

Selection of the unit for symbols that contain multiple units.

icons/datasheet_png

If they exist, display the associated documents.

Add symbol to schematic icon

Close the browser and place the selected symbol in the schematic.

15. Membuat Netlist dan Berkas BOM Kustom

15.1. Berkas Netlist Antara

BOM files and netlist files can be converted from an Intermediate netlist file created by KiCad.

Berkas ini menggunakan sintaks XML dan disebut sebagai Netlist antara. Netlist antara berisi sejumlah besar data mengenai papan sirkuit Anda. Maka dari itu, berkas ini bisa digunakan pasca-pemrosesan untuk membuat BOM atau berkas laporan lainnya.

Tergantung dari keluarannya (BOM atau Netlist), sejumlah berkas turunan dari Netlist antara akan digunakan pasca-pemrosesan.

15.1.1. Contoh Skematik

Contoh Skematik

15.1.2. Contoh Berkas Netlist Antara

Netlist antara (menggunakan sintaks XML) yang terkait dengan sirkuit di atas ditunjukkan seperti di bawah ini.

<?xml version="1.0" encoding="utf-8"?>
<export version="D">
  <design>
    <source>F:\kicad_aux\netlist_test\netlist_test.sch</source>
    <date>29/08/2010 20:35:21</date>
    <tool>eeschema (2010-08-28 BZR 2458)-unstable</tool>
  </design>
  <components>
    <comp ref="P1">
      <value>CONN_4</value>
      <libsource lib="conn" part="CONN_4"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>4C6E2141</tstamp>
    </comp>
    <comp ref="U2">
      <value>74LS74</value>
      <libsource lib="74xx" part="74LS74"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>4C6E20BA</tstamp>
    </comp>
    <comp ref="U1">
      <value>74LS04</value>
      <libsource lib="74xx" part="74LS04"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>4C6E20A6</tstamp>
    </comp>
    <comp ref="C1">
      <value>CP</value>
      <libsource lib="device" part="CP"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>4C6E2094</tstamp>
    </comp>
    <comp ref="R1">
      <value>R</value>
      <libsource lib="device" part="R"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>4C6E208A</tstamp>
    </comp>
  </components>
  <libparts>
    <libpart lib="device" part="C">
      <description>Condensateur non polarise</description>
      <footprints>
        <fp>SM*</fp>
        <fp>C?</fp>
        <fp>C1-1</fp>
      </footprints>
      <fields>
        <field name="Reference">C</field>
        <field name="Value">C</field>
      </fields>
      <pins>
        <pin num="1" name="~" type="passive"/>
        <pin num="2" name="~" type="passive"/>
      </pins>
    </libpart>
    <libpart lib="device" part="R">
      <description>Resistance</description>
      <footprints>
        <fp>R?</fp>
        <fp>SM0603</fp>
        <fp>SM0805</fp>
        <fp>R?-*</fp>
        <fp>SM1206</fp>
      </footprints>
      <fields>
        <field name="Reference">R</field>
        <field name="Value">R</field>
      </fields>
      <pins>
        <pin num="1" name="~" type="passive"/>
        <pin num="2" name="~" type="passive"/>
      </pins>
    </libpart>
    <libpart lib="conn" part="CONN_4">
      <description>Symbole general de connecteur</description>
      <fields>
        <field name="Reference">P</field>
        <field name="Value">CONN_4</field>
      </fields>
      <pins>
        <pin num="1" name="P1" type="passive"/>
        <pin num="2" name="P2" type="passive"/>
        <pin num="3" name="P3" type="passive"/>
        <pin num="4" name="P4" type="passive"/>
      </pins>
    </libpart>
    <libpart lib="74xx" part="74LS04">
      <description>Hex Inverseur</description>
      <fields>
        <field name="Reference">U</field>
        <field name="Value">74LS04</field>
      </fields>
      <pins>
        <pin num="1" name="~" type="input"/>
        <pin num="2" name="~" type="output"/>
        <pin num="3" name="~" type="input"/>
        <pin num="4" name="~" type="output"/>
        <pin num="5" name="~" type="input"/>
        <pin num="6" name="~" type="output"/>
        <pin num="7" name="GND" type="power_in"/>
        <pin num="8" name="~" type="output"/>
        <pin num="9" name="~" type="input"/>
        <pin num="10" name="~" type="output"/>
        <pin num="11" name="~" type="input"/>
        <pin num="12" name="~" type="output"/>
        <pin num="13" name="~" type="input"/>
        <pin num="14" name="VCC" type="power_in"/>
      </pins>
    </libpart>
    <libpart lib="74xx" part="74LS74">
      <description>Dual D FlipFlop, Set &amp; Reset</description>
      <docs>74xx/74hc_hct74.pdf</docs>
      <fields>
        <field name="Reference">U</field>
        <field name="Value">74LS74</field>
      </fields>
      <pins>
        <pin num="1" name="Cd" type="input"/>
        <pin num="2" name="D" type="input"/>
        <pin num="3" name="Cp" type="input"/>
        <pin num="4" name="Sd" type="input"/>
        <pin num="5" name="Q" type="output"/>
        <pin num="6" name="~Q" type="output"/>
        <pin num="7" name="GND" type="power_in"/>
        <pin num="8" name="~Q" type="output"/>
        <pin num="9" name="Q" type="output"/>
        <pin num="10" name="Sd" type="input"/>
        <pin num="11" name="Cp" type="input"/>
        <pin num="12" name="D" type="input"/>
        <pin num="13" name="Cd" type="input"/>
        <pin num="14" name="VCC" type="power_in"/>
      </pins>
    </libpart>
  </libparts>
  <libraries>
    <library logical="device">
      <uri>F:\kicad\share\library\device.lib</uri>
    </library>
    <library logical="conn">
      <uri>F:\kicad\share\library\conn.lib</uri>
    </library>
    <library logical="74xx">
      <uri>F:\kicad\share\library\74xx.lib</uri>
    </library>
  </libraries>
  <nets>
    <net code="1" name="GND">
      <node ref="U1" pin="7"/>
      <node ref="C1" pin="2"/>
      <node ref="U2" pin="7"/>
      <node ref="P1" pin="4"/>
    </net>
    <net code="2" name="VCC">
      <node ref="R1" pin="1"/>
      <node ref="U1" pin="14"/>
      <node ref="U2" pin="4"/>
      <node ref="U2" pin="1"/>
      <node ref="U2" pin="14"/>
      <node ref="P1" pin="1"/>
    </net>
    <net code="3" name="">
      <node ref="U2" pin="6"/>
    </net>
    <net code="4" name="">
      <node ref="U1" pin="2"/>
      <node ref="U2" pin="3"/>
    </net>
    <net code="5" name="/SIG_OUT">
      <node ref="P1" pin="2"/>
      <node ref="U2" pin="5"/>
      <node ref="U2" pin="2"/>
    </net>
    <net code="6" name="/CLOCK_IN">
      <node ref="R1" pin="2"/>
      <node ref="C1" pin="1"/>
      <node ref="U1" pin="1"/>
      <node ref="P1" pin="3"/>
    </net>
  </nets>
</export>

15.2. Konversi ke Format Netlist yang Baru

Dengan menerapkan sebuah penyaring pasca-pemrosesan ke berkas Netlist antara, Anda bisa membuat berkas-berkas Netlist asing, demikian pula berkas-berkas BOM. Karena proses konversi ini adalah transformasi dari teks ke teks, penyaring pasca-pemrosesan dapat dibuat menggunakan Python, XSLT, atau peralatan lainnya yang mampu mengolah masukan XML.

XSLT itself is an XML language very suitable for XML transformations. There is a free program called xsltproc that you can download and install. The xsltproc program can be used to read the Intermediate XML netlist input file, apply a style-sheet to transform the input, and save the results in an output file. Use of xsltproc requires a style-sheet file using XSLT conventions. The full conversion process is handled by KiCad, after it is configured once to run xsltproc in a specific way.

15.3. Pendekatan XSLT

Dokumen yang menjelaskan Transformasi XSL (XSLT) tersedia di alamat berikut:

15.3.1. Membuat Berkas Netlist Pads-Pcb

Format pads-pcb terdiri dari dua bagian.

  • Daftar footprint.

  • Daftar net : pengelompokan referensi pad berdasarkan net.

Berikut adalah sebuah stylesheet untuk mengkonversi berkas Netlist antara ke format Netlist pads-pcb:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!--XSL style sheet to Eeschema Generic Netlist Format to PADS netlist format
    Copyright (C) 2010, SoftPLC Corporation.
    GPL v2.

    How to use:
        https://lists.launchpad.net/kicad-developers/msg05157.html
-->

<!DOCTYPE xsl:stylesheet [
  <!ENTITY nl  "&#xd;&#xa;"> <!--new line CR, LF -->
]>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" omit-xml-declaration="yes" indent="no"/>

<xsl:template match="/export">
    <xsl:text>*PADS-PCB*&nl;*PART*&nl;</xsl:text>
    <xsl:apply-templates select="components/comp"/>
    <xsl:text>&nl;*NET*&nl;</xsl:text>
    <xsl:apply-templates select="nets/net"/>
    <xsl:text>*END*&nl;</xsl:text>
</xsl:template>

<!-- for each component -->
<xsl:template match="comp">
    <xsl:text> </xsl:text>
    <xsl:value-of select="@ref"/>
    <xsl:text> </xsl:text>
    <xsl:choose>
        <xsl:when test = "footprint != '' ">
            <xsl:apply-templates select="footprint"/>
        </xsl:when>
        <xsl:otherwise>
            <xsl:text>unknown</xsl:text>
        </xsl:otherwise>
    </xsl:choose>
    <xsl:text>&nl;</xsl:text>
</xsl:template>

<!-- for each net -->
<xsl:template match="net">
    <!-- nets are output only if there is more than one pin in net -->
    <xsl:if test="count(node)>1">
        <xsl:text>*SIGNAL* </xsl:text>
        <xsl:choose>
            <xsl:when test = "@name != '' ">
                <xsl:value-of select="@name"/>
            </xsl:when>
            <xsl:otherwise>
                <xsl:text>N-</xsl:text>
                <xsl:value-of select="@code"/>
            </xsl:otherwise>
        </xsl:choose>
        <xsl:text>&nl;</xsl:text>
        <xsl:apply-templates select="node"/>
    </xsl:if>
</xsl:template>

<!-- for each node -->
<xsl:template match="node">
    <xsl:text> </xsl:text>
    <xsl:value-of select="@ref"/>
    <xsl:text>.</xsl:text>
    <xsl:value-of select="@pin"/>
    <xsl:text>&nl;</xsl:text>
</xsl:template>

</xsl:stylesheet>

Dan berikut adalah berkas keluaran pads-pcb setelah menjalankan xsltproc:

*PADS-PCB*
*PART*
P1 unknown
U2 unknown
U1 unknown
C1 unknown
R1 unknown
*NET*
*SIGNAL* GND
U1.7
C1.2
U2.7
P1.4
*SIGNAL* VCC
R1.1
U1.14
U2.4
U2.1
U2.14
P1.1
*SIGNAL* N-4
U1.2
U2.3
*SIGNAL* /SIG_OUT
P1.2
U2.5
U2.2
*SIGNAL* /CLOCK_IN
R1.2
C1.1
U1.1
P1.3

*END*

Perintah untuk menjalankan konversi ini adalah:

kicad\\bin\\xsltproc.exe -o test.net kicad\\bin\\plugins\\netlist_form_pads-pcb.xsl test.tmp

15.3.2. Membuat Berkas Netlist Cadstar

Format Cadstar terdiri dari dua bagian.

  • Daftar footprint.

  • Daftar net : pengelompokan referensi pad berdasarkan net.

Berikut adalah berkas stylesheet untuk menjalankan konversi ini:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!--XSL style sheet to Eeschema Generic Netlist Format to CADSTAR netlist format
    Copyright (C) 2010, Jean-Pierre Charras.
    Copyright (C) 2010, SoftPLC Corporation.
    GPL v2.

<!DOCTYPE xsl:stylesheet [
  <!ENTITY nl  "&#xd;&#xa;"> <!--new line CR, LF -->
]>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" omit-xml-declaration="yes" indent="no"/>

<!-- Netlist header -->
<xsl:template match="/export">
    <xsl:text>.HEA&nl;</xsl:text>
    <xsl:apply-templates select="design/date"/>  <!-- Generate line .TIM <time> -->
    <xsl:apply-templates select="design/tool"/>  <!-- Generate line .APP <eeschema version> -->
    <xsl:apply-templates select="components/comp"/>  <!-- Generate list of components -->
    <xsl:text>&nl;&nl;</xsl:text>
    <xsl:apply-templates select="nets/net"/>          <!-- Generate list of nets and connections -->
    <xsl:text>&nl;.END&nl;</xsl:text>
</xsl:template>

 <!-- Generate line .TIM 20/08/2010 10:45:33 -->
<xsl:template match="tool">
    <xsl:text>.APP "</xsl:text>
    <xsl:apply-templates/>
    <xsl:text>"&nl;</xsl:text>
</xsl:template>

 <!-- Generate line .APP "eeschema (2010-08-17 BZR 2450)-unstable" -->
<xsl:template match="date">
    <xsl:text>.TIM </xsl:text>
    <xsl:apply-templates/>
    <xsl:text>&nl;</xsl:text>
</xsl:template>

<!-- for each component -->
<xsl:template match="comp">
    <xsl:text>.ADD_COM </xsl:text>
    <xsl:value-of select="@ref"/>
    <xsl:text> </xsl:text>
    <xsl:choose>
        <xsl:when test = "value != '' ">
            <xsl:text>"</xsl:text> <xsl:apply-templates select="value"/> <xsl:text>"</xsl:text>
        </xsl:when>
        <xsl:otherwise>
            <xsl:text>""</xsl:text>
        </xsl:otherwise>
    </xsl:choose>
    <xsl:text>&nl;</xsl:text>
</xsl:template>

<!-- for each net -->
<xsl:template match="net">
    <!-- nets are output only if there is more than one pin in net -->
    <xsl:if test="count(node)>1">
    <xsl:variable name="netname">
        <xsl:text>"</xsl:text>
        <xsl:choose>
            <xsl:when test = "@name != '' ">
                <xsl:value-of select="@name"/>
            </xsl:when>
            <xsl:otherwise>
                <xsl:text>N-</xsl:text>
                <xsl:value-of select="@code"/>
        </xsl:otherwise>
        </xsl:choose>
        <xsl:text>"&nl;</xsl:text>
        </xsl:variable>
        <xsl:apply-templates select="node" mode="first"/>
        <xsl:value-of select="$netname"/>
        <xsl:apply-templates select="node" mode="others"/>
    </xsl:if>
</xsl:template>

<!-- for each node -->
<xsl:template match="node" mode="first">
    <xsl:if test="position()=1">
       <xsl:text>.ADD_TER </xsl:text>
    <xsl:value-of select="@ref"/>
    <xsl:text>.</xsl:text>
    <xsl:value-of select="@pin"/>
    <xsl:text> </xsl:text>
    </xsl:if>
</xsl:template>

<xsl:template match="node" mode="others">
    <xsl:choose>
        <xsl:when test='position()=1'>
        </xsl:when>
        <xsl:when test='position()=2'>
           <xsl:text>.TER     </xsl:text>
        </xsl:when>
        <xsl:otherwise>
           <xsl:text>         </xsl:text>
        </xsl:otherwise>
    </xsl:choose>
    <xsl:if test="position()>1">
        <xsl:value-of select="@ref"/>
        <xsl:text>.</xsl:text>
        <xsl:value-of select="@pin"/>
        <xsl:text>&nl;</xsl:text>
    </xsl:if>
</xsl:template>

</xsl:stylesheet>

Berikut adalah berkas keluaran Cadstar.

.HEA
.TIM 21/08/2010 08:12:08
.APP "eeschema (2010-08-09 BZR 2439)-unstable"
.ADD_COM P1 "CONN_4"
.ADD_COM U2 "74LS74"
.ADD_COM U1 "74LS04"
.ADD_COM C1 "CP"
.ADD_COM R1 "R"


.ADD_TER U1.7 "GND"
.TER     C1.2
         U2.7
         P1.4
.ADD_TER R1.1 "VCC"
.TER     U1.14
         U2.4
         U2.1
         U2.14
         P1.1
.ADD_TER U1.2 "N-4"
.TER     U2.3
.ADD_TER P1.2 "/SIG_OUT"
.TER     U2.5
         U2.2
.ADD_TER R1.2 "/CLOCK_IN"
.TER     C1.1
         U1.1
         P1.3

.END

15.3.3. Membuat Berkas Netlist OrcadPCB2

Format ini hanya memiliki satu bagian saja, yaitu daftar footprint. Setiap footprint berisi daftar pad dengan referensi ke sebuah net.

Berikut adalah stylesheet untuk konversi ini:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!--XSL style sheet to Eeschema Generic Netlist Format to CADSTAR netlist format
    Copyright (C) 2010, SoftPLC Corporation.
    GPL v2.

    How to use:
        https://lists.launchpad.net/kicad-developers/msg05157.html
-->

<!DOCTYPE xsl:stylesheet [
  <!ENTITY nl  "&#xd;&#xa;"> <!--new line CR, LF -->
]>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" omit-xml-declaration="yes" indent="no"/>

<!--
    Netlist header
    Creates the entire netlist
    (can be seen as equivalent to main function in C
-->
<xsl:template match="/export">
    <xsl:text>( { Eeschema Netlist Version 1.1  </xsl:text>
    <!-- Generate line .TIM <time> -->
<xsl:apply-templates select="design/date"/>
<!-- Generate line eeschema version ... -->
<xsl:apply-templates select="design/tool"/>
<xsl:text>}&nl;</xsl:text>

<!-- Generate the list of components -->
<xsl:apply-templates select="components/comp"/>  <!-- Generate list of components -->

<!-- end of file -->
<xsl:text>)&nl;*&nl;</xsl:text>
</xsl:template>

<!--
    Generate id in header like "eeschema (2010-08-17 BZR 2450)-unstable"
-->
<xsl:template match="tool">
    <xsl:apply-templates/>
</xsl:template>

<!--
    Generate date in header like "20/08/2010 10:45:33"
-->
<xsl:template match="date">
    <xsl:apply-templates/>
    <xsl:text>&nl;</xsl:text>
</xsl:template>

<!--
    This template read each component
    (path = /export/components/comp)
    creates lines:
     ( 3EBF7DBD $noname U1 74LS125
      ... pin list ...
      )
    and calls "create_pin_list" template to build the pin list
-->
<xsl:template match="comp">
    <xsl:text> ( </xsl:text>
    <xsl:choose>
        <xsl:when test = "tstamp != '' ">
            <xsl:apply-templates select="tstamp"/>
        </xsl:when>
        <xsl:otherwise>
            <xsl:text>00000000</xsl:text>
        </xsl:otherwise>
    </xsl:choose>
    <xsl:text> </xsl:text>
    <xsl:choose>
        <xsl:when test = "footprint != '' ">
            <xsl:apply-templates select="footprint"/>
        </xsl:when>
        <xsl:otherwise>
            <xsl:text>$noname</xsl:text>
        </xsl:otherwise>
    </xsl:choose>
    <xsl:text> </xsl:text>
    <xsl:value-of select="@ref"/>
    <xsl:text> </xsl:text>
    <xsl:choose>
        <xsl:when test = "value != '' ">
            <xsl:apply-templates select="value"/>
        </xsl:when>
        <xsl:otherwise>
            <xsl:text>"~"</xsl:text>
        </xsl:otherwise>
    </xsl:choose>
    <xsl:text>&nl;</xsl:text>
    <xsl:call-template name="Search_pin_list" >
        <xsl:with-param name="cmplib_id" select="libsource/@part"/>
        <xsl:with-param name="cmp_ref" select="@ref"/>
    </xsl:call-template>
    <xsl:text> )&nl;</xsl:text>
</xsl:template>

<!--
    This template search for a given lib component description in list
    lib component descriptions are in /export/libparts,
    and each description start at ./libpart
    We search here for the list of pins of the given component
    This template has 2 parameters:
        "cmplib_id" (reference in libparts)
        "cmp_ref"   (schematic reference of the given component)
-->
<xsl:template name="Search_pin_list" >
    <xsl:param name="cmplib_id" select="0" />
    <xsl:param name="cmp_ref" select="0" />
        <xsl:for-each select="/export/libparts/libpart">
            <xsl:if test = "@part = $cmplib_id ">
                <xsl:apply-templates name="build_pin_list" select="pins/pin">
                    <xsl:with-param name="cmp_ref" select="$cmp_ref"/>
                </xsl:apply-templates>
            </xsl:if>
        </xsl:for-each>
</xsl:template>


<!--
    This template writes the pin list of a component
    from the pin list of the library description
    The pin list from library description is something like
          <pins>
            <pin num="1" type="passive"/>
            <pin num="2" type="passive"/>
          </pins>
    Output pin list is ( <pin num> <net name> )
    something like
            ( 1 VCC )
            ( 2 GND )
-->
<xsl:template name="build_pin_list" match="pin">
    <xsl:param name="cmp_ref" select="0" />

    <!-- write pin numner and separator -->
    <xsl:text>  ( </xsl:text>
    <xsl:value-of select="@num"/>
    <xsl:text> </xsl:text>

    <!-- search net name in nets section and write it: -->
    <xsl:variable name="pinNum" select="@num" />
    <xsl:for-each select="/export/nets/net">
        <!-- net name is output only if there is more than one pin in net
             else use "?" as net name, so count items in this net
        -->
        <xsl:variable name="pinCnt" select="count(node)" />
        <xsl:apply-templates name="Search_pin_netname" select="node">
            <xsl:with-param name="cmp_ref" select="$cmp_ref"/>
            <xsl:with-param name="pin_cnt_in_net" select="$pinCnt"/>
            <xsl:with-param name="pin_num"> <xsl:value-of select="$pinNum"/>
            </xsl:with-param>
        </xsl:apply-templates>
    </xsl:for-each>

    <!-- close line -->
    <xsl:text> )&nl;</xsl:text>
</xsl:template>

<!--
    This template writes the pin netname of a given pin of a given component
    from the nets list
    The nets list description is something like
      <nets>
        <net code="1" name="GND">
          <node ref="J1" pin="20"/>
              <node ref="C2" pin="2"/>
        </net>
        <net code="2" name="">
          <node ref="U2" pin="11"/>
        </net>
    </nets>
    This template has 2 parameters:
        "cmp_ref"   (schematic reference of the given component)
        "pin_num"   (pin number)
-->

<xsl:template name="Search_pin_netname" match="node">
    <xsl:param name="cmp_ref" select="0" />
    <xsl:param name="pin_num" select="0" />
    <xsl:param name="pin_cnt_in_net" select="0" />

    <xsl:if test = "@ref = $cmp_ref ">
        <xsl:if test = "@pin = $pin_num">
        <!-- net name is output only if there is more than one pin in net
             else use "?" as net name
        -->
            <xsl:if test = "$pin_cnt_in_net>1">
                <xsl:choose>
                    <!-- if a net has a name, use it,
                        else build a name from its net code
                    -->
                    <xsl:when test = "../@name != '' ">
                        <xsl:value-of select="../@name"/>
                    </xsl:when>
                    <xsl:otherwise>
                        <xsl:text>$N-0</xsl:text><xsl:value-of select="../@code"/>
                    </xsl:otherwise>
                </xsl:choose>
            </xsl:if>
            <xsl:if test = "$pin_cnt_in_net &lt;2">
                <xsl:text>?</xsl:text>
            </xsl:if>
        </xsl:if>
    </xsl:if>

</xsl:template>

</xsl:stylesheet>

Berikut adalah berkas keluaran OrcadPCB2.

( { Eeschema Netlist Version 1.1  29/08/2010 21:07:51
eeschema (2010-08-28 BZR 2458)-unstable}
 ( 4C6E2141 $noname P1 CONN_4
  (  1 VCC )
  (  2 /SIG_OUT )
  (  3 /CLOCK_IN )
  (  4 GND )
 )
 ( 4C6E20BA $noname U2 74LS74
  (  1 VCC )
  (  2 /SIG_OUT )
  (  3 N-04 )
  (  4 VCC )
  (  5 /SIG_OUT )
  (  6 ? )
  (  7 GND )
  (  14 VCC )
 )
 ( 4C6E20A6 $noname U1 74LS04
  (  1 /CLOCK_IN )
  (  2 N-04 )
  (  7 GND )
  (  14 VCC )
 )
 ( 4C6E2094 $noname C1 CP
  (  1 /CLOCK_IN )
  (  2 GND )
 )
 ( 4C6E208A $noname R1 R
  (  1 VCC )
  (  2 /CLOCK_IN )
 )
)
*

15.3.4. Netlist plugins interface

Intermediate Netlist converters can be automatically launched within the Schematic Editor.

Membuka Kotak Dialog Plugin

Kita bisa menambahkan sebuah tab antarmuka plugin Netlist yang baru dengan klik pada tombol 'Add Plugin'

eeschema_plugin_add_plugin_png

Berikut adalah bentuk data konfigurasi untuk tab PadsPcb:

eeschema_plugin_padspcb_png
Parameter Konfigurasi Plugin

The netlist plug-in configuration dialog requires the following information:

  • Judul: misalnya nama dari format Netlist.

  • Perintah untuk menjalankan konverter.

Setelah Anda menekan tombol Netlist, akan terjadi hal berikut ini:

  1. KiCad creates an intermediate netlist file *.xml, for instance test.xml.

  2. KiCad runs the plug-in by reading test.xml and creates test.net.

Membuat Berkas Netlist dengan Baris Perintah

Diasumsikan kita menggunakan program xsltproc.exe untuk menerapkan stylesheet ke berkas antara, maka xsltproc.exe dieksekusi dengan perintah berikut:

xsltproc.exe -o <nama berkas keluaran> <nama berkas style-sheet> <berkas XML yang akan dikonversi>

Berikut baris perintah yang digunakan KiCad di sistem operasi Windows:

f:/kicad/bin/xsltproc.exe -o "%O" f:/kicad/bin/plugins/netlist_form_pads-pcb.xsl "%I"

Di sistem operasi Linux, baris perintahnya adalah:

xsltproc -o "%O" /usr/local/kicad/bin/plugins/netlist_form_pads-pcb.xsl "%I"

Where netlist_form_pads-pcb.xsl is the style-sheet that you are applying. Do not forget the double quotes around the file names, this allows them to have spaces after the substitution by KiCad.

Baris perintah menerima parameter berikut untuk nama berkas:

Parameter yang didukung adalah:

  • %B ⇒ nama berkas dan path untuk berkas keluaran yang dipilih, tanpa path dan ekstensi.

  • %I ⇒ nama berkas lengkap dan path dari berkas masukan sementara (berkas Netlist antara).

  • %O ⇒ nama berkas lengkap dan path untuk berkas keluaran yang dipilih.

%I akan diganti dengan nama berkas antara yang sesungguhnya.

%O akan diganti dengan nama berkas keluaran yang sesungguhnya.

Format Baris Perintah: Contoh xsltproc

Format baris perintah untuk xsltproc adalah sebagai berikut:

<path ke xsltproc> xsltproc <parameter xsltproc>

Penggunaan di Windows:

f:/kicad/bin/xsltproc.exe -o "%O" f:/kicad/bin/plugins/netlist_form_pads-pcb.xsl "%I"

Penggunaan di Linux:

xsltproc -o "%O" /usr/local/kicad/bin/plugins/netlist_form_pads-pcb.xsl "%I"

Contoh di atas mengasumsikan xsltproc terinstal pada komputer Windows dan semua berkas berada di direktori kicad/bin.

15.3.5. Pembuatan Bill of Materials

Karena berkas Netlist antara berisi semua informasi mengenai komponen-komponen yang digunakan, maka kita bisa membuat BOM berdasarkan berkas tersebut. Berikut adalah tampilan jendela pengaturan plugin (di Linux) untuk membuat berkas Bill of Materials (BOM) kustom:

bom-netlist-tab_png

Path menuju berkas stylesheet bom2csv.xsl tergantung pada sistem yang kita gunakan. Stylesheet XSLT terbaik yang ada saat ini untuk pembuatan BOM adalah bom2csv.xsl. Anda bebas melakukan modifikasi sesuai kebutuhan, dan jika Anda merasa hasil modifikasi tersebut akan bermanfaat untuk orang lain, Anda bisa memasukkan hasil modifikasi tersebut sebagai bagian dari proyek KiCad.

15.4. Format Baris Perintah: Contoh Skrip Python

Format baris perintah untuk Python adalah sebagai berikut:

python <nama berkas skrip> <nama berkas masukan> <nama berkas keluaran>

Penggunaan di Windows:

python *.exe f:/kicad/python/my_python_script.py "%I" "%O"

Penggunaan di Linux:

python /usr/local/kicad/python/my_python_script.py "%I" "%O"

Dengan asumsi Python telah terinstal di komputer Anda.

15.5. Struktur Netlist Antara

Contoh berikut ini menunjukkan format berkas Netlist.

<?xml version="1.0" encoding="utf-8"?>
<export version="D">
  <design>
    <source>F:\kicad_aux\netlist_test\netlist_test.sch</source>
    <date>29/08/2010 21:07:51</date>
    <tool>eeschema (2010-08-28 BZR 2458)-unstable</tool>
  </design>
  <components>
    <comp ref="P1">
      <value>CONN_4</value>
      <libsource lib="conn" part="CONN_4"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>4C6E2141</tstamp>
    </comp>
    <comp ref="U2">
      <value>74LS74</value>
      <libsource lib="74xx" part="74LS74"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>4C6E20BA</tstamp>
    </comp>
    <comp ref="U1">
      <value>74LS04</value>
      <libsource lib="74xx" part="74LS04"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>4C6E20A6</tstamp>
    </comp>
    <comp ref="C1">
      <value>CP</value>
      <libsource lib="device" part="CP"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>4C6E2094</tstamp>
    <comp ref="R1">
      <value>R</value>
      <libsource lib="device" part="R"/>
      <sheetpath names="/" tstamps="/"/>
      <tstamp>4C6E208A</tstamp>
    </comp>
  </components>
  <libparts/>
  <libraries/>
  <nets>
    <net code="1" name="GND">
      <node ref="U1" pin="7"/>
      <node ref="C1" pin="2"/>
      <node ref="U2" pin="7"/>
      <node ref="P1" pin="4"/>
    </net>
    <net code="2" name="VCC">
      <node ref="R1" pin="1"/>
      <node ref="U1" pin="14"/>
      <node ref="U2" pin="4"/>
      <node ref="U2" pin="1"/>
      <node ref="U2" pin="14"/>
      <node ref="P1" pin="1"/>
    </net>
    <net code="3" name="">
      <node ref="U2" pin="6"/>
    </net>
    <net code="4" name="">
      <node ref="U1" pin="2"/>
      <node ref="U2" pin="3"/>
    </net>
    <net code="5" name="/SIG_OUT">
      <node ref="P1" pin="2"/>
      <node ref="U2" pin="5"/>
      <node ref="U2" pin="2"/>
    </net>
    <net code="6" name="/CLOCK_IN">
      <node ref="R1" pin="2"/>
      <node ref="C1" pin="1"/>
      <node ref="U1" pin="1"/>
      <node ref="P1" pin="3"/>
    </net>
  </nets>
</export>

15.5.1. Struktur Berkas Netlist Umum

Berkas Netlist antara terdiri dari lima bagian.

  • Bagian header.

  • Bagian komponen.

  • Bagian lib parts.

  • Bagian pustaka.

  • Bagian net.

Isi berkas ini memiliki pembatas <export>

<export version="D">
...
</export>

15.5.2. Bagian Header

Bagian header memiliki pembatas <design>

<design>
<source>F:\kicad_aux\netlist_test\netlist_test.sch</source>
<date>21/08/2010 08:12:08</date>
<tool>eeschema (2010-08-09 BZR 2439)-unstable</tool>
</design>

Bagian ini bisa dianggap sebagai bagian komentar.

15.5.3. Bagian Komponen

Bagian komponen memiliki pembatas <components>

<components>
<comp ref="P1">
<value>CONN_4</value>
<libsource lib="conn" part="CONN_4"/>
<sheetpath names="/" tstamps="/"/>
<tstamp>4C6E2141</tstamp>
</comp>
</components>

Bagian ini berisi daftar komponen yang ada pada skematik Anda. Setiap komponen dijelaskan seperti ini:

<comp ref="P1">
<value>CONN_4</value>
<libsource lib="conn" part="CONN_4"/>
<sheetpath names="/" tstamps="/"/>
<tstamp>4C6E2141</tstamp>
</comp>
libsource name of the lib where this component was found.

part

component name inside this library.

sheetpath

path of the sheet inside the hierarchy: identify the sheet within the full schematic hierarchy.

tstamps (time stamps)

time stamp of the schematic file.

tstamp (time stamp)

time stamp of the component.

Catatan Mengenai Tanda Waktu Komponen

Untuk mengidentifikasi sebuah komponen di dalam Netlist dan kemudian di papan sirkuit, digunakan referensi tanda waktu yang bersifat unik untuk setiap komponen. KiCad juga menyediakan cara lain untuk mengidentifikasi sebuah komponen dengan footprint yang terkait di papan sirkuit. Dengan demikian, bisa dilakukan anotasi ulang komponen-komponen pada proyek skematik, dan tautan antara komponen dan footprint akan tetap terjaga.

Tanda waktu menjadi pengidentifikasi yang bersifat unik untuk setiap komponen atau lembar kerja pada suatu proyek skematik. Namun di hirarki kompleks, satu lembar kerja yang sama bisa digunakan lebih dari satu kali, sehingga lembar kerja ini akan berisi komponen-komponen dengan tanda waktu yang sama.

Lembar kerja tersebut memiliki sebuah pengidentifikasi unik di hirarki kompleks: path lembar kerja. Maka, komponen (di dalam hirarki kompleks) memiliki pengidentifikasi unik berupa: path lembar kerja + tanda waktu.

15.5.4. Bagian Libparts

Bagian libparts memiliki pembatas <libparts>, dan isi dari bagian ini didefinisikan di pustaka skematik. Bagian ini berisi:

  • The allowed footprints names (names use wildcards) delimiter <fp>.

  • Pembatas <fields>, atribut-atribut yang didefinisikan di dalam pustaka.

  • Pembatas <pins>, daftar pin.

<libparts>
<libpart lib="device" part="CP">
  <description>Condensateur polarise</description>
  <footprints>
    <fp>CP*</fp>
    <fp>SM*</fp>
  </footprints>
  <fields>
    <field name="Reference">C</field>
    <field name="Valeur">CP</field>
  </fields>
  <pins>
    <pin num="1" name="1" type="passive"/>
    <pin num="2" name="2" type="passive"/>
  </pins>
</libpart>
</libparts>

Baris seperti <pin num="1" type="passive"/> juga menampilkan tipe pin elektrikal. Tipe pin elektrikal yang bisa digunakan antara lain:

Input

Pin masukan biasa

Output

Pin keluaran biasa

Bidirectional

Masukan atau keluaran

Tri-state

Bus masukan/keluaran

Passive

Komponen pasif biasa

Unspecified

Tipe elektrikal yang tidak diketahui

Power input

Masukan power suatu komponen

Power output

Keluaran power, seperti keluaran regulator

Open collector

Open collector yang biasanya ada di komparator analog

Open emitter

Open emitter yang terkadang ada di logika

Not connected

Harus dibiarkan terbuka di skematik

15.5.5. Bagian Pustaka

Bagian pustaka memiliki pembatas <libraries>. Bagian ini berisi daftar pustaka skematik yang digunakan pada proyek.

<libraries>
  <library logical="device">
    <uri>F:\kicad\share\library\device.lib</uri>
  </library>
  <library logical="conn">
    <uri>F:\kicad\share\library\conn.lib</uri>
  </library>
</libraries>

15.5.6. Bagian Net

Bagian net memiliki pembatas <nets>. Bagian ini berisi "konektivitas" skematik.

<nets>
  <net code="1" name="GND">
    <node ref="U1" pin="7"/>
    <node ref="C1" pin="2"/>
    <node ref="U2" pin="7"/>
    <node ref="P1" pin="4"/>
  </net>
  <net code="2" name="VCC">
    <node ref="R1" pin="1"/>
    <node ref="U1" pin="14"/>
    <node ref="U2" pin="4"/>
    <node ref="U2" pin="1"/>
    <node ref="U2" pin="14"/>
    <node ref="P1" pin="1"/>
  </net>
</nets>

Bagian ini menampilkan daftar semua net pada skematik.

Sebuah net bisa memiliki daftar seperti berikut ini.

<net code="1" name="GND">
  <node ref="U1" pin="7"/>
  <node ref="C1" pin="2"/>
  <node ref="U2" pin="7"/>
  <node ref="P1" pin="4"/>
</net>

net code

Pengidentifikasi internal untuk net ini

name

Nama net

node

Referensi pin yang terhubung ke net ini

15.6. Lebih Lanjut Tentang xsltproc

Silakan mengacu pada halaman: http://xmlsoft.org/XSLT/xsltproc.html

15.6.1. Pengenalan

xsltproc adalah sebuah alat baris perintah untuk menerapkan stylesheet XSLT ke dokumen XML. Alat ini dkembangkan sebagai bagian dari proyek GNOME, namun dapat digunakan secara independen di luar desktop GNOME.

xsltproc dijalankan melalui baris perintah dengan nama stylesheet yang akan digunakan diikuti dengan nama berkas yang mana stylesheet akan diterapkan. Alat ini akan menggunakan masukan standar jika nama berkas yang diberikan berupa -.

Jika tersedia sebuah stylesheet di dalam dokumen XML dengan 'Style-sheet Processing Instruction', kita tidak perlu lagi menyebutkan sebuah stylesheet pada baris perintah. xsltproc akan secara otomatis mendeteksi stylesheet yang tersedia dan menggunakannya. Secara default, keluaran dari perintah ini adalah ke stdout. Keluaran bisa disimpan ke sebuah berkas dengan menggunakan opsi -o.

15.6.2. Sinopsis

xsltproc [[-V] | [-v] | [-o *file* ] | [--timing] | [--repeat] |
[--debug] | [--novalid] | [--noout] | [--maxdepth *val* ] | [--html] |
[--param *name* *value* ] | [--stringparam *name* *value* ] | [--nonet] |
[--path *paths* ] | [--load-trace] | [--catalogs] | [--xinclude] |
[--profile] | [--dumpextensions] | [--nowrite] | [--nomkdir] |
[--writesubtree] | [--nodtdattr]] [ *stylesheet* ] [ *file1* ] [ *file2* ]
[ *....* ]

15.6.3. Opsi-opsi Baris Perintah

-V atau --version

Menampilkan versi libxml dan libxslt yang digunakan.

-v atau --verbose

Menampilkan setiap langkah yang diambil oleh xsltproc dalam memproses stylesheet dan dokumen.

-o atau --output file

Mengarahkan keluaran ke berkas dengan nama file. Untuk keluaran lebih dari satu, juga dikenal sebagai "'chunking'", -o direktori/ akan mengarahkan berkas keluaran ke direktori yang ditentukan. Direktori tersebut harus sudah ada sebelumnya.

--timing

Menampilkan waktu yang digunakan untuk menguraikan stylesheet, menguraikan dokumen, dan menerapkan stylesheet dan menyimpan hasilnya. Ditampilkan dalam satuan milidetik.

--repeat

Menjalankan transformasi sebanyak 20 kali. Digunakan untuk pengujian pewaktuan.

--debug

Menghasilkan sebuah pohon XML dari dokumen yang ditransformasikan, untuk keperluan debugging.

--novalid

Lewati memuat DTD dokumen.

--noout

Jangan mengeluarkan hasilnya.

--maxdepth value

Atur kedalaman maksimum dari tumpukan templat sebelum libxslt menyimpulkan bahwa ini adalah putaran tak terbatas. Nilai default adalah 500.

--html

Dokumen masukan berupa berkas HTML.

--param name value

Memberikan parameter nama name dan nilai value ke stylesheet. Anda bisa memberikan beberapa pasang nama/nilai hingga jumlah maksimum 32. Jika nilai yang diberikan berupa 'string' dan bukan 'node identifier', gunakan --stringparam.

--stringparam name value

Memberikan parameter berupa nama name dan nilai value di mana value adalah 'string' dan bukan 'node identifier'. (Catatan: 'string' harus utf-8.)

--nonet

Jangan menggunakan Internet untuk mengambil DTD, entitas atau dokumen.

--path paths

Menggunakan daftar (dipisahkan oleh spasi atau kolom) path sistem berkas untuk memuat DTD entitas atau dokumen.

--load-trace

Menampilkan ke stderr semua dokumen yang dimuat selama pemrosesan.

--catalogs

Gunakan katalog SGML yang disebutkan di SGML_CATALOG_FILES untuk menyelesaikan lokasi entitas eksternal. Secara default, xsltproc akan melihat katalog yang disebutkan di XML_CATALOG_FILES. Jika tidak disebutkan di situ, maka digunakan /etc/xml/catalog.

--xinclude

Memproses dokumen masukan menggunakan spesifikasi Xinclude. Lebih lanjut mengenai hal ini bisa ditemukan pada spesifikasi Xinclude: http://www.w3.org/TR/xinclude/

--profile --norman

Menghasilkan keluaran berupa informasi profiling yang menjelaskan jumlah waktu yang dihabiskan dalam setiap bagian stylesheet. Hal ini berguna untuk mengoptimasi performa stylesheet.

--dumpextensions

Mengeluarkan daftar semua ekstensi terdaftar ke stdout.

--nowrite

Jangan menulis ke berkas atau sumber apapun.

--nomkdir

Jangan membuat direktori.

--writesubtree path

Diperbolehkan menulis berkas hanya di dalam path.

--nodtdattr

Jangan menerapkan atribut default dari DTD dokumen.

15.6.4. Nilai Kembali Xsltproc

xsltproc akan mengembalikan sebuah nomor status yang akan berguna saat kita menjalankannya di dalam sebuah skrip.

0: normal

1: tidak ada argumen

2: terlalu banyak parameter

3: opsi tidak diketahui

4: gagal mengurai stylesheet

5: terdapat kesalahan pada stylesheet

6: terdapat kesalahan pada salah satu dokumen

7: metode xsl:output tidak didukung

8: parameter 'string' berisi tanda petik dan tanda petik ganda

9: kesalahan pemrosesan internal

10: pemrosesan terhenti oleh suatu pesan penghentian

13: tidak dapat menulis hasil ke berkas keluaran

15.6.5. Informasi Lebih Lanjut Tentang xsltproc

Halaman web libxml: http://www.xmlsoft.org/

Halaman XSLT W3C: http://www.w3.org/TR/xslt

16. Simulator

KiCad provides an embedded electrical circuit simulator using ngspice as the simulation engine.

Ketika bekerja dengan simulator, Anda akan membutuhkan pustaka resmi pspice. Pustaka ini memiliki simbol-simbol umum yang digunakan untuk simulasi seperti sumber tegangan/arus atau transistor dengan pin yang penomorannya sesuai dengan spesifikasi urutan node ngspice.

Disediakan pula beberapa proyek demo untuk menunjukkan kemampuan simulator. Anda bisa membukanya di direktori demos/simulation.

16.1. Menerapkan Model

Sebelum melakukan simulasi, kita harus menentukan model Spice untuk masing-masing komponen.

Setiap komponen hanya bisa mendapatkan satu model, meskipun komponen tersebut terdiri dari beberapa bagian. Dalam hal ini, model Spice diterapkan pada bagian yang pertama.

Komponen-komponen pasif dengan referensi yang cocok dengan suatu tipe divais dalam notasi Spice (R* untuk resistor, C* untuk kapasitor, L* untuk induktor) akan memiliki model yang diterapkan secara implisit dan menggunakan atribut nilai untuk menentukan propertinya.

Note
Ingat bahwa di Spice, penggunaan 'M' berarti milli dan 'Meg' berarti mega. Jika Anda lebih suka menggunakan 'M' untuk mengindikasikan mega, Anda bisa melakukan pengaturan di kotak dialog pengaturan simulasi.

Informasi model Spice disimpan sebagai teks pada atribut-atribut simbol. Anda bisa mendefinisikannya di Symbol Editor atau di Schematics Editor. Buka kotak dialog Symbol Properties dan klik pada tombol Edit Spice Model untuk membuka dialog Spice Model Editor.

Kotak dialog 'Spice Model Editor' mempunyai tiga tab sesuai dengan tipe modelnya. Ada dua opsi umum untuk semua tipe model:

Disable symbol for simulation

When checked the component is excluded from simulation.

Alternate node sequence

Allows one to override symbol pin to model node mapping. To define a different mapping, specify pin numbers in order expected by the model.

'Example:'

* connections:
* 1: non-inverting input
* 2: inverting input
* 3: positive power supply
* 4: negative power supply
* 5: output
.subckt tl071 1 2 3 4 5

Generic operational amplifier symbol
  To match the symbol pins to the Spice model nodes shown above, one needs
to use an alternate node sequence option with value:
"1{nbsp}3{nbsp}5{nbsp}2{nbsp}4".  It is a list of pin numbers corresponding
to the Spice model nodes order.

16.1.1. Tab Passive

Di tab Passive, kita bisa menerapkan sebuah model divais pasif (resistor, kapasitor, atau induktor) ke suatu komponen. Namun hal ini jarang digunakan, karena umumnya komponen pasif telah memiliki model yang diterapkan secara implisit, kecuali jika referensi komponen tidak cocok dengan tipe divais aktual.

Note
Model divais pasif yang ditetapkan secara eksplisit memiliki prioritas lebih tinggi daripada model divais yang ditetapkan secara implisit. Artinya, setelah model divais pasif telah ditetapkan, atribut referensi dan nilai akan diabaikan selama simulasi. Hal ini mungkin akan membingungkan ketika nilai model yang ditetapkan tidak sesuai dengan nilai yang ditampilkan pada lembar kerja skematik.
Passive device model editor tab

Type

Memilih tipe divais (resistor, kapasitor, atau induktor).

Value

Menentukan properti divais (resistansi, kapasitansi, atau induktansi). Nilainya bisa menggunakan prefiks satuan Spice (seperti ditampilkan di bawah kotak masukan teks) dan harus menggunakan titik sebagai pemisah desimal. Ingat bahwa Spice tidak bisa menginterpretasikan secara tepat prefiks yang disilangkan dengan nilai (misalnya 1k5).

16.1.2. Tab Model

Tab Model digunakan untuk menetapkan suatu semikonduktor atau model kompleks yang didefinisikan pada sebuah berkas pustaka eksternal. Pustaka model Spice terkadang disediakan oleh manufaktur.

Kotak teks utama menampilkan isi berkas pustaka yang dipilih. Sudah menjadi praktik yang umum untuk memasukkan penjelasan model ke dalam berkas pustaka, termasuk urutan node.

Semiconductor device model editor tab

File

Path menuju ke berkas pustaka Spice. Berkas ini akan digunakan oleh simulator, dan ditambahkan dengan direktif .include.

Model

Model divais yang dipilih. Ketika ada sebuah berkas yang dipilih, daftar ini akan diisi dengan model yang tersedia untuk dipilih.

Type

Pilihan tipe model (subsirkuit, BJT, MOSFET atau dioda). Normalnya, pilihan ini ditentukan secara otomatis ketika sebuah model dipilih.

16.1.3. Tab Source

Tab Source digunakan untuk menetapkan model sumber sinyal atau power. Ada dua bagian: DC/AC analysis dan Transient analysis. Masing-masing mendefinisikan parameter sumber untuk tipe simulasi yang terkait.

Opsi Source type diaplikasikan untuk semua tipe simulasi.

Source model editor tab

Silakan mengacu ke dokumentasi ngspice, Bab 4 (Voltage and Current Sources) untuk informasi lebih lanjut.

16.2. Direktif Spice

Dimungkinkan untuk menambahkan direktif-direktif Spice dengan meletakkannya pada atribut teks di lembar kerja skematik. Pendekatan ini mudah dilakukan untuk mendefinisikan tipe simulasi default. Fungsi ini terbatas pada direktif Spice yang dimulai dengan tanda titik (misalnya ".tran 10n 1m"). Tidak dimungkinkan untuk meletakkan komponen tambahan menggunakan atribut teks.

16.3. Simulasi

Untuk menjalankan simulasi, buka kotak dialog Spice Simulator dengan memilih menu Tools → Simulator pada jendela editor skematik.

Main simulation dialog

Kotak dialog ini dibagi menjadi beberapa bagian:

16.3.1. Menu

Menu File

New Plot

Membuat tab baru pada panel plot.

Open Workbook

Membuka daftar sinyal yang di-plot.

Save Workbook

Menyimpan daftar sinyal yang di-plot.

Save as image

Mengekspor plot yang aktif ke berkas .png.

Save as .csv file

Mengekspor data mentah titik-titik plot ke berkas .csv.

Exit Simulation

Menutup kotak dialog.

Simulasi

Run Simulation

Menjalankan simulasi menggunakan pengaturan saat ini.

Add signals…​

Membuka kotak dialog untuk memilih sinyal yang akan diplot.

Probe from schematics

Menjalankan alat Probe skematik.

Tune component value

Menjalankan alat Tuner.

Show SPICE Netlist…​

Membuka kotak dialog yang menampilkan Netlist yang telah dibuat untuk sirkuit yang disimulasikan.

Settings…​

Membuka kotak dialog pengaturan simulasi.

Menu View

Zoom In

Perbesar tampilan pada plot yang aktif.

Zoom Out

Perkecil tampilan pada plot yang aktif.

Fit on Screen

Mengatur tampilan untuk menampilkan semua plot.

Show grid

Tampilkan/sembunyikan grid.

Show legend

Tampilkan/sembunyikan legenda plot.

16.3.2. Bilah Alat

Simulation dialog top toolbar

Bilah alat bagian atas digunakan untuk mengakses perintah-perintah yang sering dijalankan.

Run/Stop Simulation

Jalankan atau hentikan simulasi.

Add Signals

Membuka kotak dialog untuk memilih sinyal yang akan di-plot.

Probe

Menjalankan alat Probe skematik.

Tune

Menjalankan alat Tuner.

Settings

Membuka kotak dialog pengaturan simulasi.

16.3.3. Panel Plot

Memvisualisasikan hasil simulasi dalam bentuk plot. Kita bisa membuka beberapa plot pada tab yang berbeda, namun ketika simulasi dijalankan, hanya tab yang aktif saja yang akan diperbarui. Dengan demikian dimungkinkan untuk membandingkan hasil simulasi dengan parameter yang berbeda.

Plot dapat diatur dengan menampilkan/menyembunyikan grid dan legenda menggunakan menu View. Ketika legenda ditampilkan, kita bisa menggeser untuk mengubah posisinya.

Interaksi panel plot:

  • Putar roda tetikus untuk memperbesar/memperkecil tampilan.

  • Klik-kanan untuk membuka menu konteks untuk mengatur tampilan.

  • Gambar sebuah kotak pemilih untuk memperbesar area yang dipilih.

  • Geser kursor untuk mengubah koordinatnya.

16.3.4. Konsol Keluaran

Konsol keluaran menampilkan pesan-pesan dari simulator. Kita perlu memeriksa konsol untuk memastikan tidak ada pesan kesalahan dan peringatan.

16.3.5. Daftar Sinyal

Menampilkan daftar sinyal yang ditampilkan pada plot yang aktif.

Interaksi daftar sinyal:

  • Klik-kanan untuk membuka menu konteks untuk menyembunyikan sinyal atau mengubah kursor.

  • Klik-ganda untuk menyembunyikan sinyal.

16.3.6. Daftar Kursor

Menampilkan daftar kursor dan koordinatnya. Setiap sinyal bisa memiliki satu kursor yang ditampilkan. Konfigurasi visibilitas kursor diatur menggunakan daftar Signals.

16.3.7. Panel Tune

Menampilkan komponen-komponen yang diambil menggunakan alat Tuner. Panel ini digunakan untuk memodifikasi nilai komponen secara cepat dan mengamati pengaruhnya pada hasil simulasi - setiap kali nilai sebuah komponen diubah, simulasi akan dijalankan ulang dan plot akan diperbarui.

Untuk setiap komponen, ada beberapa kendali yang terkait:

  • Atribut teks top mengatur nilai maksimum komponen.

  • Atribut teks middle mengatur nilai aktual komponen.

  • Atribut teks bottom mengatur nilai minimum komponen.

  • Slider digunakan untuk mengubah nilai komponen secara halus.

  • Tombol Save memodifikasi nilai komponen pada skematik ke nilai yang dipilih dengan menggunakan slider.

  • Tombol X menghapus komponen dari panel Tune dan mengembalikan ke nilai aslinya.

Ketiga atribut teks di atas mengenali prefiks satuan Spice.

16.3.8. Alat Tuner

Alat Tuner digunakan untuk memilih komponen untuk keperluan tuning.

Untuk memilih komponen untuk tuning, klik pada satu komponen di editor skematik ketika alat ini aktif. Komponen yang dipilih akan muncul di panel Tune. Kita hanya bisa melakukan tuning komponen pasif.

16.3.9. Alat Probe

Alat Probe digunakan untuk memilih sinyal untuk dilakukan plotting.

Untuk menambahkan sinyal yang akan diplot, klik pada wire yang diinginkan di editor skematik ketika alat ini aktif.

16.3.10. Pengaturan Simulasi

Simulation settings dialog

Kotak dialog pengaturan simulasi digunakan untuk mengatur tipe dan parameter-parameter simulasi. Ada empat tab pada kotak dialog ini:

  • Tab AC

  • Tab DC Transfer

  • Tab Transient

  • Tab Custom

Tiga tab pertama digunakan untuk memasukan parameter-parameter simulasi. Tab yang terakhir digunakan untuk menuliskan direktif kustom Spice untuk membuat sebuah simulasi. Untuk informasi lebih lanjut mengenai tipe dan parameter-parameter simulasi, lihat dokumentasi ngspice, Bab 1.2.

Cara lain untuk mengkonfigurasi sebuah simulasi adalah dengan menuliskan direktif Spice ke atribut teks pada skematik. Setiap direktif atribut teks yang berhubungan dengan tipe simulasi akan ditimpa dengan pengaturan yang dipilih pada kotak dialog. Hal ini berarti bahwa setelah Anda menggunakan kotak dialog simulasi, kotak dialog akan menimpa direktif-direktif skematik hingga simulator dibuka kembali.

Ada dua opsi yang umum untuk semua tipe simulasi:

Adjust passive symbol values

Mengganti nilai simbol pasif untuk mengkonversi notasi nilai komponen umum ke notasi Spice.

Add full path for .include library directives

Menambahkan nama berkas pustaka model Spice dengan path lengkap. Normalnya, ngspice memerlukan path lengkap untuk mengakses sebuah berkas pustaka.