Vernier library database
The library database
Vernier keeps parts in a component database. A part has these data:
| Field | Contents |
|---|---|
| MPN | The manufacturer part number |
| Manufacturer | The name of the manufacturer |
| Value, description, category, keywords | Text for the search |
| Symbol | The schematic symbol |
| Footprints | One or more footprints |
| SPICE model | The model for simulation (optional) |
| 3D model | The model for the 3D view and the 3D exports (optional) |
| Datasheet | A link to the datasheet (optional) |
| Lifecycle | For example active |
| Parameters | Name and value pairs |
| Suppliers | The supplier, the supplier part number, and the JLC basic part flag |
The database also holds the symbols, the footprints and the SPICE models.
Vernier has two sources of parts:
- The seed library. It comes with Vernier and has about 250 parts, for example E12 resistors, capacitors, inductors, diodes, LEDs, transistors, op amps, regulators, some microcontrollers and logic ICs, crystals, pin headers and terminal blocks. A seed part has an LCSC number only when the number is sure.
- Your user database. The parts that you import go into it. Its folder is in the user data folder. To use a different folder from the command line, use
--library <dir>or the environment variableVERNIER_LIBRARY.
Find a part in the Studio
- Open the Components panel.
- Type a value or a part number in the search box, for example
10korC25804. - In the filter list, select All parts, Has an LCSC number or JLC basic parts.
- Click the part. The panel shows the symbol, the footprint and the parameters.
- Click Place.
The part keeps its component id, its part numbers and its SPICE model.
If the component database is not connected, the panel shows only the symbols of the open documents.
A .vlib file opens in a read-only view in the Studio. It shows the symbols, the footprints and the SPICE models of the file.
Make a footprint
Vernier calculates land patterns with the IPC-7351B method. Use the command line:
vernier lib footprint <package> [--density nominal|most|least] [--thermal-vias] [-o <file>]
<package>is a catalog name, for exampleR_0603_1608MetricorSOIC-8_3.9x4.9mm_P1.27mm, or a package JSON file.-owrites a.kicad_mod,.vlibor.jsonfile.vernier lib footprint --list [<filter>]shows the catalog packages that contain the filter text.
The catalog has about 250 packages. The families include chip parts, SOT-23, SOT-223, SOIC, QFP, QFN, DFN, BGA, DIP, TO-220, TO-252, TO-92, pin headers, crystals, radial and axial parts, and terminal blocks.
Make a symbol
vernier lib symbol <kind> [--name <n>] [--value <v>] [--rows <r>] [--per-row <p>] [--pin <num:name:type>]... [-o <file>]
- The kind is a device (for example
resistor,npnoropamp),power,connectororic. -owrites a.vlibor.kicad_symfile.
Search, import and export from the command line
| Command | Use |
|---|---|
vernier lib search <text> [--lcsc] [--jlc-basic] [--limit <n>] |
Find parts in the seed library and the user database. --limit is 1 to 200. |
vernier lib show <id> |
Show one part, symbol, footprint or SPICE model |
vernier lib import <file.vlib> |
Add the items of a Vernier library file to the user database |
vernier lib export -o <file.vlib> [--source user\|seed] [--name <name>] |
Write the user database or the seed library to a library file |
vernier lib import accepts only Vernier library files (.vlib).
To import KiCad libraries, convert them to a .vlib file first:
- Convert the file:
vernier kicad import <file> -o <file.vlib>. The file can be a symbol library (.kicad_sym), a footprint (.kicad_mod) or a footprint folder (.pretty). - Import the result:
vernier lib import <file.vlib>.
To write a library in KiCad format, use vernier kicad export <file.vlib> -o <file>.
Caution: The user database has one writer. Do not run two
lib importcommands at the same time on the same library folder.
See Automation for all the commands.