Tutorial: Create Your First Design¶
Prerequisite
You should have installed and set up JITX before starting this tutorial.
You can follow along with the tutorial in the video above. Below is a transcript to make the code and text easier to read.
Project Overview¶
In this tutorial series, we'll design an industrial sensing and control board with:
- 24V power input
- Gigabit ethernet networking
- Microcontroller chain
- Configurable sensors and actuators
This architecture serves as a foundation for various applications, from motor drivers to distributed sensor networks.
Prerequisites¶
Before starting, ensure you have:
- Visual Studio Code installed
- A JITX account (create one at jitx.com)
- Stable internet connection for initial setup
Installation Steps¶
-
VSCode Setup
- Install Visual Studio Code if not already present.
- JITX supports Windows, Mac, and Linux platforms.
-
JITX Extension
- Open VSCode.
- Navigate to Extensions (
Ctrl+Shift+X
). - Search for JITX.
- Install the JITX extension.
- Sign in using your JITX credentials.
-
Create New Project
- Click the JITX icon in VSCode to open the JITX sidebar.
- Click Create New Project to open the “New Project” page.
- Click Browse to select a parent directory.
- Enter your project name (for example,
ethernet_io
). - Click Create Project.
- When the project is successfully created, click Open New Project Folder.
Project Structure¶
Your new project contains several important files:
ethernet_io/
├── designs/jitx-design/
│ ├── design-info/
│ └── kicad/
├── helpers.stanza
├── main.stanza
├── slm.toml
└── stanza.proj
-
helpers.stanza
- Contains utility functions
- Defines resistor and capacitor sourcing options
- Sets up Bill of Materials (BOM) formatting and CAD export
- Other helper functions
-
main.stanza
- Main design file
- Defines board shape
- Contains circuit modules
- Manages design setup (the name of the design is jitx-design)
-
slm.toml
- Manages external library dependencies
- Used for adding additional JITX libraries from the Stanza Library Manager (SLM)
-
Project File (stanza.proj)
- Links local project files
- Manages project structure
Running Your First Design¶
-
Open the Design
- Navigate to
main.stanza
. - Review the initial example code.
- Navigate to
-
Run the Design
- Click the run button at the top of VSCode, or
- Use
Ctrl + Enter
.
-
Generated Output
JITX automatically creates:- Schematic
- Bill of Materials
- Board layout
Design files for board and schematic are in designs/jitx-design/design-info
.
- Export to CAD
- In the terminal, type:
export-design()
. - A KiCad project is created in
designs/jitx-design/kicad
(default from helpers). - All data remains local to your computer.
- In the terminal, type:
Making Changes¶
You can modify your design by:
- Editing component values
- Adding new components
- Running the design again (
Ctrl+Enter
) - Checking the updated schematic and BOM
JITX handles component selection from your preferred suppliers whenever you update the design.
Tips for Success¶
- Keep the design files open while following along with the video.
- Experiment with small changes to see how JITX responds.
- Verify your changes using the generated outputs.
- Remember that all processing is local on your machine.
- Save frequently and use version control if possible.
Common Issues and Solutions¶
- Design doesn’t update
Ensure you’ve saved your changes. - Sign-in problems
Check that you are signed in to your JITX account. - Extension issues
Verify that the JITX extension is properly installed. - Error messages
Refer to the terminal for any error output.
For reference, you can view the JITX Project created from this Quickstart tutorial.
Continue to the next tutorial: Tutorial: Build circuits with code